summaryrefslogtreecommitdiff
path: root/blink/blink.c
blob: b4f747c1034a9c505d58263d5f3f9daca5c487f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#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);
	}
}