summaryrefslogtreecommitdiff
path: root/keyboards/lfkeyboards/lfk87/revc/revc.c
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2023-05-03 07:41:59 +1000
committerGitHub <noreply@github.com>2023-05-03 07:41:59 +1000
commite77ebe6889d5c42f36b9a9a050a4dcfbb470c37b (patch)
treef3f3340b743094b0d9162659517a3cf5882245e3 /keyboards/lfkeyboards/lfk87/revc/revc.c
parent3ab3101b28589fe685f6168d286a8734e23416f5 (diff)
Remove use of layout macros for LFKeyboards LED config (#20666)
Diffstat (limited to 'keyboards/lfkeyboards/lfk87/revc/revc.c')
-rw-r--r--keyboards/lfkeyboards/lfk87/revc/revc.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/keyboards/lfkeyboards/lfk87/revc/revc.c b/keyboards/lfkeyboards/lfk87/revc/revc.c
new file mode 100644
index 0000000000..f14a1f38e5
--- /dev/null
+++ b/keyboards/lfkeyboards/lfk87/revc/revc.c
@@ -0,0 +1,17 @@
+#include "quantum.h"
+
+// Maps switch LEDs from Row/Col to ISSI matrix.
+// Value breakdown:
+// Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
+// | | ISSI Col | ISSI Row |
+// / |
+// Device
+const uint8_t switch_leds[MATRIX_ROWS][MATRIX_COLS] = {
+ {0x18, 0x17, 0x16, 0x15, 0x14, 0x13, 0x12, 0x11, 0x99, 0x98, 0x97, 0x96, 0x00, 0x95, 0x94, 0x93},
+ {0x29, 0x28, 0x27, 0x26, 0x25, 0x24, 0x23, 0x22, 0x21, 0xA9, 0xA8, 0xA7, 0x00, 0xA6, 0xA5, 0xA4},
+ {0xA2, 0xA1, 0x39, 0x38, 0x37, 0x36, 0x35, 0x34, 0x33, 0x32, 0x31, 0xB9, 0xB8, 0xB7, 0xB6, 0xB5},
+ {0x49, 0x48, 0x47, 0x45, 0x44, 0x43, 0x42, 0x41, 0xC9, 0xC8, 0xC7, 0xC6, 0x00, 0x00, 0x00, 0x00},
+ {0x00, 0xC4, 0xC2, 0x59, 0x58, 0x57, 0x56, 0x55, 0x51, 0xD6, 0xE5, 0xE4, 0x00, 0x00, 0xE3, 0x00},
+ {0xB3, 0xC5, 0xE2, 0xE1, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},
+ {0x19, 0x92, 0x91, 0xA3, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}
+};