19 lines
230 B
C
19 lines
230 B
C
|
#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;
|
||
|
}
|