From 9c0ce80d7e7d266cfd2d8fb0d92889db06ea95ff Mon Sep 17 00:00:00 2001 From: Ryan Date: Tue, 21 Feb 2023 12:05:40 +1100 Subject: Move backlight config to data driven, part 1 (#19887) --- keyboards/handwired/jot50/config.h | 1 - keyboards/handwired/jot50/info.json | 3 +++ keyboards/handwired/lovelive9/config.h | 1 - keyboards/handwired/lovelive9/info.json | 3 +++ keyboards/handwired/oem_iso_fullsize/config.h | 9 --------- keyboards/handwired/pill60/config.h | 1 - 6 files changed, 6 insertions(+), 12 deletions(-) (limited to 'keyboards/handwired') diff --git a/keyboards/handwired/jot50/config.h b/keyboards/handwired/jot50/config.h index e1359e093e..b21b1c627f 100644 --- a/keyboards/handwired/jot50/config.h +++ b/keyboards/handwired/jot50/config.h @@ -9,7 +9,6 @@ #define BACKLIGHT_LEVELS 3 #define BACKLIGHT_PIN B5 #define BACKLIGHT_BREATHING -#define BREATHING_PERIOD 5 /* COL2ROW or ROW2COL */ #define DIODE_DIRECTION COL2ROW diff --git a/keyboards/handwired/jot50/info.json b/keyboards/handwired/jot50/info.json index db08eef195..4cc8b88fd4 100644 --- a/keyboards/handwired/jot50/info.json +++ b/keyboards/handwired/jot50/info.json @@ -8,6 +8,9 @@ "pid": "0x6060", "device_version": "0.0.1" }, + "backlight": { + "breathing_period": 5 + }, "processor": "atmega32u4", "bootloader": "caterina", "community_layouts": ["ortho_5x12"], diff --git a/keyboards/handwired/lovelive9/config.h b/keyboards/handwired/lovelive9/config.h index 87ba736bb9..4020d7021f 100644 --- a/keyboards/handwired/lovelive9/config.h +++ b/keyboards/handwired/lovelive9/config.h @@ -26,7 +26,6 @@ #define RGBLIGHT_EFFECT_TWINKLE #define BACKLIGHT_LEVELS 5 #define RGBLIGHT_EFFECT_SNAKE_LENGTH 4 -#define BREATHING_PERIOD 2 #define RGBLIGHT_LIMIT_VAL 255 #define RGBLIGHT_HUE_STEP 10 #define RGBLIGHT_SAT_STEP 17 diff --git a/keyboards/handwired/lovelive9/info.json b/keyboards/handwired/lovelive9/info.json index 13931f8f45..be3541c4fd 100644 --- a/keyboards/handwired/lovelive9/info.json +++ b/keyboards/handwired/lovelive9/info.json @@ -8,6 +8,9 @@ "pid": "0x0007", "device_version": "0.0.1" }, + "backlight": { + "breathing_period": 2 + }, "processor": "atmega32u4", "bootloader": "caterina", "layouts": { diff --git a/keyboards/handwired/oem_iso_fullsize/config.h b/keyboards/handwired/oem_iso_fullsize/config.h index 21b3556bb3..af6146110d 100644 --- a/keyboards/handwired/oem_iso_fullsize/config.h +++ b/keyboards/handwired/oem_iso_fullsize/config.h @@ -30,15 +30,6 @@ #define MATRIX_ROW_PINS { C0, B4, F3, F4, F5, F6 } #define MATRIX_COL_PINS { C2, C1, E0, D4, D5, A4, A0, B2, B0, E7, E6, D6, B1, B3, D3, D2, B6, F7, F0, F1, F2 } -/*Row 0, resistor R132, Pin A1 -*Row 1, R131, Pin B5 -*Row 2, R130, Pin E4 -*Row 3, R129, Pin A2 -*Row 4, R128, Pin E5 -*Row 5, R127, Pin A7 -#define BACKLIGHT_PINS { B5, E5, E4, A7, A1, A2 } -#define BACKLIGHT_LEVELS 1*/ - #define DIODE_DIRECTION ROW2COL diff --git a/keyboards/handwired/pill60/config.h b/keyboards/handwired/pill60/config.h index 8b671a9e03..1544eb0e19 100644 --- a/keyboards/handwired/pill60/config.h +++ b/keyboards/handwired/pill60/config.h @@ -23,7 +23,6 @@ #define BACKLIGHT_PWM_DRIVER PWMD5 #define BACKLIGHT_PWM_CHANNEL 1 #define BACKLIGHT_LEVELS 5 -#define BREATHING_PERIOD 6 /* Encoder */ #define ENCODERS_PAD_A \ -- cgit v1.2.3