Uncle Deadly Image

Hi there. Welcome to blog.oddbit.com! I post articles here on a variety of technical topics. Mostly I’m posting for myself (writing things up helps me remember them in the future), but I always hope the content I put here is helpful to someone else. If you find something here useful and want to say thanks, feel free to buy me a coffee!

In which I PEBKAC so you don’t have to

#define LED_BUILTIN _BV(PORTB5)

int main(void) { DDRB |= LED_BUILTIN;

while (1)
{
    PORTB |= LED_BUILTIN;   // turn on led
    _delay_ms(1000);        // delay 1s

    PORTB &= ~LED_BUILTIN;  // turn off led
    _delay_ms(1000);        // delay 1s
}                                                

}

read more →