aboutsummaryrefslogtreecommitdiff
path: root/keyboards/keychron/q1v2/config.h
diff options
context:
space:
mode:
authorRyan <[email protected]>2023-10-21 21:41:59 +1000
committerGitHub <[email protected]>2023-10-21 21:41:59 +1000
commitd56ee70c524b4fc4d1638e5e8c4bdeb89e752993 (patch)
tree68f890de77cbf2750462def33a3ac5d3de11a8c2 /keyboards/keychron/q1v2/config.h
parent3f1b3a512532b8e6ebd2f73df5222ae146b1f490 (diff)
downloadqmk_firmware-d56ee70c524b4fc4d1638e5e8c4bdeb89e752993.tar.gz
qmk_firmware-d56ee70c524b4fc4d1638e5e8c4bdeb89e752993.zip
Rename `DRIVER_ADDR_n` defines (#22200)
Co-authored-by: Nick Brassel <[email protected]>
Diffstat (limited to 'keyboards/keychron/q1v2/config.h')
-rw-r--r--keyboards/keychron/q1v2/config.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/keyboards/keychron/q1v2/config.h b/keyboards/keychron/q1v2/config.h
index e2d331c1ac..d66e78b030 100644
--- a/keyboards/keychron/q1v2/config.h
+++ b/keyboards/keychron/q1v2/config.h
@@ -17,9 +17,9 @@
#pragma once
/* RGB Matrix Driver Configuration */
-#define DRIVER_COUNT 2
-#define DRIVER_ADDR_1 0b1110111
-#define DRIVER_ADDR_2 0b1110100
+#define SNLED27351_DRIVER_COUNT 2
+#define SNLED27351_I2C_ADDRESS_1 SNLED27351_I2C_ADDRESS_VDDIO
+#define SNLED27351_I2C_ADDRESS_2 SNLED27351_I2C_ADDRESS_GND
/* Increase I2C speed to 1000 KHz */
#define I2C1_TIMINGR_PRESC 0U
@@ -44,10 +44,9 @@
#define WEAR_LEVELING_LOGICAL_SIZE 2048
#define WEAR_LEVELING_BACKING_SIZE (WEAR_LEVELING_LOGICAL_SIZE * 2)
-/* Scan phase of led driver set as MSKPHASE_9CHANNEL(defined as 0x03 in CKLED2001.h) */
-#define PHASE_CHANNEL MSKPHASE_9CHANNEL
+#define SNLED27351_PHASE_CHANNEL SNLED27351_MSKPHASE_9CHANNEL
/* Set LED driver current */
-#define CKLED2001_CURRENT_TUNE \
+#define SNLED27351_CURRENT_TUNE \
{ 0xA6, 0xA6, 0x50, 0xA6, 0xA6, 0x50, 0xA6, 0xA6, 0x50, 0xA6, 0xA6, 0x50 }
// RGB Matrix Animation modes. Explicitly enabled