summaryrefslogtreecommitdiff
path: root/keyboards/planck
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/planck
parentba7546a334ec56e70629652e8552dd493449e9db (diff)
Move backlight config to data driven (#19910)
Diffstat (limited to 'keyboards/planck')
-rw-r--r--keyboards/planck/config.h2
-rw-r--r--keyboards/planck/light/config.h4
-rw-r--r--keyboards/planck/light/info.json3
-rw-r--r--keyboards/planck/rev1/info.json3
-rw-r--r--keyboards/planck/rev2/info.json3
-rw-r--r--keyboards/planck/rev3/info.json3
-rw-r--r--keyboards/planck/rev4/info.json3
-rw-r--r--keyboards/planck/rev5/info.json3
8 files changed, 18 insertions, 6 deletions
diff --git a/keyboards/planck/config.h b/keyboards/planck/config.h
index 165e6dcc5c..ff4b7bb3aa 100644
--- a/keyboards/planck/config.h
+++ b/keyboards/planck/config.h
@@ -25,8 +25,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define AUDIO_VOICES
#define AUDIO_PIN C6
-#define BACKLIGHT_PIN B7
-
/* COL2ROW or ROW2COL */
#define DIODE_DIRECTION COL2ROW
diff --git a/keyboards/planck/light/config.h b/keyboards/planck/light/config.h
index 862751d6b6..7a64f87174 100644
--- a/keyboards/planck/light/config.h
+++ b/keyboards/planck/light/config.h
@@ -12,10 +12,6 @@
#define AUDIO_PIN C6
#define AUDIO_PIN_ALT B5
-#undef BACKLIGHT_PIN
-
-#define BACKLIGHT_PIN A5
-
#define NO_USB_STARTUP_CHECK
#define PLANCK_MIT_LAYOUT
diff --git a/keyboards/planck/light/info.json b/keyboards/planck/light/info.json
index ed23c14828..c2ab19563e 100644
--- a/keyboards/planck/light/info.json
+++ b/keyboards/planck/light/info.json
@@ -8,6 +8,9 @@
"pid": "0xBEA2",
"device_version": "0.0.1"
},
+ "backlight": {
+ "pin": "A5"
+ },
"processor": "at90usb1286",
"bootloader": "atmel-dfu",
"community_layouts": ["ortho_4x12", "planck_mit"],
diff --git a/keyboards/planck/rev1/info.json b/keyboards/planck/rev1/info.json
index 6829001b0e..ebf11c9c8b 100644
--- a/keyboards/planck/rev1/info.json
+++ b/keyboards/planck/rev1/info.json
@@ -8,6 +8,9 @@
"pid": "0xAE01",
"device_version": "0.0.1"
},
+ "backlight": {
+ "pin": "B7"
+ },
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"community_layouts": ["ortho_4x12", "planck_mit"],
diff --git a/keyboards/planck/rev2/info.json b/keyboards/planck/rev2/info.json
index 2f36673b1e..b7a3a31628 100644
--- a/keyboards/planck/rev2/info.json
+++ b/keyboards/planck/rev2/info.json
@@ -8,6 +8,9 @@
"pid": "0xAE01",
"device_version": "0.0.2"
},
+ "backlight": {
+ "pin": "B7"
+ },
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"community_layouts": ["ortho_4x12", "planck_mit"],
diff --git a/keyboards/planck/rev3/info.json b/keyboards/planck/rev3/info.json
index 5479a93d93..4ba0085cda 100644
--- a/keyboards/planck/rev3/info.json
+++ b/keyboards/planck/rev3/info.json
@@ -8,6 +8,9 @@
"pid": "0xAE01",
"device_version": "0.0.3"
},
+ "backlight": {
+ "pin": "B7"
+ },
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"community_layouts": ["ortho_4x12", "planck_mit"],
diff --git a/keyboards/planck/rev4/info.json b/keyboards/planck/rev4/info.json
index 2c3c9e842b..46513d8248 100644
--- a/keyboards/planck/rev4/info.json
+++ b/keyboards/planck/rev4/info.json
@@ -8,6 +8,9 @@
"pid": "0xAE01",
"device_version": "0.0.4"
},
+ "backlight": {
+ "pin": "B7"
+ },
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"community_layouts": ["ortho_4x12", "planck_mit"],
diff --git a/keyboards/planck/rev5/info.json b/keyboards/planck/rev5/info.json
index cd76c7e2ad..9fb2ae811e 100644
--- a/keyboards/planck/rev5/info.json
+++ b/keyboards/planck/rev5/info.json
@@ -8,6 +8,9 @@
"pid": "0xAE01",
"device_version": "0.0.5"
},
+ "backlight": {
+ "pin": "B7"
+ },
"qmk_lufa_bootloader": {
"esc_input": "D5",
"esc_output": "F1",