diff options
| author | Louis Burda <quent.burda@gmail.com> | 2023-01-28 23:35:59 +0100 |
|---|---|---|
| committer | Louis Burda <quent.burda@gmail.com> | 2023-01-28 23:35:59 +0100 |
| commit | a08ae9e31873a094a5e7d47ae8cfd2edfe6a60a4 (patch) | |
| tree | 9c9075631e97c21e255c3f964072fc2da412440b /src/led.h | |
| parent | c70a527d0418b4f32437873f682680f451fa4fb8 (diff) | |
| download | sxkbd-a08ae9e31873a094a5e7d47ae8cfd2edfe6a60a4.tar.gz sxkbd-a08ae9e31873a094a5e7d47ae8cfd2edfe6a60a4.zip | |
Add led blips for warnings and on startup
Diffstat (limited to 'src/led.h')
| -rw-r--r-- | src/led.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -3,6 +3,13 @@ #include <stdint.h> #include <stdbool.h> +#define SOFT_WHITE 0x404040 +#define SOFT_YELLOW 0x404000 +#define SOFT_PURPLE 0x400040 +#define HARD_WHITE 0xFFFFFF +#define HARD_YELLOW 0xFF00FF +#define HARD_RED 0xFF0000 + enum { LED_OFF, LED_ON, @@ -16,3 +23,4 @@ extern uint32_t led_rgb; void led_init(void); void led_task(void); +void led_blip(uint32_t rgb); |
