aboutsummaryrefslogtreecommitdiff
path: root/keyboards/wilba_tech/wt_main.c
diff options
context:
space:
mode:
authorWilba6582 <Jason.S.Williams@gmail.com>2018-12-13 19:33:04 +1100
committerDrashna Jaelre <drashna@live.com>2018-12-13 08:18:49 -0800
commitcc45f62d757f56c2fa9be92685f83f127b63b509 (patch)
treec89edebf208f3a466a807e0843699717c241b9ad /keyboards/wilba_tech/wt_main.c
parent24b17c96191d0791110ef6b51fa54f74d91075de (diff)
downloadqmk_firmware-cc45f62d757f56c2fa9be92685f83f127b63b509.tar.gz
qmk_firmware-cc45f62d757f56c2fa9be92685f83f127b63b509.zip
Added Dynamic Keymaps to M10-B
Diffstat (limited to 'keyboards/wilba_tech/wt_main.c')
-rw-r--r--keyboards/wilba_tech/wt_main.c6
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
204void bootmagic_lite(void) 208void bootmagic_lite(void)
@@ -230,8 +234,10 @@ void matrix_init_kb(void)
230 234
231void matrix_scan_kb(void) 235void 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