Fix Per Key LED Indicator Callbacks (#18450)
Co-authored-by: Dasky <32983009+daskygit@users.noreply.github.com> Co-authored-by: Nick Brassel <nick@tzarc.org>
This commit is contained in:
parent
09d3e27710
commit
64b1ed4550
218 changed files with 1430 additions and 1271 deletions
|
@ -52,23 +52,20 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||
),
|
||||
};
|
||||
|
||||
void rgb_matrix_indicators_user(void)
|
||||
{
|
||||
if (host_keyboard_led_state().caps_lock)
|
||||
{
|
||||
rgb_matrix_set_color(22, 200, 200, 200);
|
||||
}
|
||||
if (IS_LAYER_ON(_L1))
|
||||
{
|
||||
rgb_matrix_set_color(35, 0, 200, 200);
|
||||
}
|
||||
if (IS_LAYER_ON(_L2))
|
||||
{
|
||||
rgb_matrix_set_color(22, 200, 0, 200);
|
||||
}
|
||||
bool rgb_matrix_indicators_user(void) {
|
||||
if (host_keyboard_led_state().caps_lock) {
|
||||
rgb_matrix_set_color(22, 200, 200, 200);
|
||||
}
|
||||
if (IS_LAYER_ON(_L1)) {
|
||||
rgb_matrix_set_color(35, 0, 200, 200);
|
||||
}
|
||||
if (IS_LAYER_ON(_L2)) {
|
||||
rgb_matrix_set_color(22, 200, 0, 200);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
void keyboard_pre_init_user(void) {
|
||||
setPinOutput(B5);
|
||||
writePinLow(B5);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue