2024-04-25

This example blinks the LED in the arduino UNO board that uses ATMega328p. It can be compiled using the script in my other notes:

#include 
#include 

int main(void) {
  DDRB |= (1 << DDB5);
  while (1) {
    PORTB |= (1 << PB5);
    _delay_ms(1000);

    PORTB &= ~(1 << PB5);
    _delay_ms(1000);
  }
}