summaryrefslogtreecommitdiff
path: root/blink/blink.c
blob: d5c9ce7494eed95fdd9123f9d2635bc894d6eee4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

#include <avr/eeprom.h>
#include <avr/io.h>
#include <util/delay.h>


int main() {
	DDRB |= _BV(DDB1);
	while (1) {
		PORTB ^= _BV(PB1);
		_delay_ms(100);
		PORTB ^= _BV(PB1);
		_delay_ms(900);
	}
}