diff options
author | Joel Challis <[email protected]> | 2024-06-22 09:10:12 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2024-06-22 09:10:12 +0100 |
commit | 99aa4f5191ae0e120503385869b3b24baeaf223a (patch) | |
tree | c36b9d15fb613e9358d278c4e63da852c82a2e0f /keyboards/rmi_kb | |
parent | 35f0a1767981f0b490858c68cb5b23ee92327a25 (diff) | |
download | qmk_firmware-99aa4f5191ae0e120503385869b3b24baeaf223a.tar.gz qmk_firmware-99aa4f5191ae0e120503385869b3b24baeaf223a.zip |
Migrate `led_update_kb` implementations to DD (#23980)
Diffstat (limited to 'keyboards/rmi_kb')
-rw-r--r-- | keyboards/rmi_kb/wete/v1/keyboard.json | 6 | ||||
-rw-r--r-- | keyboards/rmi_kb/wete/v1/v1.c | 35 |
2 files changed, 6 insertions, 35 deletions
diff --git a/keyboards/rmi_kb/wete/v1/keyboard.json b/keyboards/rmi_kb/wete/v1/keyboard.json index 8e8059c103..c9a54f76c2 100644 --- a/keyboards/rmi_kb/wete/v1/keyboard.json +++ b/keyboards/rmi_kb/wete/v1/keyboard.json @@ -35,6 +35,12 @@ "levels": 24, "breathing": true }, + "indicators": { + "caps_lock": "B3", + "num_lock": "A14", + "scroll_lock": "A15", + "on_state": 0 + }, "rgblight": { "led_count": 24, "animations": { diff --git a/keyboards/rmi_kb/wete/v1/v1.c b/keyboards/rmi_kb/wete/v1/v1.c deleted file mode 100644 index 34a0917468..0000000000 --- a/keyboards/rmi_kb/wete/v1/v1.c +++ /dev/null @@ -1,35 +0,0 @@ -/* Copyright 2020 Ramon Imbao - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - */ - -#include "quantum.h" - -void keyboard_pre_init_user(void) { - // Initialize indicator LED pins - gpio_set_pin_output(A14); // Num Lock - gpio_set_pin_output(A15); // Scroll Lock - gpio_set_pin_output(B3); // Caps Lock -} - -bool led_update_kb(led_t led_state) { - bool res = led_update_user(led_state); - if (res) { - gpio_write_pin(A14, !led_state.num_lock); - gpio_write_pin(A15, !led_state.scroll_lock); - gpio_write_pin(B3, !led_state.caps_lock); - } - - return res; -} |