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.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/users/333fred/rgb.c b/users/333fred/rgb.c
index a3dfd905cc..5a6d74b5ac 100644
--- a/users/333fred/rgb.c
+++ b/users/333fred/rgb.c
@@ -1,16 +1,11 @@
#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(255, 255, 20);
break;
case SYMB:
// blue
@@ -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
+}