aboutsummaryrefslogtreecommitdiffstats
path: root/src/led.h
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2023-01-28 23:35:59 +0100
committerLouis Burda <quent.burda@gmail.com>2023-01-28 23:35:59 +0100
commita08ae9e31873a094a5e7d47ae8cfd2edfe6a60a4 (patch)
tree9c9075631e97c21e255c3f964072fc2da412440b /src/led.h
parentc70a527d0418b4f32437873f682680f451fa4fb8 (diff)
downloadsxkbd-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.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/led.h b/src/led.h
index aebf936..822de4f 100644
--- a/src/led.h
+++ b/src/led.h
@@ -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);