summaryrefslogtreecommitdiff
path: root/keyboards/tzarc/djinn
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/tzarc/djinn
parentba7546a334ec56e70629652e8552dd493449e9db (diff)
Move backlight config to data driven (#19910)
Diffstat (limited to 'keyboards/tzarc/djinn')
-rw-r--r--keyboards/tzarc/djinn/config.h1
-rw-r--r--keyboards/tzarc/djinn/info.json3
-rw-r--r--keyboards/tzarc/djinn/rules.mk2
3 files changed, 2 insertions, 4 deletions
diff --git a/keyboards/tzarc/djinn/config.h b/keyboards/tzarc/djinn/config.h
index 9ef23769f1..bb2bd6f6e2 100644
--- a/keyboards/tzarc/djinn/config.h
+++ b/keyboards/tzarc/djinn/config.h
@@ -49,7 +49,6 @@
#endif // LCD_ACTIVITY_TIMEOUT
// Backlight driver (to control LCD backlight)
-#define BACKLIGHT_LEVELS 4
#define BACKLIGHT_PWM_DRIVER PWMD17
#define BACKLIGHT_PWM_CHANNEL 1
#define BACKLIGHT_PAL_MODE 1
diff --git a/keyboards/tzarc/djinn/info.json b/keyboards/tzarc/djinn/info.json
index 08634983c8..cceaf637e5 100644
--- a/keyboards/tzarc/djinn/info.json
+++ b/keyboards/tzarc/djinn/info.json
@@ -30,7 +30,8 @@
"cols": ["C0", "C1", "C2", "C3", "A0", "A1", "A2"]
},
"backlight": {
- "pin": "A7"
+ "pin": "A7",
+ "levels": 4
},
"split": {
"enabled": true,
diff --git a/keyboards/tzarc/djinn/rules.mk b/keyboards/tzarc/djinn/rules.mk
index 2f343a5a9d..9b81a4bfaf 100644
--- a/keyboards/tzarc/djinn/rules.mk
+++ b/keyboards/tzarc/djinn/rules.mk
@@ -2,8 +2,6 @@ CUSTOM_MATRIX = lite
SERIAL_DRIVER = usart
-BACKLIGHT_DRIVER = pwm
-
WS2812_DRIVER = pwm
CIE1931_CURVE = yes