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/40percentclub/4pack/config.h | 4 ---- keyboards/40percentclub/4pack/info.json | 3 +++ keyboards/40percentclub/sixpack/config.h | 1 - keyboards/40percentclub/sixpack/info.json | 3 +++ 4 files changed, 6 insertions(+), 5 deletions(-) (limited to 'keyboards/40percentclub') diff --git a/keyboards/40percentclub/4pack/config.h b/keyboards/40percentclub/4pack/config.h index 2fc00cdc89..b0cf6b6f6a 100644 --- a/keyboards/40percentclub/4pack/config.h +++ b/keyboards/40percentclub/4pack/config.h @@ -17,10 +17,6 @@ along with this program. If not, see . #pragma once -#define BACKLIGHT_LED_COUNT 2 -#undef BACKLIGHT_PIN -#define BACKLIGHT_PINS { F6, F7 } - /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ #define LOCKING_SUPPORT_ENABLE /* Locking resynchronize hack */ diff --git a/keyboards/40percentclub/4pack/info.json b/keyboards/40percentclub/4pack/info.json index 9cdb584b0c..12ede4172c 100644 --- a/keyboards/40percentclub/4pack/info.json +++ b/keyboards/40percentclub/4pack/info.json @@ -8,6 +8,9 @@ "pid": "0x0000", "device_version": "0.0.1" }, + "backlight": { + "pins": ["F6", "F7"] + }, "processor": "atmega32u4", "bootloader": "caterina", "matrix_pins": { diff --git a/keyboards/40percentclub/sixpack/config.h b/keyboards/40percentclub/sixpack/config.h index 071eecddd4..acf61f0017 100644 --- a/keyboards/40percentclub/sixpack/config.h +++ b/keyboards/40percentclub/sixpack/config.h @@ -20,4 +20,3 @@ along with this program. If not, see . /* Backlight */ #define BACKLIGHT_BREATHING #define BACKLIGHT_LEVELS 6 -#define BACKLIGHT_PINS { F4, F5 } // Top Row, Bottom Row diff --git a/keyboards/40percentclub/sixpack/info.json b/keyboards/40percentclub/sixpack/info.json index 4e7f39c9c6..65f16021dd 100644 --- a/keyboards/40percentclub/sixpack/info.json +++ b/keyboards/40percentclub/sixpack/info.json @@ -8,6 +8,9 @@ "pid": "0x5350", "device_version": "10.0.1" }, + "backlight": { + "pins": ["F4", "F5"] + }, "indicators": { "caps_lock": "B0", "num_lock": "D5", -- cgit v1.2.3