diff options
| author | Joel Challis | 2024-06-22 13:14:07 +0200 |
|---|---|---|
| committer | GitHub | 2024-06-22 13:14:07 +0200 |
| commit | 17498fa48a8c5c0ac439e59d0db12a41954d4fb0 (patch) | |
| tree | 2d557e5d6c251df5b48374e5cab2522d4d51ec80 /keyboards/wilba_tech/wt70_jb | |
| parent | cb39df273de782be1145dc5184bfd47d823531d5 (diff) | |
Migrate `led_update_kb` implementations to DD (#23981)
Diffstat (limited to 'keyboards/wilba_tech/wt70_jb')
| -rw-r--r-- | keyboards/wilba_tech/wt70_jb/keyboard.json | 3 | ||||
| -rw-r--r-- | keyboards/wilba_tech/wt70_jb/wt70_jb.c | 13 |
2 files changed, 3 insertions, 13 deletions
diff --git a/keyboards/wilba_tech/wt70_jb/keyboard.json b/keyboards/wilba_tech/wt70_jb/keyboard.json index bfa27f225b..f922810600 100644 --- a/keyboards/wilba_tech/wt70_jb/keyboard.json +++ b/keyboards/wilba_tech/wt70_jb/keyboard.json @@ -8,6 +8,9 @@ "pid": "0x001F", "device_version": "0.0.1" }, + "indicators": { + "caps_lock": "F1" + }, "rgblight": { "saturation_steps": 8, "brightness_steps": 8, diff --git a/keyboards/wilba_tech/wt70_jb/wt70_jb.c b/keyboards/wilba_tech/wt70_jb/wt70_jb.c index ae9b5dcbec..ad480ece22 100644 --- a/keyboards/wilba_tech/wt70_jb/wt70_jb.c +++ b/keyboards/wilba_tech/wt70_jb/wt70_jb.c @@ -17,19 +17,6 @@ bool g_first_execution = false; -void keyboard_pre_init_kb(void) { - gpio_set_pin_output(F1); - - keyboard_pre_init_user(); -} - -bool led_update_kb(led_t led_state) { - if (led_update_user(led_state)) { - gpio_write_pin(F1, led_state.caps_lock); - } - return true; -} - // This is some magic so that PCBs flashed with VIA firmware at the factory // will start with an RGB test pattern. Not relevant for non-VIA firmware. #ifdef VIA_ENABLE |