#define CPU 1000000UL #include<avr/io.h> #include<util/delay.h> int main(void) { DDRB = 0xff; while(1) { PORTB = 0x01; _delay_ms(100); PORTB = 0x00; _delay_ms(100); } return 0; }
raghunath007 / led-blink Goto Github PK
View Code? Open in Web Editor NEWITS ABOUT A LED BLINK