diff options
author | Joel Challis <git@zvecr.com> | 2024-06-22 12:14:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-22 12:14:17 +0100 |
commit | 7824e7ed9ba3e79103625b6f038033eb3f5c5320 (patch) | |
tree | c2a9095508b7f451a49b0b192d742194b83f485b /keyboards/percent | |
parent | 17498fa48a8c5c0ac439e59d0db12a41954d4fb0 (diff) |
Migrate `led_update_kb` implementations to DD (#23983)
Diffstat (limited to 'keyboards/percent')
-rw-r--r-- | keyboards/percent/canoe_gen2/canoe_gen2.c | 15 | ||||
-rw-r--r-- | keyboards/percent/canoe_gen2/keyboard.json | 4 |
2 files changed, 4 insertions, 15 deletions
diff --git a/keyboards/percent/canoe_gen2/canoe_gen2.c b/keyboards/percent/canoe_gen2/canoe_gen2.c index ea091c3474..435083a269 100644 --- a/keyboards/percent/canoe_gen2/canoe_gen2.c +++ b/keyboards/percent/canoe_gen2/canoe_gen2.c @@ -17,21 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #include "quantum.h" -void keyboard_pre_init_kb(void) { - gpio_set_pin_output(E6); - gpio_write_pin_high(E6); - - keyboard_pre_init_user(); -} - -bool led_update_kb(led_t led_state) { - if(led_update_user(led_state)) { - gpio_write_pin(E6, !led_state.caps_lock); - } - - return true; -} - #ifdef RGB_MATRIX_ENABLE void suspend_power_down_kb(void) { rgb_matrix_set_suspend_state(true); diff --git a/keyboards/percent/canoe_gen2/keyboard.json b/keyboards/percent/canoe_gen2/keyboard.json index 0b6ece2613..85fbfd28b9 100644 --- a/keyboards/percent/canoe_gen2/keyboard.json +++ b/keyboards/percent/canoe_gen2/keyboard.json @@ -22,6 +22,10 @@ "resync": true } }, + "indicators": { + "caps_lock": "E6", + "on_state": 0 + }, "ws2812": { "pin": "B7" }, |