aboutsummaryrefslogtreecommitdiffstats
path: root/src/hid.c
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/hid.c
parentc70a527d0418b4f32437873f682680f451fa4fb8 (diff)
downloadsxkbd-a08ae9e31873a094a5e7d47ae8cfd2edfe6a60a4.tar.gz
sxkbd-a08ae9e31873a094a5e7d47ae8cfd2edfe6a60a4.zip
Add led blips for warnings and on startup
Diffstat (limited to 'src/hid.c')
-rw-r--r--src/hid.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hid.c b/src/hid.c
index 32b5844..35287db 100644
--- a/src/hid.c
+++ b/src/hid.c
@@ -515,9 +515,9 @@ void
tud_hid_set_protocol_cb(uint8_t instance, uint8_t protocol)
{
if (protocol == HID_PROTOCOL_BOOT) {
- led_rgb = WS2812_U32RGB(100, 100, 0);
+ led_rgb = SOFT_YELLOW;
} else {
- led_rgb = WS2812_U32RGB(100, 0, 100);
+ led_rgb = SOFT_PURPLE;
}
led_mode = LED_ON;
led_reset = true;