Add the EQUATOR keyboard (#23237)
This commit is contained in:
parent
a1b16b8227
commit
18ae0f61ab
10 changed files with 280 additions and 0 deletions
30
keyboards/rmi_kb/equator/equator.c
Normal file
30
keyboards/rmi_kb/equator/equator.c
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
// Copyright 2024 Ramon Imbao (@ramonimbao)
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#include "quantum.h"
|
||||
|
||||
#ifdef RGB_MATRIX_ENABLE
|
||||
bool rgb_matrix_indicators_advanced_kb(uint8_t led_min, uint8_t led_max) {
|
||||
if (!rgb_matrix_indicators_advanced_user(led_min, led_max)) {
|
||||
return false;
|
||||
}
|
||||
led_t state = host_keyboard_led_state();
|
||||
uint32_t highest_layer = get_highest_layer(layer_state);
|
||||
|
||||
|
||||
if (!(state.compose || state.scroll_lock)) {
|
||||
RGB_MATRIX_INDICATOR_SET_COLOR(0, 0, 0, 0);
|
||||
}
|
||||
|
||||
if (!state.caps_lock) {
|
||||
RGB_MATRIX_INDICATOR_SET_COLOR(1, 0, 0, 0);
|
||||
}
|
||||
|
||||
if (highest_layer == 0) {
|
||||
RGB_MATRIX_INDICATOR_SET_COLOR(2, 0, 0, 0);
|
||||
}
|
||||
|
||||
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue