diff options
author | Wilba <Jason.S.Williams@gmail.com> | 2020-01-04 07:52:00 +1100 |
---|---|---|
committer | Drashna Jaelre <drashna@live.com> | 2020-01-03 12:52:00 -0800 |
commit | 320822d75b785401809f45007320e6fb6885b3fd (patch) | |
tree | c511d49a48b953ac29ffb4a51ac928319eb9fde4 /keyboards/wilba_tech/wt_rgb_backlight.c | |
parent | b36259566546eb884cc241bcfadb671051e5e75e (diff) | |
download | qmk_firmware-320822d75b785401809f45007320e6fb6885b3fd.tar.gz qmk_firmware-320822d75b785401809f45007320e6fb6885b3fd.zip |
VIA Configurator Refactor (#7268)
* VIA Refactor
* Remove old code
* review changes
* review changes
* Fix cannonkeys/satisfaction75/prototype:via build
* Add via.h to quantum.h
* Move backlight init to after backlight config load
* Merge branch 'master' into via_refactor_pr
* Update user's rules.mk to new way of enabling VIA
* Added id_switch_matrix_state
* Review changes
Diffstat (limited to 'keyboards/wilba_tech/wt_rgb_backlight.c')
-rw-r--r-- | keyboards/wilba_tech/wt_rgb_backlight.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/keyboards/wilba_tech/wt_rgb_backlight.c b/keyboards/wilba_tech/wt_rgb_backlight.c index ca8c3269f..31cfabddd 100644 --- a/keyboards/wilba_tech/wt_rgb_backlight.c +++ b/keyboards/wilba_tech/wt_rgb_backlight.c | |||
@@ -33,18 +33,20 @@ | |||
33 | #include "wt_rgb_backlight_keycodes.h" | 33 | #include "wt_rgb_backlight_keycodes.h" |
34 | 34 | ||
35 | #if !defined(RGB_BACKLIGHT_HS60) && !defined(RGB_BACKLIGHT_NK65) | 35 | #if !defined(RGB_BACKLIGHT_HS60) && !defined(RGB_BACKLIGHT_NK65) |
36 | #include <avr/io.h> | ||
37 | #include <util/delay.h> | ||
38 | #include <avr/interrupt.h> | 36 | #include <avr/interrupt.h> |
39 | #include "drivers/avr/i2c_master.h" | 37 | #include "drivers/avr/i2c_master.h" |
40 | #else | 38 | #else |
41 | #include "ch.h" | 39 | #include "ch.h" |
42 | #include "hal.h" | 40 | #include "hal.h" |
43 | #include "drivers/arm/i2c_master.h" | 41 | #include "drivers/arm/i2c_master.h" |
44 | #include "tmk_core/common/eeprom.h" | ||
45 | #endif | 42 | #endif |
43 | |||
46 | #include "progmem.h" | 44 | #include "progmem.h" |
47 | #include "quantum/color.h" | 45 | #include "quantum/color.h" |
46 | #include "tmk_core/common/eeprom.h" | ||
47 | |||
48 | #include "via.h" // uses only the EEPROM address | ||
49 | #define RGB_BACKLIGHT_CONFIG_EEPROM_ADDR (VIA_EEPROM_CUSTOM_CONFIG_ADDR) | ||
48 | 50 | ||
49 | #if defined(RGB_BACKLIGHT_M6_B) | 51 | #if defined(RGB_BACKLIGHT_M6_B) |
50 | #include "drivers/issi/is31fl3218.h" | 52 | #include "drivers/issi/is31fl3218.h" |