SingingCat 0
application
led.h
1#ifndef LED_H
2#define LED_H 1
3
4typedef enum _led_usage_type {
5 LED_MACHINE,
6 LED_USER,
7 LED_WIFI,
8} LED_USAGE_TYPE;
9
10#define LED_RESET 1
11#define LED_FATALERROR 2
12#define LED_FLASHSTART 3
13#define LED_FLASHEND 4
14#define LED_WIFI_BRIDGE 5
15#define LED_WIFI_BRIDGE2 6
16#define LED_WIFI_STATION 7
17#define LED_WIFI_APMODE 8
18#define LED_WIFI_CONNECTED 9
19#define LED_POWERSAVE 10
20#define LED_POWERUP 11
21#define LED_INDICATOR int
22
23#define LED_FLAG_FADE_TO 1
24
25void led_init();
26void led_loop();
27void led_off(LED_USAGE_TYPE lut);
28void led_blink(LED_USAGE_TYPE lut, uint32_t colour, uint8_t brightness, uint32_t on, uint32_t off);
29void led_blink_flags(LED_USAGE_TYPE lut, uint32_t colour, uint8_t brightness, uint32_t on, uint32_t off, uint32_t flags);
30void led_flash(LED_USAGE_TYPE lut, uint32_t colour, uint32_t duration);
31void fade_led_repeat(LED_USAGE_TYPE lut, uint32_t (*fadearray)[]);
32void led_indicate(LED_INDICATOR);
33void led_set_wifi_managed();
34void led_set_user_managed();
35void led_print_status();
36void led_set_machine_managed();
37
38#endif
void led_flash(LED_USAGE_TYPE lut, uint32_t colour, uint32_t duration)
will flash led once
Definition: led.c:273
void led_blink(LED_USAGE_TYPE lut, uint32_t colour, uint8_t brightness, uint32_t on, uint32_t off)
will keep blinking until told otherwise will repeat endlessly.
Definition: led.c:288