/* Blink programmed with embedded C Arduino Uno for Pin no. 13 Turns one LED on for one tenth of the second, then off for one tenth second, Written 17 March 2022 by Kiran Wakchaure Fab Academy 2022 */ #include #include int main (void) { // Adruino uno onboard LED is connected to the pin no. 13 DDRB |= 0X20; // Pin no. 13 PB5 while(1) { // turn LED on PORTB |= 0X20; // set the bit 5 to 1 (drive the PB5 high > turn LED on) _delay_ms(1000); // turn LED off PORTB &= ~ 0X20; // set the bit 5 to 0 (drive the PB5 low > turn LED off) _delay_ms(1000); } }