diff options
author | jack <0x6A73@pm.me> | 2023-07-07 03:34:01 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-07 19:34:01 +1000 |
commit | 98b438da888efc5cadb83ed699e8c3051ac0f9e1 (patch) | |
tree | 44af1d47192af2e6a98644a19cfc17b39b205831 /keyboards/capsunlocked/cu80/v2/v2.c | |
parent | 0f3a5a001cc0069adc3cf53b6ed6d381e62dd4c6 (diff) |
Refactor `capsunlocked/cu80/v2` (#21454)
Diffstat (limited to 'keyboards/capsunlocked/cu80/v2/v2.c')
-rw-r--r-- | keyboards/capsunlocked/cu80/v2/v2.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/keyboards/capsunlocked/cu80/v2/v2.c b/keyboards/capsunlocked/cu80/v2/v2.c new file mode 100644 index 0000000000..e450082ba2 --- /dev/null +++ b/keyboards/capsunlocked/cu80/v2/v2.c @@ -0,0 +1,23 @@ +// Copyright 2021 CapsUnlocked +// SPDX-License-Identifier: GPL-2.0-or-later +#include "quantum.h" + +void matrix_init_kb(void) { + setPinOutput(E6); + matrix_init_user(); +} + +#ifdef RGB_MATRIX_ENABLE +bool rgb_matrix_indicators_kb(void) { + if (!rgb_matrix_indicators_user()) { + return false; + } + if (host_keyboard_led_state().caps_lock) { + rgb_matrix_set_color(62, 255, 255, 255); + } + if (host_keyboard_led_state().scroll_lock) { + rgb_matrix_set_color(14, 255, 255, 255); + } + return true; +} +#endif |