From 314f6c1ddba09851b33e4f3b4bd43bdbc55f9628 Mon Sep 17 00:00:00 2001 From: Ryan Date: Sun, 26 Feb 2023 08:37:57 +1100 Subject: Move backlight config to data driven (#19910) --- keyboards/linworks/dolice/config.h | 4 ---- keyboards/linworks/dolice/info.json | 4 ++++ keyboards/linworks/fave104/config.h | 4 ---- keyboards/linworks/fave104/info.json | 5 +++++ keyboards/linworks/fave87/config.h | 4 ---- keyboards/linworks/fave87/info.json | 4 ++++ keyboards/linworks/whale75/config.h | 4 ---- keyboards/linworks/whale75/info.json | 5 +++++ 8 files changed, 18 insertions(+), 16 deletions(-) (limited to 'keyboards/linworks') diff --git a/keyboards/linworks/dolice/config.h b/keyboards/linworks/dolice/config.h index 97f8029955..394b953afb 100644 --- a/keyboards/linworks/dolice/config.h +++ b/keyboards/linworks/dolice/config.h @@ -23,7 +23,3 @@ along with this program. If not, see . /* COL2ROW or ROW2COL */ #define DIODE_DIRECTION COL2ROW - -/* Backlight */ -#define BACKLIGHT_PIN B5 // Timer 1 on mega32u4 -#define BACKLIGHT_BREATHING diff --git a/keyboards/linworks/dolice/info.json b/keyboards/linworks/dolice/info.json index 649dc85d02..1db5f48470 100644 --- a/keyboards/linworks/dolice/info.json +++ b/keyboards/linworks/dolice/info.json @@ -7,6 +7,10 @@ "pid": "0x0005", "device_version": "0.0.1" }, + "backlight": { + "pin": "B5", + "breathing": true + }, "indicators": { "caps_lock": "C7", "num_lock": "B6", diff --git a/keyboards/linworks/fave104/config.h b/keyboards/linworks/fave104/config.h index d064d7cea4..5d3830ef6c 100644 --- a/keyboards/linworks/fave104/config.h +++ b/keyboards/linworks/fave104/config.h @@ -24,11 +24,7 @@ along with this program. If not, see . /* COL2ROW, ROW2COL*/ #define DIODE_DIRECTION COL2ROW -/* Backlight */ -#define BACKLIGHT_PIN A1 -#define BACKLIGHT_BREATHING #define BACKLIGHT_PWM_DRIVER PWMD2 #define BACKLIGHT_PWM_CHANNEL 2 #define BACKLIGHT_PAL_MODE 2 -#define BACKLIGHT_LEVELS 5 #define BACKLIGHT_PWM_OUTPUT_FREQUENCY 1000 // Increases backlight PWM freq if compiled with an unmerged PR. Does no harm without it. diff --git a/keyboards/linworks/fave104/info.json b/keyboards/linworks/fave104/info.json index 0eeda7d97d..03beb2ad89 100644 --- a/keyboards/linworks/fave104/info.json +++ b/keyboards/linworks/fave104/info.json @@ -8,6 +8,11 @@ "pid": "0x000A", "device_version": "0.0.1" }, + "backlight": { + "pin": "A1", + "levels": 5, + "breathing": true + }, "indicators": { "caps_lock": "B5", "num_lock": "B6", diff --git a/keyboards/linworks/fave87/config.h b/keyboards/linworks/fave87/config.h index 6b553e26a2..37aa1a68fc 100644 --- a/keyboards/linworks/fave87/config.h +++ b/keyboards/linworks/fave87/config.h @@ -24,10 +24,6 @@ along with this program. If not, see . /* COL2ROW or ROW2COL */ #define DIODE_DIRECTION ROW2COL -/* Backlight */ -#define BACKLIGHT_PIN B7 // Timer 1 on mega32u4 -#define BACKLIGHT_BREATHING - /* Underglow */ #define RGB_DI_PIN E2 #define RGBLED_NUM 40 diff --git a/keyboards/linworks/fave87/info.json b/keyboards/linworks/fave87/info.json index dffb86c8ec..b6ac9b78c1 100644 --- a/keyboards/linworks/fave87/info.json +++ b/keyboards/linworks/fave87/info.json @@ -7,6 +7,10 @@ "pid": "0x0002", "device_version": "0.0.1" }, + "backlight": { + "pin": "B7", + "breathing": true + }, "processor": "atmega32u4", "bootloader": "atmel-dfu", "community_layouts": ["tkl_ansi", "tkl_iso"], diff --git a/keyboards/linworks/whale75/config.h b/keyboards/linworks/whale75/config.h index b2da9c0245..9508aeed57 100644 --- a/keyboards/linworks/whale75/config.h +++ b/keyboards/linworks/whale75/config.h @@ -24,13 +24,9 @@ along with this program. If not, see . /* COL2ROW, ROW2COL */ #define DIODE_DIRECTION COL2ROW -/* Backlight */ -#define BACKLIGHT_PIN A10 -#define BACKLIGHT_BREATHING #define BACKLIGHT_PWM_DRIVER PWMD1 #define BACKLIGHT_PWM_CHANNEL 3 #define BACKLIGHT_PAL_MODE 6 -#define BACKLIGHT_LEVELS 5 #define BACKLIGHT_PWM_OUTPUT_FREQUENCY 1000 // Increases backlight PWM freq if compiled with an unmerged PR. Does no harm without it. /* Underglow */ diff --git a/keyboards/linworks/whale75/info.json b/keyboards/linworks/whale75/info.json index 7de9e12764..24cb27f929 100644 --- a/keyboards/linworks/whale75/info.json +++ b/keyboards/linworks/whale75/info.json @@ -7,6 +7,11 @@ "pid": "0x0001", "device_version": "0.0.1" }, + "backlight": { + "pin": "A10", + "levels": 5, + "breathing": true + }, "indicators": { "caps_lock": "A9", "num_lock": "A8", -- cgit v1.2.3