summaryrefslogtreecommitdiff
path: root/keyboards/keychron/q4
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2024-02-14 00:54:14 +0000
committerGitHub <noreply@github.com>2024-02-14 00:54:14 +0000
commit974e98ce59f7df1e1a2d8ef65d9a4e758db62b58 (patch)
treeb560bd013d9d17f7155331eb9763ecd009102766 /keyboards/keychron/q4
parentc8c55e32201a04ac8845a799d47d3539764105a1 (diff)
Migrate RGB Matrix config to info.json (#22998)
Diffstat (limited to 'keyboards/keychron/q4')
-rw-r--r--keyboards/keychron/q4/ansi/v1/config.h3
-rw-r--r--keyboards/keychron/q4/ansi/v2/config.h3
-rw-r--r--keyboards/keychron/q4/config.h6
-rw-r--r--keyboards/keychron/q4/info.json3
-rw-r--r--keyboards/keychron/q4/iso/config.h3
5 files changed, 2 insertions, 16 deletions
diff --git a/keyboards/keychron/q4/ansi/v1/config.h b/keyboards/keychron/q4/ansi/v1/config.h
index 2f437c72c6..478b2ff9f9 100644
--- a/keyboards/keychron/q4/ansi/v1/config.h
+++ b/keyboards/keychron/q4/ansi/v1/config.h
@@ -20,7 +20,4 @@
#define SNLED27351_I2C_ADDRESS_1 SNLED27351_I2C_ADDRESS_VDDIO
#define SNLED27351_I2C_ADDRESS_2 SNLED27351_I2C_ADDRESS_GND
-/* RGB Matrix Configuration */
-#define RGB_MATRIX_LED_COUNT 61
-
#define SNLED27351_PHASE_CHANNEL SNLED27351_SCAN_PHASE_9_CHANNEL
diff --git a/keyboards/keychron/q4/ansi/v2/config.h b/keyboards/keychron/q4/ansi/v2/config.h
index 029e7727a8..48a6c66908 100644
--- a/keyboards/keychron/q4/ansi/v2/config.h
+++ b/keyboards/keychron/q4/ansi/v2/config.h
@@ -18,6 +18,3 @@
/* RGB Matrix Driver Configuration */
#define SNLED27351_I2C_ADDRESS_1 SNLED27351_I2C_ADDRESS_GND
-
-/* RGB Matrix Configuration */
-#define RGB_MATRIX_LED_COUNT 61
diff --git a/keyboards/keychron/q4/config.h b/keyboards/keychron/q4/config.h
index a46d98eb06..fe4ee38e7d 100644
--- a/keyboards/keychron/q4/config.h
+++ b/keyboards/keychron/q4/config.h
@@ -16,11 +16,5 @@
#pragma once
-/* turn off effects when suspended */
-#define RGB_MATRIX_SLEEP
-
#define SNLED27351_CURRENT_TUNE \
{ 0xCA, 0xCA, 0x60, 0xCA, 0xCA, 0x60, 0xCA, 0xCA, 0x60, 0xCA, 0xCA, 0x60 }
-
-#define RGB_MATRIX_KEYPRESSES
-#define RGB_MATRIX_FRAMEBUFFER_EFFECTS \ No newline at end of file
diff --git a/keyboards/keychron/q4/info.json b/keyboards/keychron/q4/info.json
index 4e88d4db6a..e314477ab9 100644
--- a/keyboards/keychron/q4/info.json
+++ b/keyboards/keychron/q4/info.json
@@ -56,7 +56,8 @@
"splash": true,
"typing_heatmap": true
},
- "driver": "snled27351"
+ "driver": "snled27351",
+ "sleep": true
},
"url": "https://github.com/Keychron",
"usb": {
diff --git a/keyboards/keychron/q4/iso/config.h b/keyboards/keychron/q4/iso/config.h
index 8231b9eba8..9e97922991 100644
--- a/keyboards/keychron/q4/iso/config.h
+++ b/keyboards/keychron/q4/iso/config.h
@@ -19,8 +19,5 @@
/* RGB Matrix Driver Configuration */
#define SNLED27351_I2C_ADDRESS_1 SNLED27351_I2C_ADDRESS_GND
-/* RGB Matrix Configuration */
-#define RGB_MATRIX_LED_COUNT 62
-
/* Enable CapsLcok LED*/
#define CAPS_LOCK_LED_INDEX 27