summary refs log tree commit diff
path: root/keyboards/handwired/node5_1/keymaps
diff options
context:
space:
mode:
authoruser <user@node5.net>2024-01-02 06:31:21 +0100
committeruser <user@node5.net>2024-01-02 06:31:21 +0100
commitde1304c9e2be0d1f9ab65a1e308eb41079a80691 (patch)
treecd77b3757ce050d3a5e45de58d6c88731adce1f4 /keyboards/handwired/node5_1/keymaps
parent08ab48a36c8076fe248506cca44c7a7acd6b9376 (diff)
turn off status LED on suspend
Diffstat (limited to 'keyboards/handwired/node5_1/keymaps')
-rw-r--r--keyboards/handwired/node5_1/keymaps/default/keymap.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/keyboards/handwired/node5_1/keymaps/default/keymap.c b/keyboards/handwired/node5_1/keymaps/default/keymap.c
index ba4301cb1e..a3efaacb3c 100644
--- a/keyboards/handwired/node5_1/keymaps/default/keymap.c
+++ b/keyboards/handwired/node5_1/keymaps/default/keymap.c
@@ -220,6 +220,8 @@ void suspend_power_down_user(void) {
 
     // Turn off light when computer is suspended
     pimoroni_trackball_set_rgbw(0, 0, 0, 0);
+    setrgb(0, 0, 0, (LED_TYPE *)&led[0]); // led 0
+    rgblight_set(); // Utility functions do not call rgblight_set() automatically, so they need to be called explicitly.
 }
 
 void suspend_wakeup_init_user(void) {
@@ -227,6 +229,8 @@ void suspend_wakeup_init_user(void) {
 
     // Turn on light when computer is woken from sleep
     set_trackball_normal_color();
+    setrgb(0, 0, 47, (LED_TYPE *)&led[0]); // led 0
+    rgblight_set(); // Utility functions do not call rgblight_set() automatically, so they need to be called explicitly.
 }
 
 /*