aboutsummaryrefslogtreecommitdiffstats
path: root/keyboards/1upkeyboards/super16/super16.c
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2020-03-04 18:19:39 +0000
committerGitHub <noreply@github.com>2020-03-04 18:19:39 +0000
commit0275098bdde4d92de25483399143d41c896a761e (patch)
tree0b21a8581da46fd18fa2705f3f9264da8864933f /keyboards/1upkeyboards/super16/super16.c
parent0c9171a619b4a7a3f29c076c3da53dc238d08e1f (diff)
downloadfirmware-0275098bdde4d92de25483399143d41c896a761e.tar.gz
firmware-0275098bdde4d92de25483399143d41c896a761e.tar.bz2
firmware-0275098bdde4d92de25483399143d41c896a761e.zip
[Keyboard] Switch to RGB Matrix for Super16 (#8305)
Diffstat (limited to 'keyboards/1upkeyboards/super16/super16.c')
-rw-r--r--keyboards/1upkeyboards/super16/super16.c46
1 files changed, 20 insertions, 26 deletions
diff --git a/keyboards/1upkeyboards/super16/super16.c b/keyboards/1upkeyboards/super16/super16.c
index 72e47f447..93c593ed6 100644
--- a/keyboards/1upkeyboards/super16/super16.c
+++ b/keyboards/1upkeyboards/super16/super16.c
@@ -15,29 +15,23 @@
*/
#include "super16.h"
-void matrix_init_kb(void) {
- // put your keyboard start-up code here
- // runs once when the firmware starts up
-
- matrix_init_user();
-}
-
-void matrix_scan_kb(void) {
- // put your looping keyboard code here
- // runs every cycle (a lot)
-
- matrix_scan_user();
-}
-
-bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
- // put your per-action keyboard code here
- // runs for every action, just before processing by the firmware
-
- return process_record_user(keycode, record);
-}
-
-void led_set_kb(uint8_t usb_led) {
- // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
-
- led_set_user(usb_led);
-}
+led_config_t g_led_config = { {
+ // Key Matrix to LED Index
+ { 0, 1, 2, 3 },
+ { 7, 6, 5, 4 },
+ { 8, 9, 10, 11 },
+ { 15, 14, 13, 12 }
+}, {
+ // LED Index to Physical Position
+ { 0, 0 }, { 75, 0 }, { 150, 0 }, { 224, 0 },
+ { 224, 21 }, { 150, 21 }, { 75, 21 }, { 0, 21 },
+ { 0, 43 }, { 75, 43 }, { 150, 43 }, { 224, 43 },
+ { 224, 64 }, { 150, 64 }, { 75, 64 }, { 0, 64 },
+
+}, {
+ // LED Index to Flag
+ 4, 4, 4, 4,
+ 4, 4, 4, 4,
+ 4, 4, 4, 4,
+ 4, 4, 4, 4
+} };