aboutsummaryrefslogtreecommitdiff
path: root/examples/blink/blink.c
blob: adc215b8056f011f008ad447ca543e1d4aa2d8f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <avr/io.h>
#include <util/delay.h>
#include <ioport.h>

int main() {
	io_setout(CONFIG_BLINK_IO);

	while (1) {
		io_high(CONFIG_BLINK_IO);
		_delay_ms(500);
		io_low(CONFIG_BLINK_IO);
		_delay_ms(500);
	}
}