1
0
mirror of git://projects.qi-hardware.com/ben-blinkenlights.git synced 2024-07-08 00:49:31 +03:00
ben-blinkenlights/nxuart/fw/nxuart.c

20 lines
209 B
C
Raw Normal View History

#include <stdint.h>
#include <avr/io.h>
#define F_CPU 1000000UL
#include <util/delay.h>
#define LED 2 /* PD2 */
int main(void)
{
DDRD = 1 << LED;
while (1) {
PORTD ^= 1 << LED;
_delay_ms(50);
}
}