Root/nxuart/fw/nxuart.c

1#include <stdint.h>
2
3#include <avr/io.h>
4
5#define F_CPU 1000000UL
6#include <util/delay.h>
7
8
9#define LED 2 /* PD2 */
10
11
12int main(void)
13{
14    DDRD = 1 << LED;
15    while (1) {
16        PORTD ^= 1 << LED;
17        _delay_ms(50);
18    }
19}
20

Archive Download this file

Branches:
master



interactive