avr/led1/led1.c

19 lines
230 B
C
Raw Normal View History

2021-05-15 16:20:06 +00:00
#include <avr/io.h>
#include <util/delay.h>
#include <limits.h>
int main(void) {
int i;
DDRB = 0xff;
PORTB = 0b10101010;
for (;;) {
PORTB = PORTB ^ 0xff;
_delay_ms(1000);
}
return 0;
}