aboutsummaryrefslogtreecommitdiff
path: root/keyboards/yd60mq
diff options
context:
space:
mode:
authorMarc <marchein@users.noreply.github.com>2020-04-23 21:19:01 +0200
committerGitHub <noreply@github.com>2020-04-24 05:19:01 +1000
commit0722986d7a245526d7ba61a3d94151c54fdca9a4 (patch)
treead2b83e4a2494034ac6ff4548b8208239bef0393 /keyboards/yd60mq
parente98a9578a1aeaa7087a7c237c1fb2c4c4e6b56ae (diff)
downloadqmk_firmware-0722986d7a245526d7ba61a3d94151c54fdca9a4.tar.gz
qmk_firmware-0722986d7a245526d7ba61a3d94151c54fdca9a4.zip
Added YD60MQ ISO layout (#8815)
Diffstat (limited to 'keyboards/yd60mq')
-rw-r--r--keyboards/yd60mq/info.json71
-rw-r--r--keyboards/yd60mq/keymaps/iso/keymap.c28
-rw-r--r--keyboards/yd60mq/rules.mk2
-rw-r--r--keyboards/yd60mq/yd60mq.h15
4 files changed, 115 insertions, 1 deletions
diff --git a/keyboards/yd60mq/info.json b/keyboards/yd60mq/info.json
index 816d653bc..60a62af7a 100644
--- a/keyboards/yd60mq/info.json
+++ b/keyboards/yd60mq/info.json
@@ -144,6 +144,77 @@
144 {"x":12.5, "y":4, "w":1.25}, 144 {"x":12.5, "y":4, "w":1.25},
145 {"x":13.75, "y":4, "w":1.25} 145 {"x":13.75, "y":4, "w":1.25}
146 ] 146 ]
147 },
148 "LAYOUT_60_iso": {
149 "key_count": 62,
150 "layout": [
151 {"x":0, "y":0},
152 {"x":1, "y":0},
153 {"x":2, "y":0},
154 {"x":3, "y":0},
155 {"x":4, "y":0},
156 {"x":5, "y":0},
157 {"x":6, "y":0},
158 {"x":7, "y":0},
159 {"x":8, "y":0},
160 {"x":9, "y":0},
161 {"x":10, "y":0},
162 {"x":11, "y":0},
163 {"x":12, "y":0},
164 {"x":13, "y":0, "w":2},
165
166 {"x":0, "y":1, "w":1.5},
167 {"x":1.5, "y":1},
168 {"x":2.5, "y":1},
169 {"x":3.5, "y":1},
170 {"x":4.5, "y":1},
171 {"x":5.5, "y":1},
172 {"x":6.5, "y":1},
173 {"x":7.5, "y":1},
174 {"x":8.5, "y":1},
175 {"x":9.5, "y":1},
176 {"x":10.5, "y":1},
177 {"x":11.5, "y":1},
178 {"x":12.5, "y":1},
179
180 {"x":0, "y":2, "w":1.75},
181 {"x":1.75, "y":2},
182 {"x":2.75, "y":2},
183 {"x":3.75, "y":2},
184 {"x":4.75, "y":2},
185 {"x":5.75, "y":2},
186 {"x":6.75, "y":2},
187 {"x":7.75, "y":2},
188 {"x":8.75, "y":2},
189 {"x":9.75, "y":2},
190 {"x":10.75, "y":2},
191 {"x":11.75, "y":2},
192 {"x":12.75, "y":2},
193 {"x":13.75, "y":1, "w":1.25, "h":2},
194
195 {"x":0, "y":3, "w":1.25},
196 {"x":1.25, "y":3},
197 {"x":2.25, "y":3},
198 {"x":3.25, "y":3},
199 {"x":4.25, "y":3},
200 {"x":5.25, "y":3},
201 {"x":6.25, "y":3},
202 {"x":7.25, "y":3},
203 {"x":8.25, "y":3},
204 {"x":9.25, "y":3},
205 {"x":10.25, "y":3},
206 {"x":11.25, "y":3},
207 {"x":12.25, "y":3, "w":2.75},
208
209 {"x":0, "y":4, "w":1.25},
210 {"x":1.25, "y":4, "w":1.25},
211 {"x":2.5, "y":4, "w":1.25},
212 {"x":3.75, "y":4, "w":6.25},
213 {"x":10, "y":4, "w":1.25},
214 {"x":11.25, "y":4, "w":1.25},
215 {"x":12.5, "y":4, "w":1.25},
216 {"x":13.75, "y":4, "w":1.25}
217 ]
147 } 218 }
148 } 219 }
149} 220}
diff --git a/keyboards/yd60mq/keymaps/iso/keymap.c b/keyboards/yd60mq/keymaps/iso/keymap.c
new file mode 100644
index 000000000..9a4debed7
--- /dev/null
+++ b/keyboards/yd60mq/keymaps/iso/keymap.c
@@ -0,0 +1,28 @@
1#include QMK_KEYBOARD_H
2
3enum layer_names {
4 _BL,
5 _FL,
6};
7
8const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
9
10 //,: Base Layer
11 [0] = LAYOUT_60_iso(
12 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_BSPC,
13 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,
14 MO(1), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_NUHS, KC_ENT,
15 KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_UP,
16 KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_LEFT, KC_DOWN, LT(1,KC_RGHT)
17 ),
18
19 //,: Function Layer
20 [1] = LAYOUT_60_iso(
21 KC_GRV, 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,
22 XXXXXXX, KC_BTN1, KC_MS_U, KC_BTN2, KC_WH_U, XXXXXXX, XXXXXXX, XXXXXXX, KC_UP, XXXXXXX, KC_PGUP, KC_HOME, KC_PSCR,
23 KC_TRNS, KC_MS_L, KC_MS_D, KC_MS_R, KC_WH_D, RGB_HUI, RGB_SAI, KC_LEFT, KC_DOWN, KC_RGHT, KC_PGDN, KC_END, XXXXXXX, KC_MNXT,
24 KC_TRNS, RGB_MOD, RGB_RMOD, RGB_VAI, RGB_VAD, RGB_HUD, RGB_SAD, XXXXXXX, KC_MUTE, KC_VOLD, KC_VOLU, KC_MPLY, KC_MPRV,
25 KC_TRNS, KC_TRNS, KC_TRNS, RGB_TOG, RGB_SPI, RGB_SPD, XXXXXXX, KC_TRNS
26 )
27
28}; \ No newline at end of file
diff --git a/keyboards/yd60mq/rules.mk b/keyboards/yd60mq/rules.mk
index 98b13aca4..6619c187f 100644
--- a/keyboards/yd60mq/rules.mk
+++ b/keyboards/yd60mq/rules.mk
@@ -31,6 +31,6 @@ AUDIO_ENABLE = no # Audio output on port C6
31FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches 31FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches
32HD44780_ENABLE = no # Enable support for HD44780 based LCDs 32HD44780_ENABLE = no # Enable support for HD44780 based LCDs
33 33
34LAYOUTS = 60_ansi 34LAYOUTS = 60_ansi 60_iso
35 35
36DEFAULT_FOLDER = yd60mq/12led 36DEFAULT_FOLDER = yd60mq/12led
diff --git a/keyboards/yd60mq/yd60mq.h b/keyboards/yd60mq/yd60mq.h
index 0f6fde965..6b3824baa 100644
--- a/keyboards/yd60mq/yd60mq.h
+++ b/keyboards/yd60mq/yd60mq.h
@@ -30,4 +30,19 @@
30 { K40, K41, K42, KC_NO, KC_NO, KC_NO, KC_NO, K47, KC_NO, K49, K4A, KC_NO, K4C, K4D, KC_NO } \ 30 { K40, K41, K42, KC_NO, KC_NO, KC_NO, KC_NO, K47, KC_NO, K49, K4A, KC_NO, K4C, K4D, KC_NO } \
31} 31}
32 32
33#define LAYOUT_60_iso( \
34 K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0E, \
35 K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1a, K1b, K1c, \
36 K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2a, K2b, K2c, K1d, \
37 K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3a, K3b, K3d, \
38 K40, K41, K42, K47, K49, K4A, K4C, K4D \
39) { \
40 { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, KC_NO, K0E }, \
41 { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1a, K1b, K1c, KC_NO, }, \
42 { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2a, K2b, K2c, K1d }, \
43 { K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3a, K3b, KC_NO, K3d, KC_NO }, \
44 { K40, K41, K42, KC_NO, KC_NO, KC_NO, KC_NO, K47, KC_NO, K49, K4A, KC_NO, K4C, K4D, KC_NO } \
45}
46
47
33#define LAYOUT LAYOUT_all 48#define LAYOUT LAYOUT_all