summaryrefslogtreecommitdiffstats
path: root/users/333fred/rgb.c
diff options
context:
space:
mode:
Diffstat (limited to 'users/333fred/rgb.c')
-rw-r--r--users/333fred/rgb.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/users/333fred/rgb.c b/users/333fred/rgb.c
index a3dfd905cc..c86cd1c77d 100644
--- a/users/333fred/rgb.c
+++ b/users/333fred/rgb.c
@@ -1,24 +1,19 @@
#include "quantum.h"
#include "333fred.h"
-void matrix_init_rgb(void) {
- rgblight_enable_noeeprom();
- rgblight_sethsv_noeeprom(270, 255, 20);
-}
-
void layer_state_set_rgb(uint32_t state) {
switch (biton32(state)) {
case BASE:
// purple
- rgblight_sethsv_noeeprom(270, 255, 20);
+ rgblight_sethsv_noeeprom(210, 255, 20);
break;
case SYMB:
// blue
- rgblight_sethsv_noeeprom(240, 255, 20);
+ rgblight_sethsv_noeeprom(191, 255, 20);
break;
case VIM:
// green
- rgblight_sethsv_noeeprom(120, 255, 20);
+ rgblight_sethsv_noeeprom(85, 255, 20);
break;
case GAME:
// red
@@ -26,3 +21,8 @@ void layer_state_set_rgb(uint32_t state) {
break;
}
}
+
+void keyboard_post_init_user(void) {
+ rgblight_enable_noeeprom();
+ layer_state_set_rgb(1); // Set layer 0 (bit 1) on
+}