main.cpp 241 Bytes
Newer Older
1
2
3
4
5
6
#include <avr/io.h>
#include <util/delay.h>


int main()
{
Martin Vítek's avatar
Martin Vítek committed
7
    PORTD.DIRSET = (1<<PIN0_bm);
8
9
10

    for(;;)
    {
Martin Vítek's avatar
Martin Vítek committed
11
12
        PORTD.OUTSET = (1<<PIN0_bm);
        _delay_ms(250);
13

Martin Vítek's avatar
Martin Vítek committed
14
15
        PORTD.OUTCLR = (1<<PIN0_bm);
        _delay_ms(250);
16
17
    }
}