diff options
Diffstat (limited to 'keyboards/wilba_tech/wt_main.c')
| -rw-r--r-- | keyboards/wilba_tech/wt_main.c | 6 |
1 files changed, 6 insertions, 0 deletions
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 | ||
