aboutsummaryrefslogtreecommitdiff
path: root/examples/blink/blink.c
blob: 6a81aee16358055a05d3717d320405f591223187 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <avr/io.h>
#include <util/delay.h>
#include <ioport.h>

int main() {
    io_setout(IO_B0);

    while (1) {
        io_hight(IO_B0);
        _delay_ms(500);
        io_low(IO_B0);
        _delay_ms(500);
    }
}