Reorganize
This commit is contained in:
18
led1/led1.c
Normal file
18
led1/led1.c
Normal file
@ -0,0 +1,18 @@
|
||||
#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;
|
||||
}
|
Reference in New Issue
Block a user