summaryrefslogtreecommitdiff
path: root/keyboards/elephant42
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2024-01-04 06:04:57 +0000
committerGitHub <noreply@github.com>2024-01-04 06:04:57 +0000
commit1bd9b9204d233ee48c5a3f39d70cbc93b084cb19 (patch)
treecf89003fc2c4b06519ad736f928cca6caf989142 /keyboards/elephant42
parenta5f1438f58d42a452aaeb2df4cc0b4e01b79608e (diff)
Migrate RGB Matrix config to info.json - EF (#22808)
Diffstat (limited to 'keyboards/elephant42')
-rw-r--r--keyboards/elephant42/config.h7
-rw-r--r--keyboards/elephant42/info.json11
2 files changed, 9 insertions, 9 deletions
diff --git a/keyboards/elephant42/config.h b/keyboards/elephant42/config.h
index b62d75af3c..8468b8057c 100644
--- a/keyboards/elephant42/config.h
+++ b/keyboards/elephant42/config.h
@@ -17,13 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
-#ifdef RGB_MATRIX_ENABLE
-# define SPLIT_TRANSPORT_MIRROR
-# define RGB_MATRIX_LED_COUNT 54
-# define RGB_MATRIX_SPLIT { 27, 27 }
-# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 170
-#endif
-
#ifndef OLED_FONT_H
# define OLED_FONT_H "keyboards/elephant42/lib/glcdfont.c"
#endif
diff --git a/keyboards/elephant42/info.json b/keyboards/elephant42/info.json
index 742640619e..1bc39ced98 100644
--- a/keyboards/elephant42/info.json
+++ b/keyboards/elephant42/info.json
@@ -12,7 +12,9 @@
"driver": "ws2812",
"sat_steps": 8,
"val_steps": 8,
- "speed_steps": 8
+ "speed_steps": 8,
+ "max_brightness": 170,
+ "split_count": [27, 27]
},
"rgblight": {
"saturation_steps": 8,
@@ -39,7 +41,12 @@
},
"diode_direction": "COL2ROW",
"split": {
- "soft_serial_pin": "D2"
+ "soft_serial_pin": "D2",
+ "transport": {
+ "sync": {
+ "matrix_state": true
+ }
+ }
},
"ws2812": {
"pin": "D3"