summaryrefslogtreecommitdiff
path: root/keyboards/keychron/c2_pro/ansi
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/c2_pro/ansi
parentc8c55e32201a04ac8845a799d47d3539764105a1 (diff)
Migrate RGB Matrix config to info.json (#22998)
Diffstat (limited to 'keyboards/keychron/c2_pro/ansi')
-rw-r--r--keyboards/keychron/c2_pro/ansi/rgb/config.h14
-rw-r--r--keyboards/keychron/c2_pro/ansi/rgb/info.json3
2 files changed, 2 insertions, 15 deletions
diff --git a/keyboards/keychron/c2_pro/ansi/rgb/config.h b/keyboards/keychron/c2_pro/ansi/rgb/config.h
index 61e0b15edc..64dc7e8716 100644
--- a/keyboards/keychron/c2_pro/ansi/rgb/config.h
+++ b/keyboards/keychron/c2_pro/ansi/rgb/config.h
@@ -24,22 +24,8 @@
#define SNLED27351_CURRENT_TUNE \
{ 0xAA, 0xAA, 0x56, 0xAA, 0xAA, 0x56, 0xAA, 0xAA, 0x56, 0xAA, 0xAA, 0x56 }
-/* RGB Matrix Configuration */
-#define DRIVER_1_LED_TOTAL 60
-#define DRIVER_2_LED_TOTAL 48
-#define RGB_MATRIX_LED_COUNT (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)
-
/* Enable indicator LED*/
#define NUM_LED_INDEX 16
#define CAPS_LED_INDEX 17
#define MAC_LED_INDEX 18
#define WIN_LED_INDEX 19
-
-/* turn off effects when suspended */
-#define RGB_MATRIX_SLEEP
-
-// RGB Matrix Animation modes. Explicitly enabled
-// For full list of effects, see:
-// https://docs.qmk.fm/#/feature_rgb_matrix?id=rgb-matrix-effects
-#define RGB_MATRIX_FRAMEBUFFER_EFFECTS
-#define RGB_MATRIX_KEYPRESSES
diff --git a/keyboards/keychron/c2_pro/ansi/rgb/info.json b/keyboards/keychron/c2_pro/ansi/rgb/info.json
index 1eee0ee1cd..a7d91c56e4 100644
--- a/keyboards/keychron/c2_pro/ansi/rgb/info.json
+++ b/keyboards/keychron/c2_pro/ansi/rgb/info.json
@@ -261,6 +261,7 @@
{"matrix":[5, 16], "flags":1, "x":180, "y":64},
{"matrix":[5, 17], "flags":4, "x":198, "y":64},
{"matrix":[5, 18], "flags":4, "x":214, "y":64}
- ]
+ ],
+ "sleep": true
}
}