Skip to content
ATtiny13 Software UART library.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example Add example - parrot. May 20, 2017
LICENSE
README.md Update README.md Oct 25, 2017
uart.c Add library files. May 20, 2017
uart.h Add library files. May 20, 2017

README.md

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 <lpodkalicki@gmail.com>
 * 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);
	}
}
You can’t perform that action at this time.