mirror of
git://projects.qi-hardware.com/ben-blinkenlights.git
synced 2024-11-04 22:53:08 +02:00
fc324599df
- uart.c: renamed to nxuart.c - Makefile: abstracted project name through $(NAME)
20 lines
209 B
C
20 lines
209 B
C
#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);
|
|
}
|
|
}
|