diff options
Diffstat (limited to 'keyboards/keychron/v1/ansi/keymaps/lbr/keymap.c')
| -rw-r--r-- | keyboards/keychron/v1/ansi/keymaps/lbr/keymap.c | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/keyboards/keychron/v1/ansi/keymaps/lbr/keymap.c b/keyboards/keychron/v1/ansi/keymaps/lbr/keymap.c index 4719d35..6264ce9 100644 --- a/keyboards/keychron/v1/ansi/keymaps/lbr/keymap.c +++ b/keyboards/keychron/v1/ansi/keymaps/lbr/keymap.c @@ -41,7 +41,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { _______, _______, _______, _______, KC_P0, KC_PDOT, KC_APP, KC_MS_L, KC_MS_D, KC_MS_R), [MGCK] = LAYOUT_ansi_82( QK_BOOT, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, - EE_CLR, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, NK_TOGG, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, @@ -49,6 +49,19 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { }; #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 dip_switch_update_user(uint8_t index, bool active) @@ -64,10 +77,6 @@ dip_switch_update_user(uint8_t index, bool active) } #endif // DIP_SWITCH_ENABLE -// top-right key for numpad status -#define IND_NUMPAD 14 -#define IND_CAPSLK 0 -#define IND_COLOUR 0xcc, 0x33, 0x33 bool rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) { |
