forked from platformio/platformio-core
24 lines
331 B
C
24 lines
331 B
C
/**
|
|
* Copyright (C) Ivan Kravets <me@ikravets.com>
|
|
* See LICENSE for details.
|
|
*/
|
|
|
|
#include <avr/io.h>
|
|
#include <util/delay.h>
|
|
|
|
int main(void)
|
|
{
|
|
// make the LED pin an output for PORTB5
|
|
DDRB = 1 << 5;
|
|
|
|
while (1)
|
|
{
|
|
_delay_ms(500);
|
|
|
|
// toggle the LED
|
|
PORTB ^= 1 << 5;
|
|
}
|
|
|
|
return 0;
|
|
}
|