aboutsummaryrefslogtreecommitdiffstats
path: root/keyboards/keychron/v1/ansi/keymaps/lbr/keymap.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/keychron/v1/ansi/keymaps/lbr/keymap.c')
-rw-r--r--keyboards/keychron/v1/ansi/keymaps/lbr/keymap.c16
1 files changed, 3 insertions, 13 deletions
diff --git a/keyboards/keychron/v1/ansi/keymaps/lbr/keymap.c b/keyboards/keychron/v1/ansi/keymaps/lbr/keymap.c
index 6264ce9..7260d11 100644
--- a/keyboards/keychron/v1/ansi/keymaps/lbr/keymap.c
+++ b/keyboards/keychron/v1/ansi/keymaps/lbr/keymap.c
@@ -43,24 +43,14 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
QK_BOOT, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
NK_TOGG, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
- _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
+ EE_CLR , _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______),
};
#ifdef RGB_MATRIX_ENABLE
-// top-right key for numpad status
#define IND_NUMPAD 14
#define IND_CAPSLK 0
-#define IND_COLOUR 0xcc, 0x33, 0x33
-
-void
-keyboard_post_init_user(void)
-{
- if(rgb_matrix_is_enabled()){
- rgb_matrix_set_color_all(IND_COLOUR);
- }
-}
#ifdef DIP_SWITCH_ENABLE
bool
@@ -83,12 +73,12 @@ rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max)
if(rgb_matrix_is_enabled()){
led_t led_state = host_keyboard_led_state();
if(led_state.num_lock){
- rgb_matrix_set_color(IND_NUMPAD, IND_COLOUR);
+ rgb_matrix_set_color(IND_NUMPAD, LBR_COLOUR);
}else{
rgb_matrix_set_color(IND_NUMPAD, RGB_BLACK);
}
if(led_state.caps_lock){
- rgb_matrix_set_color(IND_CAPSLK, IND_COLOUR);
+ rgb_matrix_set_color(IND_CAPSLK, LBR_COLOUR);
}else{
rgb_matrix_set_color(IND_CAPSLK, RGB_BLACK);
}