From 522048725f6b076bdad1251243c65dd2acf6595d Mon Sep 17 00:00:00 2001 From: Ryan Date: Sat, 8 Apr 2023 18:08:08 +1000 Subject: Move `RGB_MATRIX_DRIVER` to data driven (#20350) --- keyboards/preonic/rev3/info.json | 3 +++ keyboards/preonic/rev3/rules.mk | 1 - keyboards/preonic/rev3_drop/info.json | 3 +++ keyboards/preonic/rev3_drop/rules.mk | 1 - 4 files changed, 6 insertions(+), 2 deletions(-) (limited to 'keyboards/preonic') diff --git a/keyboards/preonic/rev3/info.json b/keyboards/preonic/rev3/info.json index de242674bb..d6d494e005 100644 --- a/keyboards/preonic/rev3/info.json +++ b/keyboards/preonic/rev3/info.json @@ -10,6 +10,9 @@ "pin": "A1", "driver": "pwm" }, + "rgb_matrix": { + "driver": "WS2812" + }, "matrix_pins": { "cols": ["B11", "B10", "B2", "B1", "A7", "B0"], "rows": ["A10", "A9", "A8", "B15", "C13", "C14", "C15", "A2", "A3", "A6"] diff --git a/keyboards/preonic/rev3/rules.mk b/keyboards/preonic/rev3/rules.mk index fa3348cef6..6836d19541 100644 --- a/keyboards/preonic/rev3/rules.mk +++ b/keyboards/preonic/rev3/rules.mk @@ -13,7 +13,6 @@ RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight. # Do not enable RGB_MATRIX_ENABLE together with RGBLIGHT_ENABLE RGB_MATRIX_ENABLE = no -RGB_MATRIX_DRIVER = WS2812 ENCODER_ENABLE = yes DIP_SWITCH_ENABLE = yes diff --git a/keyboards/preonic/rev3_drop/info.json b/keyboards/preonic/rev3_drop/info.json index ff105f700f..a3eac4eaf4 100644 --- a/keyboards/preonic/rev3_drop/info.json +++ b/keyboards/preonic/rev3_drop/info.json @@ -10,6 +10,9 @@ "pin": "A1", "driver": "pwm" }, + "rgb_matrix": { + "driver": "WS2812" + }, "matrix_pins": { "cols": ["B11", "B10", "B2", "B1", "A7", "B0"], "rows": ["A10", "A9", "A8", "B15", "C13", "C14", "C15", "A2", "A3", "A6"] diff --git a/keyboards/preonic/rev3_drop/rules.mk b/keyboards/preonic/rev3_drop/rules.mk index 762dd6ff6c..d3ff068813 100644 --- a/keyboards/preonic/rev3_drop/rules.mk +++ b/keyboards/preonic/rev3_drop/rules.mk @@ -16,6 +16,5 @@ DIP_SWITCH_ENABLE = yes # Do not enable RGB_MATRIX_ENABLE together with RGBLIGHT_ENABLE RGB_MATRIX_ENABLE = no -RGB_MATRIX_DRIVER = WS2812 SRC += matrix.c -- cgit v1.2.3