diff options
author | Ramon Imbao <[email protected]> | 2024-03-21 13:03:42 +0800 |
---|---|---|
committer | GitHub <[email protected]> | 2024-03-21 05:03:42 +0000 |
commit | 18ae0f61abac97d3dde323e4aad5ec9fc82bc834 (patch) | |
tree | 0ce55d3e73dabf2aa8257a4327867e6caf2b58b9 /keyboards/rmi_kb/equator/equator.c | |
parent | a1b16b8227fbf43e67c398f926a922d4241a9829 (diff) | |
download | qmk_firmware-18ae0f61abac97d3dde323e4aad5ec9fc82bc834.tar.gz qmk_firmware-18ae0f61abac97d3dde323e4aad5ec9fc82bc834.zip |
Add the EQUATOR keyboard (#23237)
Diffstat (limited to 'keyboards/rmi_kb/equator/equator.c')
-rw-r--r-- | keyboards/rmi_kb/equator/equator.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/keyboards/rmi_kb/equator/equator.c b/keyboards/rmi_kb/equator/equator.c new file mode 100644 index 0000000000..508eeea9e5 --- /dev/null +++ b/keyboards/rmi_kb/equator/equator.c @@ -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 |