Page MenuHomec4science

led.h
No OneTemporary

File Metadata

Created
Thu, Apr 3, 17:50
#ifndef LED_H_
#define LED_H_
//we want to refresh led every 20ms (50 Hz)
#define LED_FRAME_TIME 3100
typedef enum {
GREEN1 = 0,
YELLOW,
GREEN2,
RED,
NB_LEDS
}led_id;
void led_init();
void led_main();
void led_off(led_id l);
void led_on(led_id l);
void led_toggle(led_id l);
void led_blink(led_id l);
void led_blink_with_params(led_id l,
unsigned int nb_blink);
#endif //LED_H_

Event Timeline