summaryrefslogtreecommitdiff
path: root/keyboards/maple_computing
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2023-02-26 08:37:57 +1100
committerGitHub <noreply@github.com>2023-02-26 08:37:57 +1100
commit314f6c1ddba09851b33e4f3b4bd43bdbc55f9628 (patch)
tree8d0008ee0609b42ffbcbe19e52c3695ea5ab9280 /keyboards/maple_computing
parentba7546a334ec56e70629652e8552dd493449e9db (diff)
Move backlight config to data driven (#19910)
Diffstat (limited to 'keyboards/maple_computing')
-rw-r--r--keyboards/maple_computing/christmas_tree/config.h2
-rw-r--r--keyboards/maple_computing/christmas_tree/info.json3
-rw-r--r--keyboards/maple_computing/ivy/config.h2
-rw-r--r--keyboards/maple_computing/ivy/rev1/info.json3
-rw-r--r--keyboards/maple_computing/jnao/config.h2
-rw-r--r--keyboards/maple_computing/jnao/info.json3
-rw-r--r--keyboards/maple_computing/lets_split_eh/eh/config.h2
-rw-r--r--keyboards/maple_computing/lets_split_eh/eh/info.json3
8 files changed, 12 insertions, 8 deletions
diff --git a/keyboards/maple_computing/christmas_tree/config.h b/keyboards/maple_computing/christmas_tree/config.h
index 11e591dca2..40c2ce1f48 100644
--- a/keyboards/maple_computing/christmas_tree/config.h
+++ b/keyboards/maple_computing/christmas_tree/config.h
@@ -22,8 +22,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define MATRIX_ROW_PINS { D3, F4, D0, F6, F5, D4 }
#define MATRIX_COL_PINS { D1 }
-#define BACKLIGHT_PIN D2
-
/* COL2ROW or ROW2COL */
#define DIODE_DIRECTION COL2ROW
diff --git a/keyboards/maple_computing/christmas_tree/info.json b/keyboards/maple_computing/christmas_tree/info.json
index 6aa86425a0..d60dabe1df 100644
--- a/keyboards/maple_computing/christmas_tree/info.json
+++ b/keyboards/maple_computing/christmas_tree/info.json
@@ -7,6 +7,9 @@
"vid": "0xFEED",
"pid": "0x3070"
},
+ "backlight": {
+ "pin": "D2"
+ },
"processor": "atmega32u4",
"bootloader": "caterina",
"layouts": {
diff --git a/keyboards/maple_computing/ivy/config.h b/keyboards/maple_computing/ivy/config.h
index 949de97ba8..3192143e77 100644
--- a/keyboards/maple_computing/ivy/config.h
+++ b/keyboards/maple_computing/ivy/config.h
@@ -25,8 +25,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* Locking resynchronize hack */
#define LOCKING_RESYNC_ENABLE
-#define BACKLIGHT_PIN D2
-
/*
* Feature disable options
* These options are also useful to firmware size reduction.
diff --git a/keyboards/maple_computing/ivy/rev1/info.json b/keyboards/maple_computing/ivy/rev1/info.json
index 3c028e0ea5..19109ca73f 100644
--- a/keyboards/maple_computing/ivy/rev1/info.json
+++ b/keyboards/maple_computing/ivy/rev1/info.json
@@ -8,6 +8,9 @@
"pid": "0x6012",
"device_version": "0.0.1"
},
+ "backlight": {
+ "pin": "D2"
+ },
"processor": "atmega32u4",
"bootloader": "caterina",
"layouts": {
diff --git a/keyboards/maple_computing/jnao/config.h b/keyboards/maple_computing/jnao/config.h
index 5b645dd5b9..24942e7a51 100644
--- a/keyboards/maple_computing/jnao/config.h
+++ b/keyboards/maple_computing/jnao/config.h
@@ -21,8 +21,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define MATRIX_ROW_PINS { E6, F0, F5, F6, F7 }
#define MATRIX_COL_PINS { F1, F4, B1, B2, B3, B7, D1, D2, D4, D6, D7, B4 }
-#define BACKLIGHT_PIN D0
-
/* COL2ROW or ROW2COL */
#define DIODE_DIRECTION COL2ROW
diff --git a/keyboards/maple_computing/jnao/info.json b/keyboards/maple_computing/jnao/info.json
index 84fd17bbb2..afa5a8674e 100644
--- a/keyboards/maple_computing/jnao/info.json
+++ b/keyboards/maple_computing/jnao/info.json
@@ -8,6 +8,9 @@
"pid": "0x6017",
"device_version": "0.0.1"
},
+ "backlight": {
+ "pin": "D0"
+ },
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"community_layouts": ["ortho_5x12", "ortho_4x12"],
diff --git a/keyboards/maple_computing/lets_split_eh/eh/config.h b/keyboards/maple_computing/lets_split_eh/eh/config.h
index 77afb19b14..55d2428db0 100644
--- a/keyboards/maple_computing/lets_split_eh/eh/config.h
+++ b/keyboards/maple_computing/lets_split_eh/eh/config.h
@@ -25,8 +25,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define DIODE_DIRECTION COL2ROW
-#define BACKLIGHT_PIN B7
-
/* ws2812 RGB LED */
#define RGB_DI_PIN B2
#define RGBLED_NUM 12 // Number of LEDs (each hand)
diff --git a/keyboards/maple_computing/lets_split_eh/eh/info.json b/keyboards/maple_computing/lets_split_eh/eh/info.json
index b22fef655a..4574b10b64 100644
--- a/keyboards/maple_computing/lets_split_eh/eh/info.json
+++ b/keyboards/maple_computing/lets_split_eh/eh/info.json
@@ -8,6 +8,9 @@
"pid": "0xE401",
"device_version": "1.0.0"
},
+ "backlight": {
+ "pin": "B7"
+ },
"split": {
"soft_serial_pin": "D0"
},