aboutsummaryrefslogtreecommitdiff
path: root/keyboards/preonic/rev3_drop
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/preonic/rev3_drop')
-rw-r--r--keyboards/preonic/rev3_drop/keyboard.json13
-rw-r--r--keyboards/preonic/rev3_drop/rev3_drop.c29
2 files changed, 12 insertions, 30 deletions
diff --git a/keyboards/preonic/rev3_drop/keyboard.json b/keyboards/preonic/rev3_drop/keyboard.json
index 22374fa5f7..ece6bf32f9 100644
--- a/keyboards/preonic/rev3_drop/keyboard.json
+++ b/keyboards/preonic/rev3_drop/keyboard.json
@@ -44,7 +44,18 @@
"driver": "pwm"
},
"rgb_matrix": {
- "driver": "ws2812"
+ "driver": "ws2812",
+ "layout": [
+ {"matrix": [2, 5], "x": 112, "y": 39, "flags": 255},
+ {"matrix": [9, 1], "x": 148, "y": 60, "flags": 255},
+ {"matrix": [8, 4], "x": 206, "y": 53, "flags": 255},
+ {"matrix": [4, 4], "x": 206, "y": 3, "flags": 255},
+ {"matrix": [4, 1], "x": 150, "y": 3, "flags": 255},
+ {"matrix": [0, 4], "x": 74, "y": 3, "flags": 255},
+ {"matrix": [0, 1], "x": 18, "y": 3, "flags": 255},
+ {"matrix": [8, 1], "x": 18, "y": 54, "flags": 255},
+ {"matrix": [9, 4], "x": 77, "y": 60, "flags": 255}
+ ]
},
"matrix_pins": {
"cols": ["B11", "B10", "B2", "B1", "A7", "B0"],
diff --git a/keyboards/preonic/rev3_drop/rev3_drop.c b/keyboards/preonic/rev3_drop/rev3_drop.c
index 5a751cbba5..12a11c98eb 100644
--- a/keyboards/preonic/rev3_drop/rev3_drop.c
+++ b/keyboards/preonic/rev3_drop/rev3_drop.c
@@ -15,35 +15,6 @@
*/
#include "quantum.h"
-#ifdef RGB_MATRIX_ENABLE
-led_config_t g_led_config = { {
- // Key Matrix to LED Index
- { NO_LED, 6, NO_LED, NO_LED, 5, NO_LED },
- { NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED },
- { NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, 0 },
- { NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED },
- { NO_LED, 4, NO_LED, NO_LED, 3, NO_LED },
- { NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED },
- { NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED },
- { NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED },
- { NO_LED, 7, NO_LED, NO_LED, 2, NO_LED },
- { NO_LED, 1, NO_LED, NO_LED, 8, NO_LED },
-}, {
- // LED Index to Physical Position
- {112, 39}, {148, 60}, {206, 53}, {206, 3}, {150, 3}, {74, 3}, {18, 3}, {18, 54}, {77, 60}
-}, {
- // LED Index to Flag
- LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL,
- LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL
-} };
-
-// LED physical location index
-// 6 5 4 3
-// 0
-// 7 8 1 2
-#endif
-
-
#ifdef SWAP_HANDS_ENABLE
__attribute__ ((weak))
const keypos_t PROGMEM hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = {