aboutsummaryrefslogtreecommitdiff
path: root/keyboards/gmmk/numpad
diff options
context:
space:
mode:
authorRyan <[email protected]>2023-09-13 22:45:17 +1000
committerGitHub <[email protected]>2023-09-13 22:45:17 +1000
commita0aebe5cd586bb464105a8ce6eddf926372c6146 (patch)
tree70742d160be0e6e11a95c518ede17bb7e4b34823 /keyboards/gmmk/numpad
parentb9f2121d109cf8c3c4ff8ba7cc382db34cc3e1e4 (diff)
downloadqmk_firmware-a0aebe5cd586bb464105a8ce6eddf926372c6146.tar.gz
qmk_firmware-a0aebe5cd586bb464105a8ce6eddf926372c6146.zip
aw20216: driver naming cleanups (#21891)
Diffstat (limited to 'keyboards/gmmk/numpad')
-rw-r--r--keyboards/gmmk/numpad/config.h8
-rw-r--r--keyboards/gmmk/numpad/info.json2
-rw-r--r--keyboards/gmmk/numpad/numpad.c12
3 files changed, 11 insertions, 11 deletions
diff --git a/keyboards/gmmk/numpad/config.h b/keyboards/gmmk/numpad/config.h
index 6aa0a6c016..9096ce1d56 100644
--- a/keyboards/gmmk/numpad/config.h
+++ b/keyboards/gmmk/numpad/config.h
@@ -28,11 +28,11 @@
#define SPI_MOSI_PIN B5
#define SPI_MISO_PIN B4
-#define DRIVER_1_CS B12
-#define DRIVER_1_EN A15
-#define DRIVER_1_PW_EN B13
+#define AW20216S_DRIVER_1_CS B12
+#define AW20216S_DRIVER_1_EN A15
+#define AW20216S_DRIVER_1_PW_EN B13
-#define DRIVER_COUNT 1
+#define AW20216S_DRIVER_COUNT 1
#define RGB_MATRIX_LED_COUNT 31
diff --git a/keyboards/gmmk/numpad/info.json b/keyboards/gmmk/numpad/info.json
index 66aead113e..406f22603a 100644
--- a/keyboards/gmmk/numpad/info.json
+++ b/keyboards/gmmk/numpad/info.json
@@ -20,7 +20,7 @@
]
},
"rgb_matrix": {
- "driver": "aw20216"
+ "driver": "aw20216s"
},
"processor": "WB32F3G71",
"bootloader": "wb32-dfu",
diff --git a/keyboards/gmmk/numpad/numpad.c b/keyboards/gmmk/numpad/numpad.c
index f1a46170fd..377dde810b 100644
--- a/keyboards/gmmk/numpad/numpad.c
+++ b/keyboards/gmmk/numpad/numpad.c
@@ -19,10 +19,10 @@
#ifdef RGB_MATRIX_ENABLE
-const aw_led g_aw_leds[RGB_MATRIX_LED_COUNT] = {
-/* Each AW20216 channel is controlled by a register at some offset between 0x00
+const aw20216s_led g_aw20216s_leds[RGB_MATRIX_LED_COUNT] = {
+/* Each AW20216S channel is controlled by a register at some offset between 0x00
* and 0xD7 inclusive.
- * See drivers/awinic/aw20216.h for the mapping between register offsets and
+ * See drivers/led/aw20216s.h for the mapping between register offsets and
* driver pin locations.
* driver
* | R location
@@ -110,12 +110,12 @@ led_config_t g_led_config = {{
2, 2, 2, 2, 2, 2, 2
} };
-# ifdef DRIVER_1_PW_EN
+# ifdef AW20216S_DRIVER_1_PW_EN
void keyboard_pre_init_user(void) {
wait_ms(2000);
- setPinOutput(DRIVER_1_PW_EN);
- writePinHigh(DRIVER_1_PW_EN);
+ setPinOutput(AW20216S_DRIVER_1_PW_EN);
+ writePinHigh(AW20216S_DRIVER_1_PW_EN);
}
# endif