diff options
Diffstat (limited to 'keyboards/wilba_tech')
| -rw-r--r-- | keyboards/wilba_tech/wt60_a/config.h | 2 | ||||
| -rw-r--r-- | keyboards/wilba_tech/wt65_a/config.h | 2 | ||||
| -rw-r--r-- | keyboards/wilba_tech/wt80_a/config.h | 2 | ||||
| -rw-r--r-- | keyboards/wilba_tech/wt_main.c | 6 |
4 files changed, 12 insertions, 0 deletions
diff --git a/keyboards/wilba_tech/wt60_a/config.h b/keyboards/wilba_tech/wt60_a/config.h index 8c18582a8..9eff7d7f1 100644 --- a/keyboards/wilba_tech/wt60_a/config.h +++ b/keyboards/wilba_tech/wt60_a/config.h | |||
| @@ -185,6 +185,8 @@ | |||
| 185 | /* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */ | 185 | /* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */ |
| 186 | //#define MIDI_TONE_KEYCODE_OCTAVES 1 | 186 | //#define MIDI_TONE_KEYCODE_OCTAVES 1 |
| 187 | 187 | ||
| 188 | #define WT_MONO_BACKLIGHT | ||
| 189 | |||
| 188 | #define DYNAMIC_KEYMAP_LAYER_COUNT 4 | 190 | #define DYNAMIC_KEYMAP_LAYER_COUNT 4 |
| 189 | 191 | ||
| 190 | // EEPROM usage | 192 | // EEPROM usage |
diff --git a/keyboards/wilba_tech/wt65_a/config.h b/keyboards/wilba_tech/wt65_a/config.h index 88e902353..88366edc0 100644 --- a/keyboards/wilba_tech/wt65_a/config.h +++ b/keyboards/wilba_tech/wt65_a/config.h | |||
| @@ -185,6 +185,8 @@ | |||
| 185 | /* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */ | 185 | /* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */ |
| 186 | //#define MIDI_TONE_KEYCODE_OCTAVES 1 | 186 | //#define MIDI_TONE_KEYCODE_OCTAVES 1 |
| 187 | 187 | ||
| 188 | #define WT_MONO_BACKLIGHT | ||
| 189 | |||
| 188 | #define DYNAMIC_KEYMAP_LAYER_COUNT 4 | 190 | #define DYNAMIC_KEYMAP_LAYER_COUNT 4 |
| 189 | 191 | ||
| 190 | // EEPROM usage | 192 | // EEPROM usage |
diff --git a/keyboards/wilba_tech/wt80_a/config.h b/keyboards/wilba_tech/wt80_a/config.h index ca03c366e..7c15e4a5b 100644 --- a/keyboards/wilba_tech/wt80_a/config.h +++ b/keyboards/wilba_tech/wt80_a/config.h | |||
| @@ -185,6 +185,8 @@ | |||
| 185 | /* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */ | 185 | /* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */ |
| 186 | //#define MIDI_TONE_KEYCODE_OCTAVES 1 | 186 | //#define MIDI_TONE_KEYCODE_OCTAVES 1 |
| 187 | 187 | ||
| 188 | #define WT_MONO_BACKLIGHT | ||
| 189 | |||
| 188 | #define DYNAMIC_KEYMAP_LAYER_COUNT 4 | 190 | #define DYNAMIC_KEYMAP_LAYER_COUNT 4 |
| 189 | 191 | ||
| 190 | // EEPROM usage | 192 | // EEPROM usage |
diff --git a/keyboards/wilba_tech/wt_main.c b/keyboards/wilba_tech/wt_main.c index de6d7b92c..7a63ab5b7 100644 --- a/keyboards/wilba_tech/wt_main.c +++ b/keyboards/wilba_tech/wt_main.c | |||
| @@ -15,7 +15,9 @@ | |||
| 15 | */ | 15 | */ |
| 16 | 16 | ||
| 17 | #include "quantum.h" | 17 | #include "quantum.h" |
| 18 | #ifdef WT_MONO_BACKLIGHT | ||
| 18 | #include "keyboards/wilba_tech/wt_mono_backlight.h" | 19 | #include "keyboards/wilba_tech/wt_mono_backlight.h" |
| 20 | #endif | ||
| 19 | #include "keyboards/zeal60/zeal60_api.h" // Temporary hack | 21 | #include "keyboards/zeal60/zeal60_api.h" // Temporary hack |
| 20 | #include "keyboards/zeal60/zeal60_keycodes.h" // Temporary hack | 22 | #include "keyboards/zeal60/zeal60_keycodes.h" // Temporary hack |
| 21 | 23 | ||
| @@ -194,11 +196,13 @@ void main_init(void) | |||
| 194 | eeprom_set_valid(true); | 196 | eeprom_set_valid(true); |
| 195 | } | 197 | } |
| 196 | 198 | ||
| 199 | #ifdef WT_MONO_BACKLIGHT | ||
| 197 | // Initialize LED drivers for backlight. | 200 | // Initialize LED drivers for backlight. |
| 198 | backlight_init_drivers(); | 201 | backlight_init_drivers(); |
| 199 | 202 | ||
| 200 | backlight_timer_init(); | 203 | backlight_timer_init(); |
| 201 | backlight_timer_enable(); | 204 | backlight_timer_enable(); |
| 205 | #endif | ||
| 202 | } | 206 | } |
| 203 | 207 | ||
| 204 | void bootmagic_lite(void) | 208 | void bootmagic_lite(void) |
| @@ -230,8 +234,10 @@ void matrix_init_kb(void) | |||
| 230 | 234 | ||
| 231 | void matrix_scan_kb(void) | 235 | void matrix_scan_kb(void) |
| 232 | { | 236 | { |
| 237 | #ifdef WT_MONO_BACKLIGHT | ||
| 233 | // This only updates the LED driver buffers if something has changed. | 238 | // This only updates the LED driver buffers if something has changed. |
| 234 | backlight_update_pwm_buffers(); | 239 | backlight_update_pwm_buffers(); |
| 240 | #endif | ||
| 235 | matrix_scan_user(); | 241 | matrix_scan_user(); |
| 236 | } | 242 | } |
| 237 | 243 | ||
