avr-blink/blink.c

18 lines
190 B
C
Raw Normal View History

2019-03-09 12:50:49 +01:00
#include <avr/io.h>
#define F_CPU 20000000UL
#include <util/delay.h>
int main() {
DDRB |= 1;
while(1) {
PORTB |= 1;
_delay_ms(50);
PORTB &= ~1;
_delay_ms(950);
}
return 1;
}