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/mt | |
parent | ba7546a334ec56e70629652e8552dd493449e9db (diff) |
Move backlight config to data driven (#19910)
Diffstat (limited to 'keyboards/mt')
-rw-r--r-- | keyboards/mt/blocked65/config.h | 3 | ||||
-rw-r--r-- | keyboards/mt/blocked65/info.json | 4 | ||||
-rw-r--r-- | keyboards/mt/mt40/config.h | 2 | ||||
-rw-r--r-- | keyboards/mt/mt40/info.json | 3 | ||||
-rw-r--r-- | keyboards/mt/mt980/config.h | 2 | ||||
-rw-r--r-- | keyboards/mt/mt980/info.json | 3 | ||||
-rw-r--r-- | keyboards/mt/ncr80/solder/config.h | 4 | ||||
-rw-r--r-- | keyboards/mt/ncr80/solder/info.json | 4 | ||||
-rw-r--r-- | keyboards/mt/split75/config.h | 2 | ||||
-rw-r--r-- | keyboards/mt/split75/info.json | 3 |
10 files changed, 17 insertions, 13 deletions
diff --git a/keyboards/mt/blocked65/config.h b/keyboards/mt/blocked65/config.h index e2c8b53b73..bd4c880e3b 100644 --- a/keyboards/mt/blocked65/config.h +++ b/keyboards/mt/blocked65/config.h @@ -26,9 +26,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. /* COL2ROW or ROW2COL */ #define DIODE_DIRECTION ROW2COL -#define BACKLIGHT_PIN B6 -#define BACKLIGHT_LEVELS 6 - /* 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/mt/blocked65/info.json b/keyboards/mt/blocked65/info.json index 3a76a3bc61..c16d04cd5b 100644 --- a/keyboards/mt/blocked65/info.json +++ b/keyboards/mt/blocked65/info.json @@ -8,6 +8,10 @@ "pid": "0x0001", "device_version": "0.0.1" }, + "backlight": { + "pin": "B6", + "levels": 6 + }, "processor": "atmega32u4", "bootloader": "atmel-dfu", "community_layouts": ["65_ansi_blocker"], diff --git a/keyboards/mt/mt40/config.h b/keyboards/mt/mt40/config.h index 61947facbc..8a77b3dc7b 100644 --- a/keyboards/mt/mt40/config.h +++ b/keyboards/mt/mt40/config.h @@ -52,8 +52,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. /* COL2ROW, ROW2COL*/ #define DIODE_DIRECTION COL2ROW -#define BACKLIGHT_PIN D2 - /* 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/mt/mt40/info.json b/keyboards/mt/mt40/info.json index 89b385472c..730cdf6c24 100644 --- a/keyboards/mt/mt40/info.json +++ b/keyboards/mt/mt40/info.json @@ -8,6 +8,9 @@ "pid": "0x422D", "device_version": "0.0.1" }, + "backlight": { + "pin": "D2" + }, "processor": "atmega32a", "bootloader": "bootloadhid", "community_layouts": ["planck_mit"], diff --git a/keyboards/mt/mt980/config.h b/keyboards/mt/mt980/config.h index 01187d43a0..8a5dbe68f8 100644 --- a/keyboards/mt/mt980/config.h +++ b/keyboards/mt/mt980/config.h @@ -8,8 +8,6 @@ /* COL2ROW or ROW2COL */ #define DIODE_DIRECTION ROW2COL -#define BACKLIGHT_PIN B6 - /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ #define LOCKING_SUPPORT_ENABLE diff --git a/keyboards/mt/mt980/info.json b/keyboards/mt/mt980/info.json index e1c9f2758f..59afd26650 100644 --- a/keyboards/mt/mt980/info.json +++ b/keyboards/mt/mt980/info.json @@ -8,6 +8,9 @@ "pid": "0x6060", "device_version": "0.0.1" }, + "backlight": { + "pin": "B6" + }, "indicators": { "caps_lock": "C7", "num_lock": "C6", diff --git a/keyboards/mt/ncr80/solder/config.h b/keyboards/mt/ncr80/solder/config.h index f9463fc079..c6828a9323 100644 --- a/keyboards/mt/ncr80/solder/config.h +++ b/keyboards/mt/ncr80/solder/config.h @@ -31,7 +31,3 @@ #define MATRIX_COL_PINS { D0, D1, D2, D3, D5, D4, D6, D7, B4 } #define DIODE_DIRECTION ROW2COL - -#define BACKLIGHT_PIN B6 -#define BACKLIGHT_LEVELS 5 - diff --git a/keyboards/mt/ncr80/solder/info.json b/keyboards/mt/ncr80/solder/info.json index 1718eae5fd..2005f45d48 100644 --- a/keyboards/mt/ncr80/solder/info.json +++ b/keyboards/mt/ncr80/solder/info.json @@ -8,6 +8,10 @@ "pid": "0x2001", "device_version": "0.0.1" }, + "backlight": { + "pin": "B6", + "levels": 5 + }, "indicators": { "caps_lock": "C6", "num_lock": "B5", diff --git a/keyboards/mt/split75/config.h b/keyboards/mt/split75/config.h index 0f18e23646..f954d5fd95 100644 --- a/keyboards/mt/split75/config.h +++ b/keyboards/mt/split75/config.h @@ -20,6 +20,4 @@ #define RGBLIGHT_EFFECT_TWINKLE #define RGBLIGHT_SLEEP -#define BACKLIGHT_PIN D4 - #define I2C_START_RETRY_COUNT 1 diff --git a/keyboards/mt/split75/info.json b/keyboards/mt/split75/info.json index 13f3e32c6f..e97d70bf3b 100644 --- a/keyboards/mt/split75/info.json +++ b/keyboards/mt/split75/info.json @@ -8,6 +8,9 @@ "pid": "0x0001", "device_version": "0.0.1" }, + "backlight": { + "pin": "D4" + }, "indicators": { "caps_lock": "D1", "num_lock": "D0", |