blob: 8d9e2884f8e563247a3dd01b014182ad2fd21c3f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#include <avr/io.h>
#include <util/delay.h>
int main(void)
{
/* PB4 output */
DDRD |= _BV(PB4);
PORTB &= ~_BV(PB4);
for (;;)
{
_delay_ms(1000);
PORTB ^= _BV(PB4);
}
return 0;
}
|