diff options
author | Ryan <fauxpark@gmail.com> | 2023-02-26 08:37:57 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-26 08:37:57 +1100 |
commit | 314f6c1ddba09851b33e4f3b4bd43bdbc55f9628 (patch) | |
tree | 8d0008ee0609b42ffbcbe19e52c3695ea5ab9280 /keyboards/handwired/co60 | |
parent | ba7546a334ec56e70629652e8552dd493449e9db (diff) |
Move backlight config to data driven (#19910)
Diffstat (limited to 'keyboards/handwired/co60')
-rw-r--r-- | keyboards/handwired/co60/rev1/config.h | 5 | ||||
-rw-r--r-- | keyboards/handwired/co60/rev1/info.json | 4 | ||||
-rw-r--r-- | keyboards/handwired/co60/rev6/config.h | 6 | ||||
-rw-r--r-- | keyboards/handwired/co60/rev6/info.json | 4 | ||||
-rw-r--r-- | keyboards/handwired/co60/rev7/config.h | 6 | ||||
-rw-r--r-- | keyboards/handwired/co60/rev7/info.json | 4 |
6 files changed, 12 insertions, 17 deletions
diff --git a/keyboards/handwired/co60/rev1/config.h b/keyboards/handwired/co60/rev1/config.h index 4d58091ef8..c42a0d5b0c 100644 --- a/keyboards/handwired/co60/rev1/config.h +++ b/keyboards/handwired/co60/rev1/config.h @@ -34,11 +34,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. /* COL2ROW, ROW2COL */ #define DIODE_DIRECTION COL2ROW -#ifdef __AVR__ -#define BACKLIGHT_PIN B7 -#define BACKLIGHT_BREATHING -#endif - /* * Feature disable options * These options are also useful to firmware size reduction. diff --git a/keyboards/handwired/co60/rev1/info.json b/keyboards/handwired/co60/rev1/info.json index d48f322f87..05a7a3a336 100644 --- a/keyboards/handwired/co60/rev1/info.json +++ b/keyboards/handwired/co60/rev1/info.json @@ -3,6 +3,10 @@ "usb": { "device_version": "1.0.0" }, + "backlight": { + "pin": "B7", + "breathing": true + }, "processor": "atmega32u4", "bootloader": "atmel-dfu" } diff --git a/keyboards/handwired/co60/rev6/config.h b/keyboards/handwired/co60/rev6/config.h index aa7079f247..6f938b06b7 100644 --- a/keyboards/handwired/co60/rev6/config.h +++ b/keyboards/handwired/co60/rev6/config.h @@ -29,9 +29,3 @@ #define LOCKING_SUPPORT_ENABLE /* Locking resynchronize hack */ #define LOCKING_RESYNC_ENABLE - -/* Backlight configuration - * Backlight LEDs on B8 - */ -#define BACKLIGHT_PIN B8 -#define BACKLIGHT_BREATHING diff --git a/keyboards/handwired/co60/rev6/info.json b/keyboards/handwired/co60/rev6/info.json index 48bc08982b..a189309496 100644 --- a/keyboards/handwired/co60/rev6/info.json +++ b/keyboards/handwired/co60/rev6/info.json @@ -3,6 +3,10 @@ "usb": { "device_version": "6.0.0" }, + "backlight": { + "pin": "B8", + "breathing": true + }, "processor": "STM32F303", "bootloader": "stm32-dfu", "board": "QMK_PROTON_C" diff --git a/keyboards/handwired/co60/rev7/config.h b/keyboards/handwired/co60/rev7/config.h index 19ddb6be2c..6647698dfb 100644 --- a/keyboards/handwired/co60/rev7/config.h +++ b/keyboards/handwired/co60/rev7/config.h @@ -31,12 +31,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. /* Locking resynchronize hack */ #define LOCKING_RESYNC_ENABLE -/* Backlight configuration - * Backlight LEDs on B8 - */ -#define BACKLIGHT_PIN B8 -#define BACKLIGHT_BREATHING - /* RGB underglow configuration */ #define WS2812_SPI SPID1 #define WS2812_SPI_MOSI_PAL_MODE 5 diff --git a/keyboards/handwired/co60/rev7/info.json b/keyboards/handwired/co60/rev7/info.json index 1c2c38f0fe..67d54fb0fb 100644 --- a/keyboards/handwired/co60/rev7/info.json +++ b/keyboards/handwired/co60/rev7/info.json @@ -3,6 +3,10 @@ "usb": { "device_version": "7.0.0" }, + "backlight": { + "pin": "B8", + "breathing": true + }, "processor": "STM32F303", "bootloader": "stm32-dfu", "board": "QMK_PROTON_C" |