diff options
| author | Joel Challis <git@zvecr.com> | 2024-06-22 12:14:07 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-22 12:14:07 +0100 |
| commit | 17498fa48a8c5c0ac439e59d0db12a41954d4fb0 (patch) | |
| tree | 2d557e5d6c251df5b48374e5cab2522d4d51ec80 /keyboards/wilba_tech | |
| parent | cb39df273de782be1145dc5184bfd47d823531d5 (diff) | |
Migrate `led_update_kb` implementations to DD (#23981)
Diffstat (limited to 'keyboards/wilba_tech')
| -rw-r--r-- | keyboards/wilba_tech/wt69_a/keyboard.json | 3 | ||||
| -rw-r--r-- | keyboards/wilba_tech/wt69_a/wt69_a.c | 30 | ||||
| -rw-r--r-- | keyboards/wilba_tech/wt70_jb/keyboard.json | 3 | ||||
| -rw-r--r-- | keyboards/wilba_tech/wt70_jb/wt70_jb.c | 13 |
4 files changed, 6 insertions, 43 deletions
diff --git a/keyboards/wilba_tech/wt69_a/keyboard.json b/keyboards/wilba_tech/wt69_a/keyboard.json index bbe6517850..d41f8fc90e 100644 --- a/keyboards/wilba_tech/wt69_a/keyboard.json +++ b/keyboards/wilba_tech/wt69_a/keyboard.json | |||
| @@ -20,6 +20,9 @@ | |||
| 20 | "resync": true | 20 | "resync": true |
| 21 | } | 21 | } |
| 22 | }, | 22 | }, |
| 23 | "indicators": { | ||
| 24 | "caps_lock": "F1" | ||
| 25 | }, | ||
| 23 | "matrix_pins": { | 26 | "matrix_pins": { |
| 24 | "cols": ["B7", "B0", "F5", "D5", "B1", "B2", "B3", "D3", "D2", "C7", "C6", "B6", "B5", "B4", "D7", "D6", "D4"], | 27 | "cols": ["B7", "B0", "F5", "D5", "B1", "B2", "B3", "D3", "D2", "C7", "C6", "B6", "B5", "B4", "D7", "D6", "D4"], |
| 25 | "rows": ["F0", "E6", "F4", "F6", "F7"] | 28 | "rows": ["F0", "E6", "F4", "F6", "F7"] |
diff --git a/keyboards/wilba_tech/wt69_a/wt69_a.c b/keyboards/wilba_tech/wt69_a/wt69_a.c deleted file mode 100644 index 842b62a4d1..0000000000 --- a/keyboards/wilba_tech/wt69_a/wt69_a.c +++ /dev/null | |||
| @@ -1,30 +0,0 @@ | |||
| 1 | /* Copyright 2018 Jason Williams (Wilba) | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | |||
| 17 | #include "quantum.h" | ||
| 18 | |||
| 19 | void keyboard_pre_init_kb(void) { | ||
| 20 | gpio_set_pin_output(F1); | ||
| 21 | |||
| 22 | keyboard_pre_init_user(); | ||
| 23 | } | ||
| 24 | |||
| 25 | bool led_update_kb(led_t led_state) { | ||
| 26 | if (led_update_user(led_state)) { | ||
| 27 | gpio_write_pin(F1, led_state.caps_lock); | ||
| 28 | } | ||
| 29 | return true; | ||
| 30 | } | ||
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 @@ | |||
| 8 | "pid": "0x001F", | 8 | "pid": "0x001F", |
| 9 | "device_version": "0.0.1" | 9 | "device_version": "0.0.1" |
| 10 | }, | 10 | }, |
| 11 | "indicators": { | ||
| 12 | "caps_lock": "F1" | ||
| 13 | }, | ||
| 11 | "rgblight": { | 14 | "rgblight": { |
| 12 | "saturation_steps": 8, | 15 | "saturation_steps": 8, |
| 13 | "brightness_steps": 8, | 16 | "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 @@ | |||
| 17 | 17 | ||
| 18 | bool g_first_execution = false; | 18 | bool g_first_execution = false; |
| 19 | 19 | ||
| 20 | void keyboard_pre_init_kb(void) { | ||
| 21 | gpio_set_pin_output(F1); | ||
| 22 | |||
| 23 | keyboard_pre_init_user(); | ||
| 24 | } | ||
| 25 | |||
| 26 | bool led_update_kb(led_t led_state) { | ||
| 27 | if (led_update_user(led_state)) { | ||
| 28 | gpio_write_pin(F1, led_state.caps_lock); | ||
| 29 | } | ||
| 30 | return true; | ||
| 31 | } | ||
| 32 | |||
| 33 | // This is some magic so that PCBs flashed with VIA firmware at the factory | 20 | // This is some magic so that PCBs flashed with VIA firmware at the factory |
| 34 | // will start with an RGB test pattern. Not relevant for non-VIA firmware. | 21 | // will start with an RGB test pattern. Not relevant for non-VIA firmware. |
| 35 | #ifdef VIA_ENABLE | 22 | #ifdef VIA_ENABLE |
