diff options
| author | Joel Challis <git@zvecr.com> | 2024-07-12 08:06:19 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-12 08:06:19 +0100 |
| commit | 52ee9f2ce1dd7b67a9cd1332d198b63c1d0dc7c8 (patch) | |
| tree | 528ff75557ec211a539df849e996f802c8fb608b /keyboards/wilba_tech | |
| parent | 2c2885639e7e6e923c7fe6b55082403acfe70276 (diff) | |
Convert `eeconfig_init_kb` implementations to config (#24087)
Diffstat (limited to 'keyboards/wilba_tech')
| -rw-r--r-- | keyboards/wilba_tech/wt60_xt/keyboard.json | 5 | ||||
| -rw-r--r-- | keyboards/wilba_tech/wt60_xt/wt60_xt.c | 20 |
2 files changed, 5 insertions, 20 deletions
diff --git a/keyboards/wilba_tech/wt60_xt/keyboard.json b/keyboards/wilba_tech/wt60_xt/keyboard.json index 8afafd9314..ba8e8000db 100644 --- a/keyboards/wilba_tech/wt60_xt/keyboard.json +++ b/keyboards/wilba_tech/wt60_xt/keyboard.json | |||
| @@ -23,6 +23,11 @@ | |||
| 23 | "resync": true | 23 | "resync": true |
| 24 | } | 24 | } |
| 25 | }, | 25 | }, |
| 26 | "audio": { | ||
| 27 | "default": { | ||
| 28 | "clicky": false | ||
| 29 | } | ||
| 30 | }, | ||
| 26 | "matrix_pins": { | 31 | "matrix_pins": { |
| 27 | "cols": ["B7", "B0", "F5", "D5", "B1", "B2", "B3", "D3", "D2", "C7", "B6", "B5", "B4", "D7", "D6", "D4"], | 32 | "cols": ["B7", "B0", "F5", "D5", "B1", "B2", "B3", "D3", "D2", "C7", "B6", "B5", "B4", "D7", "D6", "D4"], |
| 28 | "rows": ["F0", "E6", "F4", "F6", "F7"] | 33 | "rows": ["F0", "E6", "F4", "F6", "F7"] |
diff --git a/keyboards/wilba_tech/wt60_xt/wt60_xt.c b/keyboards/wilba_tech/wt60_xt/wt60_xt.c index 7c6a2fafc4..53b822e58f 100644 --- a/keyboards/wilba_tech/wt60_xt/wt60_xt.c +++ b/keyboards/wilba_tech/wt60_xt/wt60_xt.c | |||
| @@ -30,26 +30,6 @@ float tone_device_indication[][2] = SONG(FANTASIE_IMPROMPTU); | |||
| 30 | 30 | ||
| 31 | #endif | 31 | #endif |
| 32 | 32 | ||
| 33 | // We want to enable audio clicky (i.e. compile it into firmware), | ||
| 34 | // but not have it "turned on" by default. | ||
| 35 | #ifdef AUDIO_CLICKY | ||
| 36 | |||
| 37 | #include "process_clicky.h" | ||
| 38 | extern audio_config_t audio_config; | ||
| 39 | |||
| 40 | void eeconfig_init_kb(void) { | ||
| 41 | // Reset Keyboard EEPROM value to blank, rather than to a set value | ||
| 42 | eeconfig_update_kb(0); | ||
| 43 | |||
| 44 | // Need to read here because this isn't done before calling eeconfig_init_kb() | ||
| 45 | audio_config.raw = eeconfig_read_audio(); | ||
| 46 | // ...and this call needs audio_config initialized. | ||
| 47 | clicky_off(); | ||
| 48 | |||
| 49 | eeconfig_init_user(); | ||
| 50 | } | ||
| 51 | #endif // AUDIO_CLICKY | ||
| 52 | |||
| 53 | void keyboard_pre_init_kb(void) { | 33 | void keyboard_pre_init_kb(void) { |
| 54 | gpio_set_pin_output(F1); | 34 | gpio_set_pin_output(F1); |
| 55 | 35 | ||
