aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryulei <yuleiz@gmail.com>2019-01-28 08:57:50 +0800
committerDrashna Jaelre <drashna@live.com>2019-01-27 16:57:50 -0800
commit996ada1ba2cce18e1fed27fdcaf6a5dcc36fe9da (patch)
treec6ad76f05b2683985f0c636509626183a2cd9495
parent6ba0b818e9ab8830610ab2a74515227884f93abc (diff)
downloadqmk_firmware-996ada1ba2cce18e1fed27fdcaf6a5dcc36fe9da.tar.gz
qmk_firmware-996ada1ba2cce18e1fed27fdcaf6a5dcc36fe9da.zip
[Keyboard] add rgb pcb for e6 keyboard (#4928)
* add e6_rgb * update according to the reviewer * fixed readme.md * rename 60_split_bs_shift to 60_ansi_split_bs_shift
-rw-r--r--keyboards/e6_rgb/config.h65
-rw-r--r--keyboards/e6_rgb/e6_rgb.c204
-rw-r--r--keyboards/e6_rgb/e6_rgb.h83
-rw-r--r--keyboards/e6_rgb/info.json21
-rw-r--r--keyboards/e6_rgb/keymaps/60_ansi/keymap.c29
-rw-r--r--keyboards/e6_rgb/keymaps/60_ansi_split_bs_shift/keymap.c16
-rw-r--r--keyboards/e6_rgb/keymaps/60_hhkb/keymap.c16
-rw-r--r--keyboards/e6_rgb/keymaps/60_wkl/keymap.c16
-rw-r--r--keyboards/e6_rgb/keymaps/60_wkl_split_bs/keymap.c16
-rw-r--r--keyboards/e6_rgb/readme.md12
-rw-r--r--keyboards/e6_rgb/rules.mk77
11 files changed, 555 insertions, 0 deletions
diff --git a/keyboards/e6_rgb/config.h b/keyboards/e6_rgb/config.h
new file mode 100644
index 000000000..cb213c25e
--- /dev/null
+++ b/keyboards/e6_rgb/config.h
@@ -0,0 +1,65 @@
1/**
2 * config.h
3 *
4 */
5#pragma once
6
7#include "config_common.h"
8
9/* USB Device descriptor parameter */
10#define VENDOR_ID 0xDEAD
11#define PRODUCT_ID 0xFEED
12#define DEVICE_VER 0x0062
13#define MANUFACTURER astro
14#define PRODUCT e6rgb
15#define DESCRIPTION 60% rgb keyboard
16
17/* key matrix size */
18#define MATRIX_ROWS 5
19#define MATRIX_COLS 14
20/* key matrix pins */
21#define MATRIX_ROW_PINS { F1, F4, F5, F6, D6 }
22#define MATRIX_COL_PINS { D7, B4, B5, B6, C6, C7, F7, F0, B0, B1, D2, D3, B3, B2 }
23#define UNUSED_PINS
24#define DIODE_DIRECTION COL2ROW
25
26/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
27#define DEBOUNCE 5
28
29/*
30 * Feature disable options
31 * These options are also useful to firmware size reduction.
32 */
33
34/* disable debug print */
35//#define NO_DEBUG
36
37/* disable print */
38//#define NO_PRINT
39
40/* disable action features */
41//#define NO_ACTION_LAYER
42//#define NO_ACTION_TAPPING
43//#define NO_ACTION_ONESHOT
44//#define NO_ACTION_MACRO
45//#define NO_ACTION_FUNCTION
46
47//rgb light setting
48#define RGBLED_NUM 6
49#define RGB_DI_PIN B7
50#define RGBLIGHT_ANIMATIONS
51#define RGBLIGHT_HUE_STEP 8
52#define RGBLIGHT_SAT_STEP 8
53#define RGBLIGHT_VAL_STEP 8
54
55#define DRIVER_ADDR_1 0b1010000
56#define DRIVER_ADDR_2 0b1010000 // this is here for compliancy reasons.
57
58#define DRIVER_COUNT 2
59#define DRIVER_1_LED_TOTAL 63
60#define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL
61
62// tapping setting
63#define TAPPING_TERM 200
64#define RETRO_TAPPING
65#define PERMISSIVE_HOLD
diff --git a/keyboards/e6_rgb/e6_rgb.c b/keyboards/e6_rgb/e6_rgb.c
new file mode 100644
index 000000000..d50af86b5
--- /dev/null
+++ b/keyboards/e6_rgb/e6_rgb.c
@@ -0,0 +1,204 @@
1/**
2 * e6_rgb.c
3 */
4
5#include "e6_rgb.h"
6
7#ifdef RGB_MATRIX_ENABLE
8__attribute__ ((weak))
9void matrix_init_kb(void) {
10 matrix_init_user();
11}
12
13__attribute__ ((weak))
14void matrix_scan_kb(void) {
15 matrix_scan_user();
16}
17
18__attribute__ ((weak))
19void matrix_init_user(void) {
20 setPinOutput(D5);
21 writePinHigh(D5);
22}
23
24__attribute__ ((weak))
25void matrix_scan_user(void) {
26}
27
28const is31_led g_is31_leds[DRIVER_LED_TOTAL] = {
29/* Refer to IS31 manual for these locations
30 * driver
31 * | R location
32 * | | G location
33 * | | | B location
34 * | | | | */
35//cs1
36 {0, K_1, J_1, L_1},
37 {0, H_1, G_1, I_1},
38 {0, E_1, D_1, F_1},
39 {0, B_1, A_1, C_1},
40
41//cs2
42 {0, K_2, J_2, L_2},
43 {0, H_2, G_2, I_2},
44 {0, E_2, D_2, F_2},
45 {0, B_2, A_2, C_2},
46//cs3
47 {0, K_3, J_3, L_3},
48 {0, H_3, G_3, I_3},
49 {0, E_3, D_3, F_3},
50 {0, B_3, A_3, C_3},
51//cs4
52 {0, K_4, J_4, L_4},
53 {0, H_4, G_4, I_4},
54 {0, E_4, D_4, F_4},
55 {0, B_4, A_4, C_4},
56//cs5
57 {0, K_5, J_5, L_5},
58 {0, H_5, G_5, I_5},
59 {0, E_5, D_5, F_5},
60 {0, B_5, A_5, C_5},
61//cs6
62 {0, K_6, J_6, L_6},
63 {0, H_6, G_6, I_6},
64 {0, E_6, D_6, F_6},
65 {0, B_6, A_6, C_6},
66//cs7
67 {0, K_7, J_7, L_7},
68 {0, H_7, G_7, I_7},
69 {0, E_7, D_7, F_7},
70 {0, B_7, A_7, C_7},
71//cs8
72 {0, K_8, J_8, L_8},
73 {0, H_8, G_8, I_8},
74 {0, E_8, D_8, F_8},
75 {0, B_8, A_8, C_8},
76//cs9
77 {0, K_9, J_9, L_9},
78 {0, H_9, G_9, I_9},
79 {0, E_9, D_9, F_9},
80 {0, B_9, A_9, C_9},
81//cs10
82 {0, K_10, J_10, L_10},
83 {0, H_10, G_10, I_10},
84 {0, E_10, D_10, F_10},
85 {0, B_10, A_10, C_10},
86//cs11
87 {0, K_11, J_11, L_11},
88 {0, H_11, G_11, I_11},
89 {0, E_11, D_11, F_11},
90 {0, B_11, A_11, C_11},
91//cs12
92 {0, K_12, J_12, L_12},
93 {0, H_12, G_12, I_12},
94 {0, E_12, D_12, F_12},
95 {0, B_12, A_12, C_12},
96//cs13
97 {0, K_13, J_13, L_13},
98 {0, H_13, G_13, I_13},
99 {0, E_13, D_13, F_13},
100 {0, B_13, A_13, C_13},
101//cs14
102 {0, K_14, J_14, L_14},
103 {0, H_14, G_14, I_14},
104 {0, E_14, D_14, F_14},
105 {0, B_14, A_14, C_14},
106//cs15
107 {0, K_15, J_15, L_15},
108
109 {0, E_15, D_15, F_15},
110 {0, B_15, A_15, C_15},
111//cs16
112 {0, K_16, J_16, L_16},
113 {0, H_16, G_16, I_16},
114 {0, E_16, D_16, F_16},
115 {0, B_16, A_16, C_16},
116};
117const rgb_led g_rgb_leds[DRIVER_LED_TOTAL] = {
118/* {row | col << 4}
119 * | {x=0..224, y=0..64}
120 * | | modifier
121 * | | | */
122//cs1
123 {{0|(0<<4)}, { 0, 0}, 1},
124 {{0|(1<<4)}, { 17, 0}, 0},
125 {{1|(0<<4)}, { 0, 16}, 1},
126 {{2|(0<<4)}, { 0, 32}, 1},
127
128//cs2
129 {{0|(2<<4)}, { 34, 0}, 0},
130 {{0|(3<<4)}, { 51, 0}, 0},
131 {{1|(1<<4)}, { 17, 16}, 0},
132 {{1|(2<<4)}, { 34, 16}, 0},
133//cs3
134 {{2|(1<<4)}, { 17, 32}, 0},
135 {{2|(2<<4)}, { 34, 32}, 0},
136 {{3|(1<<4)}, { 17, 48}, 0},
137 {{3|(2<<4)}, { 34, 48}, 0},
138//cs4
139 {{0|(4<<4)}, { 68, 0}, 0},
140 {{0|(5<<4)}, { 85, 0}, 0},
141 {{1|(3<<4)}, { 51, 16}, 0},
142 {{1|(4<<4)}, { 68, 16}, 0},
143//cs5
144 {{0|(11<<4)}, {187, 0}, 0},
145 {{0|(12<<4)}, {204, 0}, 0},
146 {{1|(11<<4)}, {187, 16}, 0},
147 {{1|(12<<4)}, {204, 16}, 0},
148//cs6
149 {{0|(7<<4)}, {119, 0}, 0},
150 {{0|(8<<4)}, {136, 0}, 0},
151 {{1|(7<<4)}, {119, 16}, 0},
152 {{1|(8<<4)}, {136, 16}, 0},
153//cs7
154 {{0|(9<<4)}, {153, 0}, 0},
155 {{0|(10<<4)}, {170, 0}, 0},
156 {{1|(9<<4)}, {153, 16}, 0},
157 {{1|(10<<4)}, {170, 16}, 0},
158//cs8
159 {{0|(13<<4)}, {221, 0}, 0},
160 {{0|(14<<4)}, {221, 0}, 0},
161 {{1|(13<<4)}, {221, 32}, 1},
162 {{2|(12<<4)}, {221, 16}, 1},
163//cs9
164 {{2|(3<<4)}, { 51, 32}, 0},
165 {{2|(4<<4)}, { 68, 32}, 0},
166 {{3|(3<<4)}, { 51, 48}, 0},
167 {{3|(4<<4)}, { 68, 48}, 0},
168//cs10
169 {{0|(6<<4)}, {102, 0}, 0},
170 {{1|(5<<4)}, { 85, 16}, 0},
171 {{1|(6<<4)}, {102, 16}, 0},
172 {{2|(5<<4)}, { 85, 32}, 0},
173//cs11
174 {{2|(6<<4)}, {102, 32}, 0},
175 {{3|(5<<4)}, { 85, 48}, 0},
176 {{3|(6<<4)}, {102, 48}, 0},
177 {{4|(5<<4)}, {102, 64}, 0},
178//cs12
179 {{2|(7<<4)}, {119, 32}, 0},
180 {{2|(8<<4)}, {136, 32}, 0},
181 {{3|(7<<4)}, {119, 48}, 0},
182 {{3|(8<<4)}, {136, 48}, 0},
183//cs13
184 {{2|(9<<4)}, {153, 32}, 0},
185 {{2|(10<<4)}, {170, 32}, 0},
186 {{3|(9<<4)}, {153, 48}, 0},
187 {{4|(6<<4)}, {136, 48}, 1},
188//cs14
189 {{2|(11<<4)}, {187, 32}, 0},
190 {{3|(10<<4)}, {170, 48}, 0},
191 {{3|(11<<4)}, {187, 48}, 1},
192 {{4|(7<<4)}, {153, 48}, 1},
193//cs15
194 {{3|(12<<4)}, {221, 48}, 1},
195
196 {{4|(9<<4)}, {221, 64}, 1},
197 {{4|(8<<4)}, {204, 64}, 1},
198//cs16
199 {{3|(0<<4)}, { 0, 48}, 1},
200 {{4|(0<<4)}, { 0, 64}, 1},
201 {{4|(1<<4)}, { 17, 64}, 1},
202 {{4|(2<<4)}, { 34, 64}, 1},
203};
204#endif
diff --git a/keyboards/e6_rgb/e6_rgb.h b/keyboards/e6_rgb/e6_rgb.h
new file mode 100644
index 000000000..01f700c00
--- /dev/null
+++ b/keyboards/e6_rgb/e6_rgb.h
@@ -0,0 +1,83 @@
1 /**
2 * e6_rgb.h
3 *
4 */
5#pragma once
6
7#include "quantum.h"
8
9// This a shortcut to help you visually see your layout.
10// The first section contains all of the arguements
11// The second converts the arguments into a two-dimensional array
12#define LAYOUT_60_ansi( \
13 k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, k0e, \
14 k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k1c, k1e, \
15 k20, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, k2c, k2e, \
16 k30, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b, k3c, \
17 k40, k42, k43, k47, k48, k49, k4a, k4b \
18) \
19{ \
20 {k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, KC_NO}, \
21 {k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k1c, k1e}, \
22 {k20, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, k2c, k2e, k0e}, \
23 {k30, k32, k33, k34, k35, k36, k37, k38, KC_NO, k39, k3a, k3b, k3c, KC_NO}, \
24 {k40, k42, k43, KC_NO, KC_NO, KC_NO, k47, KC_NO, KC_NO, KC_NO, k48, k49, k4a, k4b} \
25}
26
27#define LAYOUT_60_wkl( \
28 k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, k0e, \
29 k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k1c, k1e, \
30 k20, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, k2c, k2e, \
31 k30, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b, k3c, k3d, \
32 k40, k42, k43, k47, k49, k4a, k4b \
33) \
34{ \
35 {k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, KC_NO}, \
36 {k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k1c, k1e}, \
37 {k20, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, k2c, k2e, k0e}, \
38 {k30, k32, k33, k34, k35, k36, k37, k38, KC_NO, k39, k3a, k3b, k3c, k3d}, \
39 {k40, k42, k43, KC_NO, KC_NO, KC_NO, k47, KC_NO, KC_NO, KC_NO, KC_NO, k49, k4a, k4b} \
40}
41
42#define LAYOUT_60_hhkb( \
43 k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, k0d, k0e, \
44 k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k1c, k1e, \
45 k20, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, k2c, k2e, \
46 k30, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b, k3c, k3d, \
47 k42, k43, k47, k49, k4a \
48) \
49{ \
50 {k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, k0d}, \
51 {k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k1c, k1e}, \
52 {k20, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, k2c, k2e, k0e}, \
53 {k30, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b, KC_NO, k3c, k3d}, \
54 {KC_NO, k42, k43, KC_NO, KC_NO, KC_NO, k47, KC_NO, KC_NO, KC_NO, KC_NO, k49, k4a, KC_NO} \
55}
56#define LAYOUT_60_wkl_split_bs( \
57 k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, k0d, k0e, \
58 k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k1c, k1e, \
59 k20, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, k2c, k2e, \
60 k30, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b, k3c, k3d, \
61 k40, k42, k43, k47, k49, k4a, k4b \
62) \
63{ \
64 {k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, k0d}, \
65 {k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k1c, k1e}, \
66 {k20, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, k2c, k2e, k0e}, \
67 {k30, k32, k33, k34, k35, k36, k37, k38, KC_NO, k39, k3a, k3b, k3c, k3d}, \
68 {k40, k42, k43, KC_NO, KC_NO, KC_NO, k47, KC_NO, KC_NO, KC_NO, KC_NO, k49, k4a, k4b} \
69}
70#define LAYOUT_60_ansi_split_bs_shift( \
71 k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, k0d, k0e, \
72 k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k1c, k1e, \
73 k20, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, k2c, k2e, \
74 k30, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b, k3c, k3d, \
75 k40, k42, k43, k47, k48, k49, k4a, k4b \
76) \
77{ \
78 {k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, k0d}, \
79 {k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k1c, k1e}, \
80 {k20, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, k2c, k2e, k0e}, \
81 {k30, k32, k33, k34, k35, k36, k37, k38, KC_NO, k39, k3a, k3b, k3c, k3d}, \
82 {k40, k42, k43, KC_NO, KC_NO, KC_NO, k47, KC_NO, KC_NO, KC_NO, k48, k49, k4a, k4b} \
83}
diff --git a/keyboards/e6_rgb/info.json b/keyboards/e6_rgb/info.json
new file mode 100644
index 000000000..80f361002
--- /dev/null
+++ b/keyboards/e6_rgb/info.json
@@ -0,0 +1,21 @@
1{
2 "keyboard_name": "e6_rgb",
3 "url": "",
4 "maintainer": "qmk",
5 "width": 15,
6 "height": 5,
7 "layouts": {
8 "LAYOUT_60_wkl": {
9 "key_count":61,
10 "layout": [{"label":"~", "x":0, "y":0}, {"label":"!", "x":1, "y":0}, {"label":"@", "x":2, "y":0}, {"label":"#", "x":3, "y":0}, {"label":"$", "x":4, "y":0}, {"label":"%", "x":5, "y":0}, {"label":"^", "x":6, "y":0}, {"label":"&", "x":7, "y":0}, {"label":"*", "x":8, "y":0}, {"label":"(", "x":9, "y":0}, {"label":")", "x":10, "y":0}, {"label":"_", "x":11, "y":0}, {"label":"+", "x":12, "y":0}, {"label":"Backspace", "x":13, "y":0, "w":2}, {"label":"Tab", "x":0, "y":1, "w":1.5}, {"label":"Q", "x":1.5, "y":1}, {"label":"W", "x":2.5, "y":1}, {"label":"E", "x":3.5, "y":1}, {"label":"R", "x":4.5, "y":1}, {"label":"T", "x":5.5, "y":1}, {"label":"Y", "x":6.5, "y":1}, {"label":"U", "x":7.5, "y":1}, {"label":"I", "x":8.5, "y":1}, {"label":"O", "x":9.5, "y":1}, {"label":"P", "x":10.5, "y":1}, {"label":"{", "x":11.5, "y":1}, {"label":"}", "x":12.5, "y":1}, {"label":"|", "x":13.5, "y":1, "w":1.5}, {"label":"Caps Lock", "x":0, "y":2, "w":1.75}, {"label":"A", "x":1.75, "y":2}, {"label":"S", "x":2.75, "y":2}, {"label":"D", "x":3.75, "y":2}, {"label":"F", "x":4.75, "y":2}, {"label":"G", "x":5.75, "y":2}, {"label":"H", "x":6.75, "y":2}, {"label":"J", "x":7.75, "y":2}, {"label":"K", "x":8.75, "y":2}, {"label":"L", "x":9.75, "y":2}, {"label":":", "x":10.75, "y":2}, {"label":"\"", "x":11.75, "y":2}, {"label":"Enter", "x":12.75, "y":2, "w":2.25}, {"label":"Shift", "x":0, "y":3, "w":2.25}, {"label":"Z", "x":2.25, "y":3}, {"label":"X", "x":3.25, "y":3}, {"label":"C", "x":4.25, "y":3}, {"label":"V", "x":5.25, "y":3}, {"label":"B", "x":6.25, "y":3}, {"label":"N", "x":7.25, "y":3}, {"label":"M", "x":8.25, "y":3}, {"label":"<", "x":9.25, "y":3}, {"label":">", "x":10.25, "y":3}, {"label":"?", "x":11.25, "y":3}, {"label":"Shift", "x":12.25, "y":3, "w":1.75}, {"label":"Fn", "x":14, "y":3}, {"label":"Ctrl", "x":0, "y":4, "w":1.5}, {"label":"Win", "x":1.5, "y":4}, {"label":"Alt", "x":2.5, "y":4, "w":1.5}, {"x":4, "y":4, "w":7}, {"label":"Alt", "x":11, "y":4, "w":1.5}, {"label":"Win", "x":12.5, "y":4}, {"label":"Ctrl", "x":13.5, "y":4, "w":1.5}]
11 },
12 "LAYOUT_60_ansi": {
13 "key_count":61,
14 "layout": [{"label":"~", "x":0, "y":0}, {"label":"!", "x":1, "y":0}, {"label":"@", "x":2, "y":0}, {"label":"#", "x":3, "y":0}, {"label":"$", "x":4, "y":0}, {"label":"%", "x":5, "y":0}, {"label":"^", "x":6, "y":0}, {"label":"&", "x":7, "y":0}, {"label":"*", "x":8, "y":0}, {"label":"(", "x":9, "y":0}, {"label":")", "x":10, "y":0}, {"label":"_", "x":11, "y":0}, {"label":"+", "x":12, "y":0}, {"label":"Backspace", "x":13, "y":0, "w":2}, {"label":"Tab", "x":0, "y":1, "w":1.5}, {"label":"Q", "x":1.5, "y":1}, {"label":"W", "x":2.5, "y":1}, {"label":"E", "x":3.5, "y":1}, {"label":"R", "x":4.5, "y":1}, {"label":"T", "x":5.5, "y":1}, {"label":"Y", "x":6.5, "y":1}, {"label":"U", "x":7.5, "y":1}, {"label":"I", "x":8.5, "y":1}, {"label":"O", "x":9.5, "y":1}, {"label":"P", "x":10.5, "y":1}, {"label":"{", "x":11.5, "y":1}, {"label":"}", "x":12.5, "y":1}, {"label":"|", "x":13.5, "y":1, "w":1.5}, {"label":"Caps Lock", "x":0, "y":2, "w":1.75}, {"label":"A", "x":1.75, "y":2}, {"label":"S", "x":2.75, "y":2}, {"label":"D", "x":3.75, "y":2}, {"label":"F", "x":4.75, "y":2}, {"label":"G", "x":5.75, "y":2}, {"label":"H", "x":6.75, "y":2}, {"label":"J", "x":7.75, "y":2}, {"label":"K", "x":8.75, "y":2}, {"label":"L", "x":9.75, "y":2}, {"label":":", "x":10.75, "y":2}, {"label":"\"", "x":11.75, "y":2}, {"label":"Enter", "x":12.75, "y":2, "w":2.25}, {"label":"Shift", "x":0, "y":3, "w":2.25}, {"label":"Z", "x":2.25, "y":3}, {"label":"X", "x":3.25, "y":3}, {"label":"C", "x":4.25, "y":3}, {"label":"V", "x":5.25, "y":3}, {"label":"B", "x":6.25, "y":3}, {"label":"N", "x":7.25, "y":3}, {"label":"M", "x":8.25, "y":3}, {"label":"<", "x":9.25, "y":3}, {"label":">", "x":10.25, "y":3}, {"label":"?", "x":11.25, "y":3}, {"label":"Shift", "x":12.25, "y":3, "w":2.75}, {"label":"Ctrl", "x":0, "y":4, "w":1.25}, {"label":"Win", "x":1.25, "y":4, "w":1.25}, {"label":"Alt", "x":2.5, "y":4, "w":1.25}, {"x":3.75, "y":4, "w":6.25}, {"label":"Alt", "x":10, "y":4, "w":1.25}, {"label":"Win", "x":11.25, "y":4, "w":1.25}, {"label":"Menu", "x":12.5, "y":4, "w":1.25}, {"label":"Ctrl", "x":13.75, "y":4, "w":1.25}]
15 },
16 "LAYOUT_60_hhkb": {
17 "key_count":60,
18 "layout": [{"label":"Esc", "x":0, "y":0}, {"label":"!", "x":1, "y":0}, {"label":"@", "x":2, "y":0}, {"label":"#", "x":3, "y":0}, {"label":"$", "x":4, "y":0}, {"label":"%", "x":5, "y":0}, {"label":"^", "x":6, "y":0}, {"label":"&", "x":7, "y":0}, {"label":"*", "x":8, "y":0}, {"label":"(", "x":9, "y":0}, {"label":")", "x":10, "y":0}, {"label":"_", "x":11, "y":0}, {"label":"+", "x":12, "y":0}, {"label":"|", "x":13, "y":0}, {"label":"~", "x":14, "y":0}, {"label":"Tab", "x":0, "y":1, "w":1.5}, {"label":"Q", "x":1.5, "y":1}, {"label":"W", "x":2.5, "y":1}, {"label":"E", "x":3.5, "y":1}, {"label":"R", "x":4.5, "y":1}, {"label":"T", "x":5.5, "y":1}, {"label":"Y", "x":6.5, "y":1}, {"label":"U", "x":7.5, "y":1}, {"label":"I", "x":8.5, "y":1}, {"label":"O", "x":9.5, "y":1}, {"label":"P", "x":10.5, "y":1}, {"label":"{", "x":11.5, "y":1}, {"label":"}", "x":12.5, "y":1}, {"label":"Backspace", "x":13.5, "y":1, "w":1.5}, {"label":"Control", "x":0, "y":2, "w":1.75}, {"label":"A", "x":1.75, "y":2}, {"label":"S", "x":2.75, "y":2}, {"label":"D", "x":3.75, "y":2}, {"label":"F", "x":4.75, "y":2}, {"label":"G", "x":5.75, "y":2}, {"label":"H", "x":6.75, "y":2}, {"label":"J", "x":7.75, "y":2}, {"label":"K", "x":8.75, "y":2}, {"label":"L", "x":9.75, "y":2}, {"label":":", "x":10.75, "y":2}, {"label":"\"", "x":11.75, "y":2}, {"label":"Enter", "x":12.75, "y":2, "w":2.25}, {"label":"Shift", "x":0, "y":3, "w":2.25}, {"label":"Z", "x":2.25, "y":3}, {"label":"X", "x":3.25, "y":3}, {"label":"C", "x":4.25, "y":3}, {"label":"V", "x":5.25, "y":3}, {"label":"B", "x":6.25, "y":3}, {"label":"N", "x":7.25, "y":3}, {"label":"M", "x":8.25, "y":3}, {"label":"<", "x":9.25, "y":3}, {"label":">", "x":10.25, "y":3}, {"label":"?", "x":11.25, "y":3}, {"label":"Shift", "x":12.25, "y":3, "w":1.75}, {"label":"Fn", "x":14, "y":3}, {"label":"Win", "x":1.5, "y":4}, {"label":"Alt", "x":2.5, "y":4, "w":1.5}, {"x":4, "y":4, "w":7}, {"label":"Alt", "x":11, "y":4, "w":1.5}, {"label":"Win", "x":12.5, "y":4}]
19 }
20 }
21}
diff --git a/keyboards/e6_rgb/keymaps/60_ansi/keymap.c b/keyboards/e6_rgb/keymaps/60_ansi/keymap.c
new file mode 100644
index 000000000..0f7f09f55
--- /dev/null
+++ b/keyboards/e6_rgb/keymaps/60_ansi/keymap.c
@@ -0,0 +1,29 @@
1#include QMK_KEYBOARD_H
2
3const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
4 /* Layer 0: Default Layer
5 * ,-----------------------------------------------------------.
6 * |Esc| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =| BSp |
7 * |-----------------------------------------------------------|
8 * |Tab | Q| W| E| R| T| Y| U| I| O| P| [| ]| \|
9 * |-----------------------------------------------------------|
10 * |Contro| A| S| D| F| G| H| J| K| L| ;| '|Enter |
11 * |-----------------------------------------------------------|
12 * |Shift | Z| X| C| V| B| N| M| ,| .| /|Shift |Fn0|
13 * |-----------------------------------------------------------'
14 * |Ctrl |Gui|Alt | Space |Alt |Gui|Fn |Ctrl |
15 * `-----------------------------------------------------------'
16 */
17 [0] = LAYOUT_60_ansi(
18 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS,KC_EQL, KC_BSPC,\
19 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC,KC_RBRC,KC_BSLS,\
20 KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN,KC_QUOT, KC_ENT,\
21 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM,KC_DOT, KC_SLSH, KC_RSFT,\
22 KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RGUI, MO(1), KC_RCTL),
23 [1] = LAYOUT_60_ansi(
24 KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,_______,\
25 RESET, RGB_TOG,RGB_MOD,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,\
26 _______, _______,_______,_______,_______,_______,KC_LEFT,KC_DOWN,KC_UP,KC_RIGHT,_______,_______,_______,\
27 _______, _______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,\
28 _______,_______,_______, _______, _______,_______,_______,_______),
29};
diff --git a/keyboards/e6_rgb/keymaps/60_ansi_split_bs_shift/keymap.c b/keyboards/e6_rgb/keymaps/60_ansi_split_bs_shift/keymap.c
new file mode 100644
index 000000000..1ecde0089
--- /dev/null
+++ b/keyboards/e6_rgb/keymaps/60_ansi_split_bs_shift/keymap.c
@@ -0,0 +1,16 @@
1#include QMK_KEYBOARD_H
2
3const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
4 [0] = LAYOUT_60_ansi_split_bs_shift(
5 KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS,KC_EQL, KC_BSLS, KC_GRV,\
6 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC,KC_RBRC,KC_BSPC,\
7 KC_LCTRL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN,KC_QUOT, KC_ENT,\
8 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM,KC_DOT, KC_SLSH, KC_RSFT, KC_END,\
9 KC_CAPS, KC_LGUI, KC_LALT, LT(1,KC_SPC), KC_RALT, KC_RGUI, TG(1), KC_RCTL),
10 [1] = LAYOUT_60_ansi_split_bs_shift(
11 _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,_______,KC_PSCR,\
12 RESET, RGB_TOG,RGB_MOD,_______,_______,_______,_______,_______,_______,_______,_______,KC_PGUP,KC_PGDN,_______,\
13 _______, _______,_______,_______,_______,_______,KC_LEFT,KC_DOWN,KC_UP,KC_RIGHT,_______,_______,_______,\
14 _______, _______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,\
15 _______,_______,_______, _______, _______,_______,TG(0),_______),
16};
diff --git a/keyboards/e6_rgb/keymaps/60_hhkb/keymap.c b/keyboards/e6_rgb/keymaps/60_hhkb/keymap.c
new file mode 100644
index 000000000..e1d2cca37
--- /dev/null
+++ b/keyboards/e6_rgb/keymaps/60_hhkb/keymap.c
@@ -0,0 +1,16 @@
1#include QMK_KEYBOARD_H
2
3const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
4 [0] = LAYOUT_60_hhkb(
5 KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS,KC_EQL, KC_BSLS, KC_GRV,\
6 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC,KC_RBRC,KC_BSPC,\
7 KC_LCTRL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN,KC_QUOT, KC_ENT,\
8 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM,KC_DOT, KC_SLSH, KC_RSFT, KC_BSLS,\
9 KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1)),
10 [1] = LAYOUT_60_hhkb(
11 _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,_______,_______,\
12 RESET, RGB_TOG,RGB_MOD,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,\
13 _______, _______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,\
14 _______, _______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,\
15 _______,_______, _______, _______,_______),
16};
diff --git a/keyboards/e6_rgb/keymaps/60_wkl/keymap.c b/keyboards/e6_rgb/keymaps/60_wkl/keymap.c
new file mode 100644
index 000000000..e149c7f06
--- /dev/null
+++ b/keyboards/e6_rgb/keymaps/60_wkl/keymap.c
@@ -0,0 +1,16 @@
1#include QMK_KEYBOARD_H
2
3const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
4 [0] = LAYOUT_60_wkl(
5 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSLS,\
6 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC,KC_BSPC,\
7 KC_LCTRL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN,KC_QUOT, KC_ENT,\
8 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM,KC_DOT, KC_SLSH,KC_RSFT, KC_DEL,\
9 KC_CAPS, KC_LGUI, KC_LALT, LT(1,KC_SPC), KC_RALT, TG(1), KC_RCTL),
10 [1] = LAYOUT_60_wkl(
11 KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,KC_DEL,\
12 RESET, RGB_TOG, RGB_MOD,_______,_______,_______,_______,_______,_______,_______,_______,KC_PGUP,KC_PGDN,_______,\
13 _______, _______,_______,_______,_______,_______,KC_LEFT,KC_DOWN,KC_UP,KC_RIGHT,_______,_______,_______,\
14 _______, _______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,\
15 _______,_______,_______, _______, _______,TG(0),_______),
16};
diff --git a/keyboards/e6_rgb/keymaps/60_wkl_split_bs/keymap.c b/keyboards/e6_rgb/keymaps/60_wkl_split_bs/keymap.c
new file mode 100644
index 000000000..d9a7885eb
--- /dev/null
+++ b/keyboards/e6_rgb/keymaps/60_wkl_split_bs/keymap.c
@@ -0,0 +1,16 @@
1#include QMK_KEYBOARD_H
2
3const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
4 [0] = LAYOUT_60_wkl_split_bs(
5 KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS,KC_EQL, KC_BSLS, KC_GRV,\
6 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC,KC_RBRC,KC_BSPC,\
7 KC_LCTRL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN,KC_QUOT, KC_ENT,\
8 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM,KC_DOT, KC_SLSH, KC_RSFT, KC_END,\
9 KC_CAPS, KC_LGUI, KC_LALT, LT(1,KC_SPC), KC_RALT, TG(1), KC_RCTL),
10 [1] = LAYOUT_60_wkl_split_bs(
11 _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,_______,KC_PSCR,\
12 RESET, RGB_TOG,RGB_MOD,_______,_______,_______,_______,_______,_______,_______,_______,KC_PGUP,KC_PGDN,_______,\
13 _______, _______,_______,_______,_______,_______,KC_LEFT,KC_DOWN,KC_UP,KC_RIGHT,_______,_______,_______,\
14 _______, _______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,\
15 _______,_______,_______, _______, _______,TG(0),_______),
16};
diff --git a/keyboards/e6_rgb/readme.md b/keyboards/e6_rgb/readme.md
new file mode 100644
index 000000000..6433dd74d
--- /dev/null
+++ b/keyboards/e6_rgb/readme.md
@@ -0,0 +1,12 @@
1# e6 pcb with rgb
2
3A full rgb pcb for exclusive E6V1&V2
4
5Keyboard Maintainer: [astro](https://github.com/yulei)
6Hardware Supported: E6V1, E6V2
7
8Make example for this keyboard (after setting up your build environment):
9
10 make e6_rgb:60_ansi
11
12See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).
diff --git a/keyboards/e6_rgb/rules.mk b/keyboards/e6_rgb/rules.mk
new file mode 100644
index 000000000..9e4e0f58f
--- /dev/null
+++ b/keyboards/e6_rgb/rules.mk
@@ -0,0 +1,77 @@
1# MCU name
2MCU = atmega32u4
3
4# project specific files
5#SRC =
6
7# Processor frequency.
8# This will define a symbol, F_CPU, in all source code files equal to the
9# processor frequency in Hz. You can then use this symbol in your source code to
10# calculate timings. Do NOT tack on a 'UL' at the end, this will be done
11# automatically to create a 32-bit value in your source code.
12#
13# This will be an integer division of F_USB below, as it is sourced by
14# F_USB after it has run through any CPU prescalers. Note that this value
15# does not *change* the processor frequency - it should merely be updated to
16# reflect the processor speed set externally so that the code can use accurate
17# software delays.
18F_CPU = 16000000
19
20
21#
22# LUFA specific
23#
24# Target architecture (see library "Board Types" documentation).
25ARCH = AVR8
26
27# Input clock frequency.
28# This will define a symbol, F_USB, in all source code files equal to the
29# input clock frequency (before any prescaling is performed) in Hz. This value may
30# differ from F_CPU if prescaling is used on the latter, and is required as the
31# raw input clock is fed directly to the PLL sections of the AVR for high speed
32# clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
33# at the end, this will be done automatically to create a 32-bit value in your
34# source code.
35#
36# If no clock division is performed on the input clock inside the AVR (via the
37# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
38F_USB = $(F_CPU)
39
40# Interrupt driven control endpoint task(+60)
41OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
42
43# Boot Section Size in *bytes*
44# Teensy halfKay 512
45# Teensy++ halfKay 1024
46# Atmel DFU loader 4096
47# LUFA bootloader 4096
48# USBaspLoader 2048
49BOOTLOADER = atmel-dfu
50#OPT_DEFS += -DBOOTLOADER_SIZE=4096
51
52# Do not put the microcontroller into power saving mode
53# when we get USB suspend event. We want it to keep updating
54# backlight effects.
55#OPT_DEFS += -DNO_SUSPEND_POWER_DOWN
56
57# Build Options
58# change yes to no to disable
59#
60BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000)
61MOUSEKEY_ENABLE = no # Mouse keys(+4700)
62EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
63CONSOLE_ENABLE = no # Console for debug(+400)
64COMMAND_ENABLE = no # Commands for debug and configuration
65# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
66SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
67# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
68NKRO_ENABLE = yes # USB Nkey Rollover
69BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality on B7 by default
70MIDI_ENABLE = no # MIDI support (+2400 to 4200, depending on config)
71UNICODE_ENABLE = no # Unicode
72BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
73AUDIO_ENABLE = no # Audio output on port C6
74FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches
75#RGBLIGHT_ENABLE = yes # Use RGB bottom light
76RGB_MATRIX_ENABLE = IS31FL3733# Use RGB matrix
77LAYOUTS = 60_ansi 60_hhkb