aboutsummaryrefslogtreecommitdiff
path: root/keyboards/rgbkb/sol/rev2/rev2.c
diff options
context:
space:
mode:
authorXScorpion2 <rcalt2vt@gmail.com>2019-07-22 12:43:52 -0500
committerMechMerlin <30334081+mechmerlin@users.noreply.github.com>2019-07-22 10:43:52 -0700
commit40b0ddd425bf09ddbb15a414b5147e98256f10a8 (patch)
tree8aa9d292b49716225474a58e90fd89c6f978da9a /keyboards/rgbkb/sol/rev2/rev2.c
parent17ff9cf554d64fd3e036f3d6e06cff952d8802bf (diff)
downloadqmk_firmware-40b0ddd425bf09ddbb15a414b5147e98256f10a8.tar.gz
qmk_firmware-40b0ddd425bf09ddbb15a414b5147e98256f10a8.zip
Sol Rev 2 Keyboard (#6389)
* Basic Rev 2 implementation * Updated LED defines and added Extra encoder support * Fixed rgb pin assignment * Physically accurate LED positions * Single Color Band scrolling left to right effects * Spirals, Pinwheels, and Documentation....Oh My! * Spiral effect band thickness adjustments * Fixing animation spin directions * Full hand LED positions * Basic Rev 2 implementation Updated LED defines and added Extra encoder support Fixed rgb pin assignment Physically accurate LED positions Full hand LED positions Moving rev2 folder * RGB Center Point LED position update * Fixing led config commas * Fixing led config commas * fix enter key * fix enter * Small changes to default * update default * typo fix * update default * Fixing defines & led config, turned full hand & extra encoders into rules.mk feature * Refactored rules.mk to have a post_rules.mk * Forgot to offset the matrix to led map due to the edge led additions * Updated LED flags and fixed my keymap * Update keymap.c include speed controls for RGB * Fixing more rules.mk and adding keymap like encoders functionality * Sol Rev 2 Implementation * Minor fixes * Keymap fixes * Fix Colemak, add lock keys
Diffstat (limited to 'keyboards/rgbkb/sol/rev2/rev2.c')
-rw-r--r--keyboards/rgbkb/sol/rev2/rev2.c89
1 files changed, 89 insertions, 0 deletions
diff --git a/keyboards/rgbkb/sol/rev2/rev2.c b/keyboards/rgbkb/sol/rev2/rev2.c
new file mode 100644
index 000000000..467aa18e4
--- /dev/null
+++ b/keyboards/rgbkb/sol/rev2/rev2.c
@@ -0,0 +1,89 @@
1#include "quantum.h"
2
3#ifdef RGB_MATRIX_ENABLE
4led_config_t g_led_config = { {
5 { 0, 1, 2, 3, 4, 5, 6 },
6 { 7, 8, 9, 10, 11, 12, 13 },
7 { 14, 15, 16, 17, 18, 19, 20 },
8 { 21, 22, 23, 24, 25, 26, 27 },
9 { 28, 29, 30, 31, 32, 33, 34 },
10 { NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, 33, 34 },
11// Need to shift Right hand indexes if full hand LEDs are enabled
12#define LO (FULLHAND_LEDS / 2)
13 { LO+62, LO+63, LO+64, LO+65, LO+66, LO+67, LO+68 },
14 { LO+69, LO+70, LO+71, LO+72, LO+73, LO+74, LO+75 },
15 { LO+76, LO+77, LO+78, LO+79, LO+80, LO+81, LO+82 },
16 { LO+83, LO+84, LO+85, LO+86, LO+87, LO+88, LO+89 },
17 { LO+90, LO+91, LO+92, LO+93, LO+94, LO+95, LO+95 },
18 { NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, LO+95, LO+95 }
19#undef LO
20}, {
21// Left Hand Mapped Left to Right
22 { 11, 14 }, { 28, 14 }, { 42, 14 }, { 56, 14 }, { 70, 14 }, { 84, 14 }, { 102, 14 },
23 { 11, 28 }, { 28, 28 }, { 42, 28 }, { 56, 28 }, { 70, 28 }, { 84, 28 }, { 98, 25 },
24 { 11, 42 }, { 28, 42 }, { 42, 42 }, { 56, 42 }, { 70, 42 }, { 84, 42 }, { 98, 39 },
25 { 11, 56 }, { 28, 56 }, { 42, 56 }, { 56, 56 }, { 70, 56 }, { 84, 56 }, { 98, 53 },
26 { 11, 70 }, { 28, 70 }, { 42, 70 }, { 56, 70 }, { 70, 70 }, { 83, 87 }, { 93, 97 },
27// Edge Light Left
28 { 0, 66 }, { 0, 52 }, { 0, 38 }, { 0, 24 }, { 0, 10 }, { 31, 0 }, { 38, 0 },
29 { 46, 0 }, { 54, 0 }, { 61, 0 }, { 69, 0 }, { 76, 0 }, { 84, 0 }, { 109, 11 },
30 { 109, 24 }, { 109, 39 }, { 109, 53 }, { 110, 73 }, { 112, 85 }, { 106, 95 }, { 95, 98 },
31 { 83, 91 }, { 71, 84 }, { 58, 77 }, { 42, 74 }, { 28, 74 }, { 14, 74 },
32// Full Hand Left
33#ifdef FULLHAND_ENABLE
34 { 2, 88 }, { 2, 103 }, { 2, 117 }, { 2, 132 }, { 10, 145 }, { 25, 145 }, { 39, 145 },
35 { 54, 145 }, { 69, 145 }, { 79, 136 }, { 87, 124 }, { 94, 111 },
36#endif
37// Left Hand Mapped Right to Left
38 { 213, 14 }, { 196, 14 }, { 182, 14 }, { 168, 14 }, { 154, 14 }, { 140, 14 }, { 122, 14 },
39 { 213, 28 }, { 196, 28 }, { 182, 28 }, { 168, 28 }, { 154, 28 }, { 140, 28 }, { 126, 25 },
40 { 213, 42 }, { 196, 42 }, { 182, 42 }, { 168, 42 }, { 154, 42 }, { 140, 42 }, { 126, 39 },
41 { 213, 56 }, { 196, 56 }, { 182, 56 }, { 168, 56 }, { 154, 56 }, { 140, 56 }, { 126, 53 },
42 { 213, 70 }, { 196, 70 }, { 182, 70 }, { 168, 70 }, { 154, 70 }, { 141, 87 }, { 131, 97 },
43// Edge Light Right
44 { 224, 66 }, { 224, 52 }, { 224, 38 }, { 224, 24 }, { 224, 10 }, { 193, 0 }, { 186, 0 },
45 { 178, 0 }, { 170, 0 }, { 163, 0 }, { 155, 0 }, { 148, 0 }, { 140, 0 }, { 115, 11 },
46 { 115, 24 }, { 115, 39 }, { 115, 53 }, { 114, 73 }, { 112, 85 }, { 118, 95 }, { 129, 98 },
47 { 141, 91 }, { 153, 84 }, { 166, 77 }, { 182, 74 }, { 196, 74 }, { 210, 74 }
48// Full Hand Right
49#ifdef FULLHAND_ENABLE
50 ,{ 222, 88 }, { 222, 103 }, { 222, 117 }, { 222, 132 }, { 214, 145 }, { 199, 145 }, { 185, 145 },
51 { 170, 145 }, { 155, 145 }, { 145, 136 }, { 137, 124 }, { 130, 111 }
52#endif
53}, {
54// Left Hand Mapped Left to Right
55 1, 4, 4, 4, 4, 4, 1,
56 1, 4, 4, 4, 4, 4, 1,
57 1, 4, 4, 4, 4, 4, 1,
58 1, 4, 4, 4, 4, 4, 1,
59 1, 1, 1, 1, 1, 1, 1,
60// Edge Light Left
61 2, 2, 2, 2, 2, 2, 2,
62 2, 2, 2, 2, 2, 2, 2,
63 2, 2, 2, 2, 2, 2, 2,
64 2, 2, 2, 2, 2, 2,
65// Full Hand Left
66#ifdef FULLHAND_ENABLE
67 2, 2, 2, 2, 2, 2, 2,
68 2, 2, 2, 2, 2,
69#endif
70// Left Hand Mapped Right to Left
71 1, 4, 4, 4, 4, 4, 1,
72 1, 4, 4, 4, 4, 4, 1,
73 1, 4, 4, 4, 4, 4, 1,
74 1, 4, 4, 4, 4, 4, 1,
75 1, 1, 1, 1, 1, 1, 1,
76// Edge Light Right
77 2, 2, 2, 2, 2, 2, 2,
78 2, 2, 2, 2, 2, 2, 2,
79 2, 2, 2, 2, 2, 2, 2,
80 2, 2, 2, 2, 2, 2
81// Full Hand Right
82#ifdef FULLHAND_ENABLE
83 ,2, 2, 2, 2, 2, 2, 2,
84 2, 2, 2, 2, 2
85#endif
86} };
87
88#endif
89