aboutsummaryrefslogtreecommitdiff
path: root/keyboards/doro67/rgb/rgb.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/doro67/rgb/rgb.c')
-rw-r--r--keyboards/doro67/rgb/rgb.c103
1 files changed, 30 insertions, 73 deletions
diff --git a/keyboards/doro67/rgb/rgb.c b/keyboards/doro67/rgb/rgb.c
index 8aaf6ef4a..e8c9ac632 100644
--- a/keyboards/doro67/rgb/rgb.c
+++ b/keyboards/doro67/rgb/rgb.c
@@ -14,6 +14,7 @@
14 * along with this program. If not, see <http://www.gnu.org/licenses/>. 14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */ 15 */
16#include "rgb.h" 16#include "rgb.h"
17#include "rgb_matrix_types.h"
17 18
18// Optional override functions below. 19// Optional override functions below.
19// You can leave any or all of these undefined. 20// You can leave any or all of these undefined.
@@ -52,76 +53,32 @@ void led_set_kb(uint8_t usb_led) {
52 led_set_user(usb_led); 53 led_set_user(usb_led);
53} 54}
54 55
55rgb_led g_rgb_leds[DRIVER_LED_TOTAL] = { 56led_config_t g_led_config = { {
56 {{0|(0<<4)}, {15*0, 0}, 4}, // Esc 57 { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 },
57 {{0|(1<<4)}, {15*1, 0}, 4}, // 1 58 { 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29 },
58 {{0|(2<<4)}, {15*2, 0}, 4}, // 2 59 { 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, NO_LED, 42, 43 },
59 {{0|(3<<4)}, {15*3, 0}, 4}, // 3 60 { 44, NO_LED, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57 },
60 {{0|(4<<4)}, {15*4, 0}, 4}, // 4 61 { 58, 59, 60, 61, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, 62, 63, NO_LED, 64, 65, 66 }
61 {{0|(5<<4)}, {15*5, 0}, 4}, // 5 62}, {
62 {{0|(6<<4)}, {15*6, 0}, 4}, // 6 63 // Esc, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, -, =, Backspace, Ins
63 {{0|(7<<4)}, {15*7, 0}, 4}, // 7 64 { 0, 0 }, { 15, 0 }, { 30, 0 }, { 45, 0 }, { 60, 0 }, { 75, 0 }, { 90, 0 }, { 105, 0 }, { 120, 0 }, { 135, 0 }, { 150, 0 }, { 165, 0 }, { 180, 0 }, { 202, 0 }, { 225, 0 },
64 {{0|(8<<4)}, {15*8, 0}, 4}, // 8 65 // Tab, Q, W, E, R, T, Y, U, I, O, P, [, ], , Del
65 {{0|(9<<4)}, {15*9, 0}, 4}, // 9 66 { 7, 16 }, { 22, 16 }, { 37, 16 }, { 52, 16 }, { 67, 16 }, { 82, 16 }, { 97, 16 }, { 112, 16 }, { 127, 16 }, { 142, 16 }, { 157, 16 }, { 172, 16 }, { 187, 16 }, { 206, 16 }, { 225, 16 },
66 {{0|(10<<4)}, {15*10, 0}, 4}, // 0 67 // Capslock, A, S, D, F, G, H, J, K, L, ;, ', Enter, Pgup
67 {{0|(11<<4)}, {15*11, 0}, 4}, // - 68 { 11, 32 }, { 26, 32 }, { 41, 32 }, { 56, 32 }, { 71, 32 }, { 86, 32 }, { 101, 32 }, { 116, 32 }, { 131, 32 }, { 146, 32 }, { 161, 32 }, { 176, 32 }, { 198, 32 }, { 225, 32 },
68 {{0|(12<<4)}, {15*12, 0}, 4}, // = 69 // LShift, Z, X, C, V, B, N, M, ,, ., /, Shift, Up, Pgdn
69 {{0|(13<<4)}, {15*13.5, 0}, 1}, // Backspace 70 { 18, 48 }, { 30, 48 }, { 45, 48 }, { 60, 48 }, { 75, 48 }, { 90, 48 }, { 105, 48 }, { 120, 48 }, { 135, 48 }, { 150, 48 }, { 165, 48 }, { 191, 48 }, { 210, 48 }, { 225, 48 },
70 {{0|(14<<4)}, {15*15, 0}, 1}, // Ins 71 // Ctrl, GUI, Alt, Space, RAlt, FN, Left, Down, Right
71 72 { 3, 64 }, { 22, 64 }, { 33, 64 }, { 101, 64 }, { 135, 64 }, { 153, 64 }, { 195, 64 }, { 210, 64 }, { 225, 64 }
72 {{1|(0<<4)}, {15*0.5, 16}, 1}, // Tab 73}, {
73 {{1|(1<<4)}, {15*1.5, 16}, 4}, // Q 74 // Esc, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, -, =, Backspace, Ins
74 {{1|(2<<4)}, {15*2.5, 16}, 4}, // W 75 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, 1,
75 {{1|(3<<4)}, {15*3.5, 16}, 4}, // E 76 // Tab, Q, W, E, R, T, Y, U, I, O, P, [, ], , Del
76 {{1|(4<<4)}, {15*4.5, 16}, 4}, // R 77 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, 1,
77 {{1|(5<<4)}, {15*5.5, 16}, 4}, // T 78 // Capslock, A, S, D, F, G, H, J, K, L, ;, ', Enter, Pgup
78 {{1|(6<<4)}, {15*6.5, 16}, 4}, // Y 79 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, 1,
79 {{1|(7<<4)}, {15*7.5, 16}, 4}, // U 80 // LShift, Z, X, C, V, B, N, M, ,, ., /, Shift, Up, Pgdn
80 {{1|(8<<4)}, {15*8.5, 16}, 4}, // I 81 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, 1, 1,
81 {{1|(9<<4)}, {15*9.5, 16}, 4}, // O 82 // Ctrl, GUI, Alt, Space, RAlt, FN, Left, Down, Right
82 {{1|(10<<4)}, {15*10.5, 16}, 4}, // P 83 1, 1, 1, 4, 1, 1, 1, 1, 1
83 {{1|(11<<4)}, {15*11.5, 16}, 4}, // [ 84} };
84 {{1|(12<<4)}, {15*12.5, 16}, 4}, // ]
85 {{1|(13<<4)}, {15*13.75, 16}, 1}, //
86 {{1|(14<<4)}, {15*15, 16}, 1}, // Del
87
88 {{2|(0<<4)}, {15*0.75, 32}, 1}, // Capslock
89 {{2|(1<<4)}, {15*1.75, 32}, 4}, // A
90 {{2|(2<<4)}, {15*2.75, 32}, 4}, // S
91 {{2|(3<<4)}, {15*3.75, 32}, 4}, // D
92 {{2|(4<<4)}, {15*4.75, 32}, 4}, // F
93 {{2|(5<<4)}, {15*5.75, 32}, 4}, // G
94 {{2|(6<<4)}, {15*6.75, 32}, 4}, // H
95 {{2|(7<<4)}, {15*7.75, 32}, 4}, // J
96 {{2|(8<<4)}, {15*8.75, 32}, 4}, // K
97 {{2|(9<<4)}, {15*9.75, 32}, 4}, // L
98 {{2|(10<<4)}, {15*10.75, 32}, 4}, // ;
99 {{2|(11<<4)}, {15*11.75, 32}, 4}, // '
100 {{2|(13<<4)}, {15*13.25, 32}, 1}, // Enter
101 {{2|(14<<4)}, {15*15, 32}, 1}, // Pgup
102
103 {{3|(0<<4)}, {15*1.25, 48}, 1}, // LShift
104 {{3|(2<<4)}, {15*2, 48}, 4}, // Z
105 {{3|(3<<4)}, {15*3, 48}, 4}, // X
106 {{3|(4<<4)}, {15*4, 48}, 4}, // C
107 {{3|(5<<4)}, {15*5, 48}, 4}, // V
108 {{3|(6<<4)}, {15*6, 48}, 4}, // B
109 {{3|(7<<4)}, {15*7, 48}, 4}, // N
110 {{3|(8<<4)}, {15*8, 48}, 4}, // M
111 {{3|(9<<4)}, {15*9, 48}, 4}, // ,
112 {{3|(10<<4)}, {15*10, 48}, 4}, // .
113 {{3|(11<<4)}, {15*11, 48}, 4}, // /
114 {{3|(12<<4)}, {15*12.75, 48}, 1}, // Shift
115 {{3|(13<<4)}, {15*14, 48}, 1}, // Up
116 {{3|(14<<4)}, {15*15, 48}, 1}, // Pgdn
117
118 {{4|(0<<4)}, {15*0.25, 64}, 1}, // Ctrl
119 {{4|(1<<4)}, {15*1.5, 64}, 1}, // GUI
120 {{4|(2<<4)}, {15*2.25, 64}, 1}, // Alt
121 {{4|(3<<4)}, {15*6.75, 64}, 4}, // Space
122 {{4|(9<<4)}, {15*9, 64}, 1}, // RAlt
123 {{4|(10<<4)}, {15*10.25, 64}, 1}, // FN
124 {{4|(12<<4)}, {15*13, 64}, 1}, // Left
125 {{4|(13<<4)}, {15*14, 64}, 1}, // Down
126 {{4|(14<<4)}, {15*15, 64}, 1}, // Right
127};