summaryrefslogtreecommitdiffstats
path: root/users/csc027/custom_rgb.c
diff options
context:
space:
mode:
authorcsc027 <csc_dev@protonmail.com>2022-08-07 19:40:16 +0000
committerGitHub <noreply@github.com>2022-08-07 20:40:16 +0100
commit4267f0e0d4b4fb4d4954405d156ebe6c50de48b1 (patch)
tree379dcb7983a9cfd9560ab4302a520eb2fb2bfc7d /users/csc027/custom_rgb.c
parent5ecd745514c4832f1082a81d30a209e47513aded (diff)
csc027/keymap-updates (#17881)
* Reverted to most usable configuration for RDP usage. * Added some HSV color definitions without the value portion to allow using the existing value. * Switched to using HSV and HS color definitions. * Added media keys to the convenience layer. * Updated make rules to enable media keys. * Cleaned up planck make rules.
Diffstat (limited to 'users/csc027/custom_rgb.c')
-rw-r--r--users/csc027/custom_rgb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/users/csc027/custom_rgb.c b/users/csc027/custom_rgb.c
index 1d3232d72c..657d40d7af 100644
--- a/users/csc027/custom_rgb.c
+++ b/users/csc027/custom_rgb.c
@@ -28,15 +28,15 @@ void keyboard_post_init_user(void) {
rgblight_sethsv_noeeprom((i + user_hue) % 256, 255, 255);
wait_ms(5);
}
- rgblight_sethsv_noeeprom(0, 0, 0);
+ rgblight_sethsv_noeeprom(HSV_BLACK);
}
void on_usb_led_off(void) {
- rgblight_sethsv_noeeprom(0, 0, rgblight_get_val() - 85);
+ rgblight_sethsv_noeeprom(HS_GRAY, rgblight_get_val() - 85);
}
void on_usb_led_on(void) {
- rgblight_sethsv_noeeprom(0, 0, rgblight_get_val() + 85);
+ rgblight_sethsv_noeeprom(HS_GRAY, rgblight_get_val() + 85);
}
#endif