1 /* Copyright 2018 Jason Williams (Wilba)
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.
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.
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/>.
18 #include "keyboards/wilba_tech/wt_mono_backlight.h"
20 void bootmagic_lite(void)
22 // The lite version of TMK's bootmagic.
23 // 100% less potential for accidentally making the
24 // keyboard do stupid things.
26 // We need multiple scans because debouncing can't be turned off.
28 wait_ms(DEBOUNCING_DELAY);
29 wait_ms(DEBOUNCING_DELAY);
32 // If the Esc (matrix 0,0) is held down on power up,
33 // reset the EEPROM valid state and jump to bootloader.
34 if ( matrix_get_row(0) & (1<<0) ) {
35 // Set the TMK/QMK EEPROM state as invalid.
37 // Jump to bootloader.
42 void matrix_init_kb(void)
45 backlight_init_drivers();
46 backlight_timer_init();
47 backlight_timer_enable();
51 void matrix_scan_kb(void)
53 backlight_update_pwm_buffers();