pentabug/firmware/apps/blinker.c

22 lines
345 B
C
Raw Normal View History

2013-08-26 01:08:00 +02:00
#include <stdlib.h>
#include <avr/io.h>
#define __DELAY_BACKWARD_COMPATIBLE__
#include <util/delay.h>
#include <pentabug/app.h>
#include <pentabug/lifecycle.h>
#include <pentabug/hal.h>
2013-08-26 01:08:00 +02:00
static void init(void) {
led_on(RIGHT);
2013-08-26 01:08:00 +02:00
}
static void blinker(void) {
led_inv(RIGHT);
led_inv(LEFT);
_delay_ms(500);
2013-08-26 01:08:00 +02:00
}
REGISTER(blinker, init, NULL);