Skip to content

lpodkalicki/attiny13-software-uart-library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

attiny13-software-uart-library

ATtiny13 Software UART library. More info here - http://blog.podkalicki.com/attiny13-software-uart-debug-logger/

Example code

/**
 * Copyright (c) 2017, Łukasz Marcin Podkalicki <[email protected]>
 * Serial Parrot - example of Software UART.
 */

#include <avr/io.h>
#include <util/delay.h>
#include <avr/interrupt.h>
#include "uart.h"

int
main(void)
{
	char c;

	uart_puts("Hello Parrot!\n");

	while (1) {
		c = uart_getc();
		uart_putc(c);
	}
}