summaryrefslogtreecommitdiff
path: root/keyboards/25keys
diff options
context:
space:
mode:
authorNick Brassel <nick@tzarc.org>2023-12-18 13:53:02 +1100
committerGitHub <noreply@github.com>2023-12-18 13:53:02 +1100
commit9539f135d8161557f0ffdfecb6e8c8c8b09786a2 (patch)
treee1f5fd65dfebcefd59287029a88979c9e38bbb7d /keyboards/25keys
parent27a710861ebd2a1e0a13a7e39f6a6c6568909bb4 (diff)
Remove obvious user keymaps, `keyboards/[0-9]*` edition. (#22691)
Diffstat (limited to 'keyboards/25keys')
-rw-r--r--keyboards/25keys/zinc/keymaps/ginjake/config.h36
-rw-r--r--keyboards/25keys/zinc/keymaps/ginjake/keymap.c368
-rw-r--r--keyboards/25keys/zinc/keymaps/ginjake/readme_jp.md123
-rw-r--r--keyboards/25keys/zinc/keymaps/ginjake/rules.mk112
-rw-r--r--keyboards/25keys/zinc/keymaps/monks/config.h36
-rw-r--r--keyboards/25keys/zinc/keymaps/monks/keymap.c256
-rw-r--r--keyboards/25keys/zinc/keymaps/monks/readme_jp.md103
-rw-r--r--keyboards/25keys/zinc/keymaps/monks/rules.mk111
-rw-r--r--keyboards/25keys/zinc/keymaps/toshi0383/config.h37
-rw-r--r--keyboards/25keys/zinc/keymaps/toshi0383/keymap.c44
-rw-r--r--keyboards/25keys/zinc/keymaps/toshi0383/rules.mk130
11 files changed, 0 insertions, 1356 deletions
diff --git a/keyboards/25keys/zinc/keymaps/ginjake/config.h b/keyboards/25keys/zinc/keymaps/ginjake/config.h
deleted file mode 100644
index 2185dc9ebe..0000000000
--- a/keyboards/25keys/zinc/keymaps/ginjake/config.h
+++ /dev/null
@@ -1,36 +0,0 @@
1/*
2This is the c configuration file for the keymap
3
4Copyright 2018 monksoffunk
5Copyright 2012 Jun Wako <wakojun@gmail.com>
6Copyright 2015 Jack Humbert
7
8This program is free software: you can redistribute it and/or modify
9it under the terms of the GNU General Public License as published by
10the Free Software Foundation, either version 2 of the License, or
11(at your option) any later version.
12
13This program is distributed in the hope that it will be useful,
14but WITHOUT ANY WARRANTY; without even the implied warranty of
15MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16GNU General Public License for more details.
17
18You should have received a copy of the GNU General Public License
19along with this program. If not, see <http://www.gnu.org/licenses/>.
20*/
21
22#pragma once
23
24// place overrides here
25// Selection of RGBLIGHT MODE to use.
26#if defined(LED_ANIMATIONS)
27 #define RGBLIGHT_EFFECT_BREATHING
28 #define RGBLIGHT_EFFECT_RAINBOW_MOOD
29 #define RGBLIGHT_EFFECT_RAINBOW_SWIRL
30 #define RGBLIGHT_EFFECT_SNAKE
31 #define RGBLIGHT_EFFECT_KNIGHT
32 #define RGBLIGHT_EFFECT_CHRISTMAS
33 #define RGBLIGHT_EFFECT_STATIC_GRADIENT
34 //#define RGBLIGHT_EFFECT_RGB_TEST
35 //#define RGBLIGHT_EFFECT_ALTERNATING
36#endif
diff --git a/keyboards/25keys/zinc/keymaps/ginjake/keymap.c b/keyboards/25keys/zinc/keymaps/ginjake/keymap.c
deleted file mode 100644
index 5cadafb4be..0000000000
--- a/keyboards/25keys/zinc/keymaps/ginjake/keymap.c
+++ /dev/null
@@ -1,368 +0,0 @@
1#include QMK_KEYBOARD_H
2
3extern keymap_config_t keymap_config;
4
5#ifdef RGBLIGHT_ENABLE
6//Following line allows macro to read current RGB settings
7extern rgblight_config_t rgblight_config;
8rgblight_config_t RGB_current_config;
9#endif
10
11extern uint8_t is_master;
12
13// Each layer gets a name for readability, which is then used in the keymap matrix below.
14// The underscores don't mean anything - you can have a layer called STUFF or any other name.
15// Layer names don't all need to be of the same length, obviously, and you can also skip them
16// entirely and just use numbers.
17enum layer_number {
18 _QWERTY = 0,
19 _COLEMAK,
20 _DVORAK,
21 _LOWER,
22 _RAISE,
23 _ADJUST
24};
25
26enum custom_keycodes {
27 QWERTY = SAFE_RANGE,
28 COLEMAK,
29 DVORAK,
30 LOWER,
31 RAISE,
32 ADJUST,
33 BACKLIT,
34 KANA,
35 EISU,
36 RGBRST,
37 AQOURS, //サンシャインぴっかぴかモード
38};
39
40#ifdef RGBLIGHT_ENABLE
41 //9色に変化するLEDのHSV各パラメータ
42 int aqours_h[] = { 26, 340, 150, 0, 199, 220, 53, 265, 322};
43 int aqours_s[] = {255, 165, 255, 255, 255, 350, 255, 255, 255};
44 int aqours_v[] = {255, 255, 255, 255, 255, 255, 255, 255, 255};
45 const int NEXT_COLOR_TIME = 2400; //次の色に切り替わるまでの時間
46 const int NEXT_CHANGE_TARGET_TIME = 100; //次のキーに色が伝播するまでの時間
47 bool aqours_mode = false;
48 int aqours_next_color_timer_count = 0;
49 int aqours_num = 0;
50 int target_col = 0;
51
52 //keyのmatrixの位置とLEDの番号を紐づける
53 int combined_key_to_led[] =
54 {
55 0,1,2,3,4,5,
56 11,10,9,8,7,6,
57 12,13,14,15,16,17,
58 23,22,21,20,19,18
59 };
60#endif
61
62enum macro_keycodes {
63 KC_SAMPLEMACRO,
64};
65
66//Macros
67#define M_SAMPLE M(KC_SAMPLEMACRO)
68
69const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
70 /* Qwerty
71 * ,-----------------------------------------. ,-----------------------------------------.
72 * | Tab | Q | W | E | R | T | | Y | U | I | O | P | Bksp |
73 * |------+------+------+------+------+------| |------+------+------+------+------+------|
74 * | Ctrl | A | S | D | F | G | | H | J | K | L | ; | ' |
75 * |------+------+------+------+------+------| |------+------+------+------+------+------|
76 * | Shift| Z | X | C | V | B | | N | M | , | . | / |Enter |
77 * |------+------+------+------+------+------| |------+------+------+------+------+------|
78 * | Esc |ADJUST| Win | Alt |LOWER |Space | | Space| RAISE| Left | Down | Up | Right|
79 * `-----------------------------------------' `-----------------------------------------'
80 */
81[_QWERTY] = LAYOUT_ortho_4x12(
82 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
83 KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
84 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT ,
85 KC_ESC, ADJUST, KC_LGUI, KC_LALT, LOWER, KC_SPC, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT
86 ),
87
88 /* Colemak
89 * ,-----------------------------------------. ,-----------------------------------------.
90 * | Tab | Q | W | F | P | G | | J | L | U | Y | ; | Bksp |
91 * |------+------+------+------+------+------| |------+------+------+------+------+------|
92 * | Ctrl | A | R | S | T | D | | H | N | E | I | O | ' |
93 * |------+------+------+------+------+------| |------+------+------+------+------+------|
94 * | Shift| Z | X | C | V | B | | K | M | , | . | / |Enter |
95 * |------+------+------+------+------+------| |------+------+------+------+------+------|
96 * | Esc |ADJUST| Alt | Win |LOWER |Space | | Space| RAISE| Left | Down | Up | Right|
97 * `-----------------------------------------' `-----------------------------------------'
98 */
99 [_COLEMAK] = LAYOUT_ortho_4x12(
100 KC_TAB, KC_Q, KC_W, KC_F, KC_P, KC_G, KC_J, KC_L, KC_U, KC_Y, KC_SCLN, KC_BSPC,
101 KC_LCTL, KC_A, KC_R, KC_S, KC_T, KC_D, KC_H, KC_N, KC_E, KC_I, KC_O, KC_QUOT,
102 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_K, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT ,
103 KC_ESC, ADJUST, KC_LALT, KC_LGUI, LOWER, KC_SPC, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT
104 ),
105
106 /* Dvorak
107 * ,-----------------------------------------. ,-----------------------------------------.
108 * | Tab | ' | , | . | P | Y | | F | G | C | R | L | Del |
109 * |------+------+------+------+------+------| |------+------+------+------+------+------|
110 * | Ctrl | A | O | E | U | I | | D | H | T | N | S | / |
111 * |------+------+------+------+------+------| |------+------+------+------+------+------|
112 * | Shift| ; | Q | J | K | X | | B | M | W | V | Z |Enter |
113 * |------+------+------+------+------+------| |------+------+------+------+------+------|
114 * | Esc |ADJUST| Alt | Win |LOWER |Space | | Space| RAISE| Left | Down | Up | Right|
115 * `-----------------------------------------' `-----------------------------------------'
116 */
117 [_DVORAK] = LAYOUT_ortho_4x12(
118 KC_TAB, KC_QUOT, KC_COMM, KC_DOT, KC_P, KC_Y, KC_F, KC_G, KC_C, KC_R, KC_L, KC_DEL,
119 KC_LCTL, KC_A, KC_O, KC_E, KC_U, KC_I, KC_D, KC_H, KC_T, KC_N, KC_S, KC_SLSH,
120 KC_LSFT, KC_SCLN, KC_Q, KC_J, KC_K, KC_X, KC_B, KC_M, KC_W, KC_V, KC_Z, KC_ENT ,
121 KC_ESC, ADJUST, KC_LALT, KC_LGUI, LOWER, KC_SPC, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT
122 ),
123
124 /* Lower
125 * ,-----------------------------------------. ,-----------------------------------------.
126 * | ~ | ! | @ | # | $ | % | | ^ | & | * | ( | ) | |
127 * |------+------+------+------+------+------| |------+------+------+------+------+------|
128 * | | | | | | | | - | _ | + | { | } | | |
129 * |------+------+------+------+------+------| |------+------+------+------+------+------|
130 * | | | | | | | | | | | Home | End | |
131 * |------+------+------+------+------+------| |------+------+------+------+------+------|
132 * | | | | | | | | | | Next | Vol- | Vol+ | Play |
133 * `-----------------------------------------' `-----------------------------------------'
134 */
135 [_LOWER] = LAYOUT_ortho_4x12(
136 KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, _______,
137 _______, _______, _______, _______, _______, _______, KC_MINS, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE,
138 _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_HOME, KC_END, _______,
139 _______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY
140 ),
141
142 /* Raise
143 * ,-----------------------------------------. ,-----------------------------------------.
144 * | ` | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | Del |
145 * |------+------+------+------+------+------| |------+------+------+------+------+------|
146 * | | F1 | F2 | F3 | F4 | F5 | | F6 | - | = | [ | ] | \ |
147 * |------+------+------+------+------+------| |------+------+------+------+------+------|
148 * | | F7 | F8 | F9 | F10 | F11 | | F12 | | | | |
149 * |------+------+------+------+------+------| |------+------+------+------+------+------|
150 * | | | | | | | | | | Next | Vol- | Vol+ | Play |
151 * `-----------------------------------------' `-----------------------------------------'
152 */
153 [_RAISE] = LAYOUT_ortho_4x12(
154 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL,
155 _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS,
156 _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, _______, _______, _______,
157 _______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY
158 ),
159
160 /* Adjust (Lower + Raise)
161 * ,-----------------------------------------. ,-----------------------------------------.
162 * | | Reset|RGBRST|Aud on|Audoff| | | |Qwerty|Colemk|Dvorak| | Ins |
163 * |------+------+------+------+------+------| |------+------+------+------+------+------|
164 * |AQOURS|RGB ON| HUE+ | SAT+ | VAL+ | Mac | | Win | - | = |Print |ScLock|Pause |
165 * |------+------+------+------+------+------| |------+------+------+------+------+------|
166 * | | MODE | HUE- | SAT- | VAL- | | | | | | | | |
167 * |------+------+------+------+------+------| |------+------+------+------+------+------|
168 * | | | | EISU | EISU | EISU | | KANA | KANA | Home |PageDn|PageUp| End |
169 * `-----------------------------------------' `-----------------------------------------'
170 */
171 [_ADJUST] = LAYOUT_ortho_4x12(
172 _______, QK_BOOT, RGBRST, _______, _______, _______, _______, QWERTY, COLEMAK, DVORAK, _______, KC_INS,
173 AQOURS, RGB_TOG, RGB_HUI, RGB_SAI, RGB_VAI, AG_NORM, AG_SWAP, KC_MINS, KC_EQL, KC_PSCR, KC_SCRL, KC_PAUS,
174 _______, RGB_MOD, RGB_HUD, RGB_SAD, RGB_VAD, _______, _______, _______, _______, _______, _______, _______,
175 _______, _______, _______, EISU, EISU, EISU, KANA, KANA, KC_HOME, KC_PGDN, KC_PGUP, KC_END
176 )
177};
178
179// define variables for reactive RGB
180bool TOG_STATUS = false;
181
182// Setting ADJUST layer RGB back to default
183void update_tri_layer_RGB(uint8_t layer1, uint8_t layer2, uint8_t layer3) {
184 if (IS_LAYER_ON(layer1) && IS_LAYER_ON(layer2)) {
185 #ifdef RGBLIGHT_ENABLE
186 rgblight_mode_noeeprom(RGB_current_config.mode);
187 #endif
188 layer_on(layer3);
189 } else {
190 layer_off(layer3);
191 }
192}
193
194bool process_record_user(uint16_t keycode, keyrecord_t *record) {
195 switch (keycode) {
196 case QWERTY:
197 if (record->event.pressed) {
198 set_single_persistent_default_layer(_QWERTY);
199 }
200 return false;
201 break;
202 case COLEMAK:
203 if (record->event.pressed) {
204 set_single_persistent_default_layer(_COLEMAK);
205 }
206 return false;
207 break;
208 case DVORAK:
209 if (record->event.pressed) {
210 set_single_persistent_default_layer(_DVORAK);
211 }
212 return false;
213 break;
214
215 case LOWER:
216 if (record->event.pressed) {
217 //not sure how to have keyboard check mode and set it to a variable, so my work around
218 //uses another variable that would be set to true after the first time a reactive key is pressed.
219 if (TOG_STATUS) { //TOG_STATUS checks is another reactive key currently pressed, only changes RGB mode if returns false
220 } else {
221 TOG_STATUS = !TOG_STATUS;
222 #ifdef RGBLIGHT_ENABLE
223 rgblight_mode_noeeprom(16);
224 #endif
225 }
226 layer_on(_LOWER);
227 update_tri_layer_RGB(_LOWER, _RAISE, _ADJUST);
228 } else {
229 #ifdef RGBLIGHT_ENABLE
230 rgblight_mode_noeeprom(RGB_current_config.mode); // revert RGB to initial mode prior to RGB mode change
231 #endif
232 TOG_STATUS = false;
233 layer_off(_LOWER);
234 update_tri_layer_RGB(_LOWER, _RAISE, _ADJUST);
235 }
236 return false;
237 break;
238
239 case RAISE:
240 if (record->event.pressed) {
241 //not sure how to have keyboard check mode and set it to a variable, so my work around
242 //uses another variable that would be set to true after the first time a reactive key is pressed.
243 if (TOG_STATUS) { //TOG_STATUS checks is another reactive key currently pressed, only changes RGB mode if returns false
244 } else {
245 TOG_STATUS = !TOG_STATUS;
246 #ifdef RGBLIGHT_ENABLE
247 rgblight_mode_noeeprom(15);
248 #endif
249 }
250 layer_on(_RAISE);
251 update_tri_layer_RGB(_LOWER, _RAISE, _ADJUST);
252 } else {
253 #ifdef RGBLIGHT_ENABLE
254 rgblight_mode_noeeprom(RGB_current_config.mode); // revert RGB to initial mode prior to RGB mode change
255 #endif
256 layer_off(_RAISE);
257 TOG_STATUS = false;
258 update_tri_layer_RGB(_LOWER, _RAISE, _ADJUST);
259 }
260 return false;
261 break;
262
263 case ADJUST:
264 if (record->event.pressed) {
265 layer_on(_ADJUST);
266 } else {
267 layer_off(_ADJUST);
268 }
269 return false;
270 break;
271 //led operations - RGB mode change now updates the RGB_current_mode to allow the right RGB mode to be set after reactive keys are released
272 case RGB_MOD:
273 #ifdef RGBLIGHT_ENABLE
274 if (record->event.pressed) {
275 rgblight_mode_noeeprom(RGB_current_config.mode);
276 rgblight_step();
277 RGB_current_config.mode = rgblight_config.mode;
278 }
279 #endif
280 return false;
281 break;
282
283 case EISU:
284 if (record->event.pressed) {
285 if(keymap_config.swap_lalt_lgui==false){
286 register_code(KC_LNG2);
287 }else{
288 SEND_STRING(SS_LALT("`"));
289 }
290 } else {
291 unregister_code(KC_LNG2);
292 }
293 return false;
294 break;
295 case KANA:
296 if (record->event.pressed) {
297 if(keymap_config.swap_lalt_lgui==false){
298 register_code(KC_LNG1);
299 }else{
300 SEND_STRING(SS_LALT("`"));
301 }
302 } else {
303 unregister_code(KC_LNG1);
304 }
305 return false;
306 break;
307 case AQOURS:
308 #ifdef RGBLIGHT_ENABLE
309 if (record->event.pressed) {
310 aqours_mode = !aqours_mode;
311 }
312 #endif
313 break;
314 case RGBRST:
315 #ifdef RGBLIGHT_ENABLE
316 if (record->event.pressed) {
317 eeconfig_update_rgblight_default();
318 rgblight_enable();
319 RGB_current_config = rgblight_config;
320 }
321 #endif
322 break;
323 }
324 return true;
325}
326
327#ifdef RGBLIGHT_ENABLE
328
329 void aqours_led(void) {
330 aqours_next_color_timer_count++;
331 //一定間隔で色が変化
332 if (aqours_next_color_timer_count > NEXT_COLOR_TIME) {
333 aqours_num++;
334 aqours_next_color_timer_count = 0;
335 target_col = 0;
336 if (aqours_num == ARRAY_SIZE(aqours_h)) {
337 aqours_num = 0;
338 }
339 }
340
341 //キー毎に時間差で色が変化していく
342 if (aqours_next_color_timer_count % NEXT_CHANGE_TARGET_TIME == 0) {
343 if (target_col < MATRIX_COLS) {
344 sethsv(aqours_h[aqours_num], aqours_s[aqours_num], aqours_v[aqours_num], (rgb_led_t *)&led[target_col]);
345 sethsv(aqours_h[aqours_num], aqours_s[aqours_num], aqours_v[aqours_num], (rgb_led_t *)&led[11 - target_col]);
346 sethsv(aqours_h[aqours_num], aqours_s[aqours_num], aqours_v[aqours_num], (rgb_led_t *)&led[12 + target_col]);
347 sethsv(aqours_h[aqours_num], aqours_s[aqours_num], aqours_v[aqours_num], (rgb_led_t *)&led[23 - target_col]);
348 target_col++;
349 rgblight_set();
350 }
351 }
352 }
353#endif
354
355void matrix_scan_user(void) {
356 #ifdef RGBLIGHT_ENABLE
357 if (aqours_mode) {
358 aqours_led();
359 }
360 #endif
361}
362
363void matrix_init_user(void) {
364 #ifdef RGBLIGHT_ENABLE
365 rgblight_init();
366 RGB_current_config = rgblight_config;
367 #endif
368}
diff --git a/keyboards/25keys/zinc/keymaps/ginjake/readme_jp.md b/keyboards/25keys/zinc/keymaps/ginjake/readme_jp.md
deleted file mode 100644
index dfedb37c15..0000000000
--- a/keyboards/25keys/zinc/keymaps/ginjake/readme_jp.md
+++ /dev/null
@@ -1,123 +0,0 @@
1# The Default Zinc Layout
2## 配列
3
4### Qwerty配列
5
6```
7 ,-----------------------------------------. ,-----------------------------------------.
8 | Tab | Q | W | E | R | T | | Y | U | I | O | P | Bksp |
9 |------+------+------+------+------+------| |------+------+------+------+------+------|
10 | Ctrl | A | S | D | F | G | | H | J | K | L | ; | ' |
11 |------+------+------+------+------+------| |------+------+------+------+------+------|
12 | Shift| Z | X | C | V | B | | N | M | , | . | / |Enter |
13 |------+------+------+------+------+------| |------+------+------+------+------+------|
14 | Esc | Fn | Alt | Win |Lower |Space | | Space| Raise| Left | Down | Up | Right|
15 `------------------------------------------ ------------------------------------------'
16```
17
18### Colemak
19
20```
21 ,-----------------------------------------. ,-----------------------------------------.
22 | Tab | Q | W | F | P | G | | J | L | U | Y | ; | Bksp |
23 |------+------+------+------+------+------| |------+------+------+------+------+------|
24 | Ctrl | A | R | S | T | D | | H | N | E | I | O | ' |
25 |------+------+------+------+------+------| |------+------+------+------+------+------|
26 | Shift| Z | X | C | V | B | | K | M | , | . | / |Enter |
27 |------+------+------+------+------+------| |------+------+------+------+------+------|
28 | Esc |ADJUST| Alt | Win |LOWER |Space | | Space| RAISE| Left | Down | Up | Right|
29 `------------------------------------------ ------------------------------------------'
30```
31
32### Dvorak
33
34```
35 ,-----------------------------------------. ,-----------------------------------------.
36 | Tab | ' | , | . | P | Y | | F | G | C | R | L | Del |
37 |------+------+------+------+------+------| |------+------+------+------+------+------|
38 | Ctrl | A | O | E | U | I | | D | H | T | N | S | / |
39 |------+------+------+------+------+------| |------+------+------+------+------+------|
40 | Shift| ; | Q | J | K | X | | B | M | W | V | Z |Enter |
41 |------+------+------+------+------+------| |------+------+------+------+------+------|
42 | Esc |ADJUST| Alt | Win |LOWER |Space | | Space| RAISE| Left | Down | Up | Right|
43 `-----------------------------------------' `-----------------------------------------'
44```
45
46
47## コンパイルの仕方
48
49コンパイルは、qmk_firmware のトップディレクトリで行います。
50
51```
52$ cd qmk_firmware
53```
54qmk_firmwareでは各キーボードのコンパイルは、`<キーボード名>:<キーマップ名>`という指定で行います。
55
56```
57$ make zinc:default
58```
59
60キーボードへの書き込みまで同時に行うには下記のように`:avrdude`を付けます。
61
62```
63$ make zinc:default:avrdude
64```
65
66コンパイル結果と中間生成物を消去したい場合は以下のようにします。
67
68```
69$ make zinc:default:clean
70```
71
72## カスタマイズ
73
74コマンドラインからオプションを指定してビルドすることが出来ます。
75
76```
77# Zinc keyboard 'default' keymap: convenient command line option
78make ZINC=<options> zinc:defualt
79# option= back | under | na | ios
80# ex.
81# make ZINC=under zinc:defualt
82# make ZINC=under,ios zinc:defualt
83# make ZINC=back zinc:default
84# make ZINC=back,na zinc:default
85# make ZINC=back,ios zinc:default
86```
87
88あるいは`qmk_firmware/keyboards/zinc/rev1/keymaps/default/rules.mk` の以下の部分を直接編集して機能を有効化してください。
89
90```
91# Zinc keyboard customize
92LED_BACK_ENABLE = no # LED backlight (Enable SK6812mini backlight)
93LED_UNDERGLOW_ENABLE = no # LED underglow (Enable WS2812 RGB underlight)
94LED_ANIMATIONS = yes # LED animations
95IOS_DEVICE_ENABLE = no # connect to IOS device (iPad,iPhone)
96
97
98```
99
100## RGB backlight を有効にする
101
102rules.mk の下記の部分を編集して no を yes に変更してください。
103```
104LED_BACK_ENABLE = yes # LED backlight (Enable SK6812mini backlight)
105```
106
107
108## RGB Underglow を有効にする
109
110rules.mk の下記の部分を編集して no を yes に変更してください。
111```
112LED_UNDERGLOW_ENABLE = yes # LED underglow (Enable WS2812 RGB underlight.)
113```
114
115
116## iPad/iPhoneサポートを有効にする。
117
118rules.mk の下記の部分を編集して no を yes に変更してください。
119RBG Underglow や RGBバックライトの輝度を抑えて、iPad, iPhone にも接続できるようになります。
120
121```
122IOS_DEVICE_ENABLE = no # connect to IOS device (iPad,iPhone)
123``` \ No newline at end of file
diff --git a/keyboards/25keys/zinc/keymaps/ginjake/rules.mk b/keyboards/25keys/zinc/keymaps/ginjake/rules.mk
deleted file mode 100644
index 4bbd3e582c..0000000000
--- a/keyboards/25keys/zinc/keymaps/ginjake/rules.mk
+++ /dev/null
@@ -1,112 +0,0 @@
1# Build Options
2# change to "no" to disable the options, or define them in the Makefile in
3# the appropriate keymap folder that will get included automatically
4#
5BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite
6MOUSEKEY_ENABLE = no # Mouse keys
7EXTRAKEY_ENABLE = yes # Audio control and System control
8CONSOLE_ENABLE = no # Console for debug
9COMMAND_ENABLE = no # Commands for debug and configuration
10NKRO_ENABLE = no # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
11BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
12MIDI_ENABLE = no # MIDI controls
13AUDIO_ENABLE = no # Audio output on port C6
14UNICODE_ENABLE = no # Unicode
15BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
16RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. Do not enable this with audio at the same time.
17SWAP_HANDS_ENABLE = no # Enable one-hand typing
18LTO_ENABLE = no # if firmware size over limit, try this option
19
20define ZINC_CUSTOMISE_MSG
21 $(info Zinc customize)
22 $(info - LED_BACK_ENABLE=$(LED_BACK_ENABLE))
23 $(info - LED_UNDERGLOW_ENABLE=$(LED_UNDERGLOW_ENABLE))
24 $(info - LED_BOTH_ENABLE=$(LED_BOTH_ENABLE))
25 $(info - LED_RGB_CONT=$(LED_RGB_CONT))
26 $(info - LED_ANIMATION=$(LED_ANIMATIONS))
27 $(info - IOS_DEVICE_ENABLE=$(IOS_DEVICE_ENABLE))
28endef
29
30# Zinc keyboard customize
31LED_BACK_ENABLE = no # LED backlight (Enable SK6812mini backlight)
32LED_UNDERGLOW_ENABLE = no # LED underglow (Enable WS2812 RGB underlight)
33LED_BOTH_ENABLE = no # LED backlight and underglow
34LED_RGB_CONT = no # LED continuous backlight or/and underglow between left Zinc and right Zinc
35LED_ANIMATIONS = yes # LED animations
36IOS_DEVICE_ENABLE = no # connect to IOS device (iPad,iPhone)
37
38#### LED_BACK_ENABLE and LED_UNDERGLOW_ENABLE.
39#### Do not enable these with audio at the same time.
40
41### Zinc keyboard 'default' keymap: convenient command line option
42## make ZINC=<options> zinc:defualt
43## option= back | under | both | cont | na | ios
44## ex.
45## make ZINC=under zinc:defualt
46## make ZINC=under,ios zinc:defualt
47## make ZINC=back zinc:default
48## make ZINC=back,na zinc:default
49## make ZINC=back,ios zinc:default
50
51ifneq ($(strip $(ZINC)),)
52 ifeq ($(findstring back,$(ZINC)), back)
53 LED_BACK_ENABLE = yes
54 endif
55 ifeq ($(findstring under,$(ZINC)), under)
56 LED_UNDERGLOW_ENABLE = yes
57 endif
58 ifeq ($(findstring both,$(ZINC)), both)
59 LED_BOTH_ENABLE = yes
60 endif
61 ifeq ($(findstring cont,$(ZINC)), cont)
62 LED_RGB_CONT = yes
63 endif
64 ifeq ($(findstring na,$(ZINC)), na)
65 LED_ANIMATIONS = no
66 endif
67 ifeq ($(findstring ios,$(ZINC)), ios)
68 IOS_DEVICE_ENABLE = yes
69 endif
70 $(eval $(call ZINC_CUSTOMISE_MSG))
71 $(info )
72endif
73
74ifeq ($(strip $(LED_BACK_ENABLE)), yes)
75 RGBLIGHT_ENABLE = yes
76 ifeq ($(strip $(LED_UNDERGLOW_ENABLE)), yes)
77 OPT_DEFS += -DRGBLED_BOTH
78 $(info LED_BOTH_ENABLE option is enabled instead of LED_BACK_ENABLE and LED_UNDERGLOW_ENABLE)
79 else
80 OPT_DEFS += -DRGBLED_BACK
81 endif
82else ifeq ($(strip $(LED_UNDERGLOW_ENABLE)), yes)
83 RGBLIGHT_ENABLE = yes
84else
85 RGBLIGHT_ENABLE = no
86endif
87
88ifeq ($(strip $(LED_BOTH_ENABLE)), yes)
89 RGBLIGHT_ENABLE = yes
90 OPT_DEFS += -DRGBLED_BOTH
91endif
92
93ifeq ($(strip $(LED_RGB_CONT)), yes)
94 OPT_DEFS += -DRGBLED_CONT
95endif
96
97ifeq ($(strip $(IOS_DEVICE_ENABLE)), yes)
98 OPT_DEFS += -DIOS_DEVICE_ENABLE
99endif
100
101ifeq ($(strip $(LED_ANIMATIONS)), yes)
102 OPT_DEFS += -DLED_ANIMATIONS
103endif
104
105# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
106SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
107
108
109# Uncomment these for debugging
110# $(info -- RGBLIGHT_ENABLE=$(RGBLIGHT_ENABLE))
111# $(info -- OPT_DEFS=$(OPT_DEFS))
112# $(info )
diff --git a/keyboards/25keys/zinc/keymaps/monks/config.h b/keyboards/25keys/zinc/keymaps/monks/config.h
deleted file mode 100644
index 2185dc9ebe..0000000000
--- a/keyboards/25keys/zinc/keymaps/monks/config.h
+++ /dev/null
@@ -1,36 +0,0 @@
1/*
2This is the c configuration file for the keymap
3
4Copyright 2018 monksoffunk
5Copyright 2012 Jun Wako <wakojun@gmail.com>
6Copyright 2015 Jack Humbert
7
8This program is free software: you can redistribute it and/or modify
9it under the terms of the GNU General Public License as published by
10the Free Software Foundation, either version 2 of the License, or
11(at your option) any later version.
12
13This program is distributed in the hope that it will be useful,
14but WITHOUT ANY WARRANTY; without even the implied warranty of
15MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16GNU General Public License for more details.
17
18You should have received a copy of the GNU General Public License
19along with this program. If not, see <http://www.gnu.org/licenses/>.
20*/
21
22#pragma once
23
24// place overrides here
25// Selection of RGBLIGHT MODE to use.
26#if defined(LED_ANIMATIONS)
27 #define RGBLIGHT_EFFECT_BREATHING
28 #define RGBLIGHT_EFFECT_RAINBOW_MOOD
29 #define RGBLIGHT_EFFECT_RAINBOW_SWIRL
30 #define RGBLIGHT_EFFECT_SNAKE
31 #define RGBLIGHT_EFFECT_KNIGHT
32 #define RGBLIGHT_EFFECT_CHRISTMAS
33 #define RGBLIGHT_EFFECT_STATIC_GRADIENT
34 //#define RGBLIGHT_EFFECT_RGB_TEST
35 //#define RGBLIGHT_EFFECT_ALTERNATING
36#endif
diff --git a/keyboards/25keys/zinc/keymaps/monks/keymap.c b/keyboards/25keys/zinc/keymaps/monks/keymap.c
deleted file mode 100644
index 5c15fb48ca..0000000000
--- a/keyboards/25keys/zinc/keymaps/monks/keymap.c
+++ /dev/null
@@ -1,256 +0,0 @@
1#include QMK_KEYBOARD_H
2
3extern keymap_config_t keymap_config;
4
5#ifdef RGBLIGHT_ENABLE
6//Following line allows macro to read current RGB settings
7extern rgblight_config_t rgblight_config;
8rgblight_config_t RGB_current_config;
9#endif
10
11extern uint8_t is_master;
12
13// Each layer gets a name for readability, which is then used in the keymap matrix below.
14// The underscores don't mean anything - you can have a layer called STUFF or any other name.
15// Layer names don't all need to be of the same length, obviously, and you can also skip them
16// entirely and just use numbers.
17enum layer_number {
18 _QWERTY = 0,
19 _LOWER,
20 _RAISE,
21 _ADJUST
22};
23
24enum custom_keycodes {
25 QWERTY = SAFE_RANGE,
26 COLEMAK,
27 DVORAK,
28 LOWER,
29 RAISE,
30 ADJUST,
31 BACKLIT,
32 KANA,
33 EISU,
34 RGBRST
35};
36
37enum macro_keycodes {
38 KC_SAMPLEMACRO,
39};
40
41
42//Macros
43#define M_SAMPLE M(KC_SAMPLEMACRO)
44
45const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
46 /* Qwerty
47 * ,-----------------------------------------. ,-----------------------------------------.
48 * | Tab | Q | W | E | R | T | | Y | U | I | O | P | Bksp |
49 * |------+------+------+------+------+------| |------+------+------+------+------+------|
50 * | Ctrl | A | S | D | F | G | | H | J | K | L | ; | ' |
51 * |------+------+------+------+------+------| |------+------+------+------+------+------|
52 * | Shift| Z | X | C | V | B | | N | M | , | . | / |Enter |
53 * |------+------+------+------+------+------| |------+------+------+------+------+------|
54 * | Esc |ADJUST| Alt | GUI |LOWER |Space | | Space| RAISE| KANA | Left | Down | Right|
55 * `-----------------------------------------' `-----------------------------------------'
56 */
57[_QWERTY] = LAYOUT_ortho_4x12(
58 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
59 KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
60 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT ,
61 KC_ESC, ADJUST, KC_LALT, KC_LGUI, LOWER, KC_SPC, KC_SPC, RAISE, KANA, KC_LEFT, KC_DOWN, KC_RGHT
62 ),
63
64 /* Lower
65 * ,-----------------------------------------. ,-----------------------------------------.
66 * | ~ | ! | @ | # | $ | % | | ^ | & | * | ( | ) | |
67 * |------+------+------+------+------+------| |------+------+------+------+------+------|
68 * | | | | | | | | - | _ | + | { | } | | |
69 * |------+------+------+------+------+------| |------+------+------+------+------+------|
70 * | | | | | | | | | | | | UP | |
71 * |------+------+------+------+------+------| |------+------+------+------+------+------|
72 * | | | | | | | | | | | | | |
73 * `-----------------------------------------' `-----------------------------------------'
74 */
75 [_LOWER] = LAYOUT_ortho_4x12(
76 KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, _______,
77 _______, _______, _______, _______, _______, _______, KC_MINS, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE,
78 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_UP, _______,
79 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
80 ),
81
82 /* Raise
83 * ,-----------------------------------------. ,-----------------------------------------.
84 * | ` | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | Del |
85 * |------+------+------+------+------+------| |------+------+------+------+------+------|
86 * | | F1 | F2 | F3 | F4 | F5 | | F6 | - | = | [ | ] | \ |
87 * |------+------+------+------+------+------| |------+------+------+------+------+------|
88 * | | F7 | F8 | F9 | F10 | F11 | | F12 | | | | ? | |
89 * |------+------+------+------+------+------| |------+------+------+------+------+------|
90 * | | | | | | | | | | Next | Vol- | Vol+ | Play |
91 * `-----------------------------------------' `-----------------------------------------'
92 */
93 [_RAISE] = LAYOUT_ortho_4x12(
94 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL,
95 _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS,
96 _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, _______, S(KC_SLSH), _______,
97 _______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY
98 ),
99
100 /* Adjust (Lower + Raise)
101 * ,-----------------------------------------. ,-----------------------------------------.
102 * | | Reset|RGBRST| | | | | | | | | | Ins |
103 * |------+------+------+------+------+------| |------+------+------+------+------+------|
104 * | |RGB ON| HUE+ | SAT+ | VAL+ | Mac | | Win | - | = |Print |ScLock|Pause |
105 * |------+------+------+------+------+------| |------+------+------+------+------+------|
106 * | | MODE | HUE- | SAT- | VAL- | | | | | | |PageUp| |
107 * |------+------+------+------+------+------| |------+------+------+------+------+------|
108 * | | | | EISU | EISU | EISU | | KANA | KANA | KANA | Home |PageDn| End |
109 * `-----------------------------------------' `-----------------------------------------'
110 */
111 [_ADJUST] = LAYOUT_ortho_4x12(
112 _______, QK_BOOT, RGBRST, _______, _______, _______, _______, _______, _______, _______, _______, KC_INS,
113 _______, RGB_TOG, RGB_HUI, RGB_SAI, RGB_VAI, AG_NORM, AG_SWAP, KC_MINS, KC_EQL, KC_PSCR, KC_SCRL, KC_PAUS,
114 _______, RGB_MOD, RGB_HUD, RGB_SAD, RGB_VAD, _______, _______, _______, _______, _______, KC_PGUP, _______,
115 _______, _______, _______, EISU, EISU, EISU, KANA, KANA, KANA, KC_HOME, KC_PGDN, KC_END
116 )
117};
118
119// define variables for reactive RGB
120bool TOG_STATUS = false;
121
122
123// Setting ADJUST layer RGB back to default
124void update_tri_layer_RGB(uint8_t layer1, uint8_t layer2, uint8_t layer3) {
125 if (IS_LAYER_ON(layer1) && IS_LAYER_ON(layer2)) {
126 #ifdef RGBLIGHT_ENABLE
127 rgblight_mode_noeeprom(RGB_current_config.mode);
128 #endif
129 layer_on(layer3);
130 } else {
131 layer_off(layer3);
132 }
133}
134
135bool process_record_user(uint16_t keycode, keyrecord_t *record) {
136 switch (keycode) {
137 case QWERTY:
138 if (record->event.pressed) {
139 set_single_persistent_default_layer(_QWERTY);
140 }
141 return false;
142 break;
143
144 case LOWER:
145 if (record->event.pressed) {
146 //not sure how to have keyboard check mode and set it to a variable, so my work around
147 //uses another variable that would be set to true after the first time a reactive key is pressed.
148 if (TOG_STATUS) { //TOG_STATUS checks is another reactive key currently pressed, only changes RGB mode if returns false
149 } else {
150 TOG_STATUS = !TOG_STATUS;
151 #ifdef RGBLIGHT_ENABLE
152 rgblight_mode_noeeprom(16);
153 #endif
154 }
155 layer_on(_LOWER);
156 update_tri_layer_RGB(_LOWER, _RAISE, _ADJUST);
157 } else {
158 #ifdef RGBLIGHT_ENABLE
159 rgblight_mode_noeeprom(RGB_current_config.mode); // revert RGB to initial mode prior to RGB mode change
160 #endif
161 TOG_STATUS = false;
162 layer_off(_LOWER);
163 update_tri_layer_RGB(_LOWER, _RAISE, _ADJUST);
164 }
165 return false;
166 break;
167
168 case RAISE:
169 if (record->event.pressed) {
170 //not sure how to have keyboard check mode and set it to a variable, so my work around
171 //uses another variable that would be set to true after the first time a reactive key is pressed.
172 if (TOG_STATUS) { //TOG_STATUS checks is another reactive key currently pressed, only changes RGB mode if returns false
173 } else {
174 TOG_STATUS = !TOG_STATUS;
175 #ifdef RGBLIGHT_ENABLE
176 rgblight_mode_noeeprom(15);
177 #endif
178 }
179 layer_on(_RAISE);
180 update_tri_layer_RGB(_LOWER, _RAISE, _ADJUST);
181 } else {
182 #ifdef RGBLIGHT_ENABLE
183 rgblight_mode_noeeprom(RGB_current_config.mode); // revert RGB to initial mode prior to RGB mode change
184 #endif
185 layer_off(_RAISE);
186 TOG_STATUS = false;
187 update_tri_layer_RGB(_LOWER, _RAISE, _ADJUST);
188 }
189 return false;
190 break;
191
192 case ADJUST:
193 if (record->event.pressed) {
194 layer_on(_ADJUST);
195 } else {
196 layer_off(_ADJUST);
197 }
198 return false;
199 break;
200 //led operations - RGB mode change now updates the RGB_current_mode to allow the right RGB mode to be set after reactive keys are released
201 case RGB_MOD:
202 #ifdef RGBLIGHT_ENABLE
203 if (record->event.pressed) {
204 rgblight_mode_noeeprom(RGB_current_config.mode);
205 rgblight_step();
206 RGB_current_config.mode = rgblight_config.mode;
207 }
208 #endif
209 return false;
210 break;
211
212 case EISU:
213 if (record->event.pressed) {
214 if(keymap_config.swap_lalt_lgui==false){
215 register_code(KC_LNG2);
216 }else{
217 SEND_STRING(SS_LALT("`"));
218 }
219 } else {
220 unregister_code(KC_LNG2);
221 }
222 return false;
223 break;
224 case KANA:
225 if (record->event.pressed) {
226 if(keymap_config.swap_lalt_lgui==false){
227 register_code(KC_LNG1);
228 }else{
229 SEND_STRING(SS_LALT("`"));
230 }
231 } else {
232 unregister_code(KC_LNG1);
233 }
234 return false;
235 break;
236
237 case RGBRST:
238 #ifdef RGBLIGHT_ENABLE
239 if (record->event.pressed) {
240 eeconfig_update_rgblight_default();
241 rgblight_enable();
242 RGB_current_config = rgblight_config;
243 }
244 #endif
245 break;
246 }
247 return true;
248}
249
250
251void matrix_init_user(void) {
252 #ifdef RGBLIGHT_ENABLE
253 rgblight_init();
254 RGB_current_config = rgblight_config;
255 #endif
256}
diff --git a/keyboards/25keys/zinc/keymaps/monks/readme_jp.md b/keyboards/25keys/zinc/keymaps/monks/readme_jp.md
deleted file mode 100644
index e518eb7696..0000000000
--- a/keyboards/25keys/zinc/keymaps/monks/readme_jp.md
+++ /dev/null
@@ -1,103 +0,0 @@
1# monksoffunk's personal zinc Layout
2## 配列
3
4### Qwerty配列
5
6```
7 ,-----------------------------------------. ,-----------------------------------------.
8 | Tab | Q | W | E | R | T | | Y | U | I | O | P | Bksp |
9 |------+------+------+------+------+------| |------+------+------+------+------+------|
10 | Ctrl | A | S | D | F | G | | H | J | K | L | ; | ' |
11 |------+------+------+------+------+------| |------+------+------+------+------+------|
12 | Shift| Z | X | C | V | B | | N | M | , | . | / |Enter |
13 |------+------+------+------+------+------| |------+------+------+------+------+------|
14 | Esc |ADJUST| Alt | GUI |LOWER |Space | | Space| RAISE| KANA | Left | Down | Right|
15 `------------------------------------------ ------------------------------------------'
16```
17
18KANAキーを独立させ、UPキーをLOWER+スラッシュに当てています。そのほかデフォルトからレイヤーをかなりいじっています。
19また、RGB LEDがアンコメントしてありますので、実装していない場合はソースを見て適宜コメントアウトしてください。
20
21## コンパイルの仕方
22
23コンパイルは、qmk_firmware のトップディレクトリで行います。
24
25```
26$ cd qmk_firmware
27```
28qmk_firmwareでは各キーボードのコンパイルは、`<キーボード名>:<キーマップ名>`という指定で行います。
29
30```
31$ make zinc:monks
32```
33
34キーボードへの書き込みまで同時に行うには下記のように`:avrdude`を付けます。
35
36```
37$ make zinc:monks:avrdude
38```
39
40コンパイル結果と中間生成物を消去したい場合は以下のようにします。
41
42```
43$ make zinc:monks:clean
44```
45
46なお、avrdudeではなくQMK Toolbox(GUIツール)を使う方法もあります。
47
48https://github.com/qmk/qmk_toolbox/releases
49
50その場合は、$ make zinc:monksでビルドした成果物をQMK Toolboxから指定してください。
51
52## カスタマイズ
53
54コマンドラインからオプションを指定してビルドすることが出来ます。
55
56```
57# Zinc keyboard 'monks' keymap: convenient command line option
58make ZINC=<options> zinc:monks
59# option= back | under | na | ios
60# ex.
61# make ZINC=under zinc:monks
62# make ZINC=under,ios zinc:monks
63# make ZINC=back zinc:monks
64# make ZINC=back,na zinc:monks
65# make ZINC=back,ios zinc:monks
66```
67
68あるいは`qmk_firmware/keyboards/zinc/rev1/keymaps/monks/rules.mk` の以下の部分を編集して機能を有効化してください。
69
70```
71# Zinc keyboard customize
72LED_BACK_ENABLE = no # LED backlight (Enable SK6812mini backlight)
73LED_UNDERGLOW_ENABLE = no # LED underglow (Enable WS2812 RGB underlight)
74LED_ANIMATIONS = yes # LED animations
75IOS_DEVICE_ENABLE = no # connect to IOS device (iPad,iPhone)
76
77
78```
79
80## RGB backlight を有効にする
81
82rules.mk の下記の部分を編集して no を yes に変更してください。
83```
84LED_BACK_ENABLE = yes # LED backlight (Enable SK6812mini backlight)
85```
86
87
88## RGB Underglow を有効にする
89
90rules.mk の下記の部分を編集して no を yes に変更してください。
91```
92LED_UNDERGLOW_ENABLE = yes # LED underglow (Enable WS2812 RGB underlight)
93```
94
95
96## iPad/iPhoneサポートを有効にする。
97
98rules.mk の下記の部分を編集して no を yes に変更してください。
99RBG Underglow や RGBバックライトの輝度を抑えて、iPad, iPhone にも接続できるようになります。
100
101```
102IOS_DEVICE_ENABLE = no # connect to IOS device (iPad,iPhone)
103```
diff --git a/keyboards/25keys/zinc/keymaps/monks/rules.mk b/keyboards/25keys/zinc/keymaps/monks/rules.mk
deleted file mode 100644
index d37d2b6d1f..0000000000
--- a/keyboards/25keys/zinc/keymaps/monks/rules.mk
+++ /dev/null
@@ -1,111 +0,0 @@
1# Build Options
2# change to "no" to disable the options, or define them in the Makefile in
3# the appropriate keymap folder that will get included automatically
4#
5BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite
6MOUSEKEY_ENABLE = no # Mouse keys
7EXTRAKEY_ENABLE = yes # Audio control and System control
8CONSOLE_ENABLE = no # Console for debug
9COMMAND_ENABLE = no # Commands for debug and configuration
10NKRO_ENABLE = no # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
11BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
12MIDI_ENABLE = no # MIDI controls
13AUDIO_ENABLE = no # Audio output on port C6
14UNICODE_ENABLE = no # Unicode
15BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
16RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. Do not enable this with audio at the same time.
17SWAP_HANDS_ENABLE = no # Enable one-hand typing
18LTO_ENABLE = no # if firmware size over limit, try this option
19
20define ZINC_CUSTOMISE_MSG
21 $(info Zinc customize)
22 $(info - LED_BACK_ENABLE=$(LED_BACK_ENABLE))
23 $(info - LED_UNDERGLOW_ENABLE=$(LED_UNDERGLOW_ENABLE))
24 $(info - LED_BOTH_ENABLE=$(LED_BOTH_ENABLE))
25 $(info - LED_RGB_CONT=$(LED_RGB_CONT))
26 $(info - LED_ANIMATION=$(LED_ANIMATIONS))
27 $(info - IOS_DEVICE_ENABLE=$(IOS_DEVICE_ENABLE))
28endef
29
30# Zinc keyboard customize
31LED_BACK_ENABLE = no # LED backlight (Enable SK6812mini backlight)
32LED_UNDERGLOW_ENABLE = no # LED underglow (Enable WS2812 RGB underlight)
33LED_BOTH_ENABLE = no # LED backlight and underglow
34LED_RGB_CONT = no # LED continuous backlight or/and underglow between left Zinc and right Zinc
35LED_ANIMATIONS = yes # LED animations
36IOS_DEVICE_ENABLE = no # connect to IOS device (iPad,iPhone)
37
38#### LED_BACK_ENABLE and LED_UNDERGLOW_ENABLE.
39#### Do not enable these with audio at the same time.
40
41### Zinc keyboard 'default' keymap: convenient command line option
42## make ZINC=<options> zinc:defualt
43## option= back | under | both | cont | na | ios
44## ex.
45## make ZINC=under zinc:defualt
46## make ZINC=under,ios zinc:defualt
47## make ZINC=back zinc:default
48## make ZINC=back,na zinc:default
49## make ZINC=back,ios zinc:default
50
51ifneq ($(strip $(ZINC)),)
52 ifeq ($(findstring back,$(ZINC)), back)
53 LED_BACK_ENABLE = yes
54 endif
55 ifeq ($(findstring under,$(ZINC)), under)
56 LED_UNDERGLOW_ENABLE = yes
57 endif
58 ifeq ($(findstring both,$(ZINC)), both)
59 LED_BOTH_ENABLE = yes
60 endif
61 ifeq ($(findstring cont,$(ZINC)), cont)
62 LED_RGB_CONT = yes
63 endif
64 ifeq ($(findstring na,$(ZINC)), na)
65 LED_ANIMATIONS = no
66 endif
67 ifeq ($(findstring ios,$(ZINC)), ios)
68 IOS_DEVICE_ENABLE = yes
69 endif
70 $(eval $(call ZINC_CUSTOMISE_MSG))
71 $(info )
72endif
73
74ifeq ($(strip $(LED_BACK_ENABLE)), yes)
75 RGBLIGHT_ENABLE = yes
76 ifeq ($(strip $(LED_UNDERGLOW_ENABLE)), yes)
77 OPT_DEFS += -DRGBLED_BOTH
78 $(info LED_BOTH_ENABLE option is enabled instead of LED_BACK_ENABLE and LED_UNDERGLOW_ENABLE)
79 else
80 OPT_DEFS += -DRGBLED_BACK
81 endif
82else ifeq ($(strip $(LED_UNDERGLOW_ENABLE)), yes)
83 RGBLIGHT_ENABLE = yes
84else
85 RGBLIGHT_ENABLE = no
86endif
87
88ifeq ($(strip $(LED_BOTH_ENABLE)), yes)
89 RGBLIGHT_ENABLE = yes
90 OPT_DEFS += -DRGBLED_BOTH
91endif
92
93ifeq ($(strip $(LED_RGB_CONT)), yes)
94 OPT_DEFS += -DRGBLED_CONT
95endif
96
97ifeq ($(strip $(IOS_DEVICE_ENABLE)), yes)
98 OPT_DEFS += -DIOS_DEVICE_ENABLE
99endif
100
101ifeq ($(strip $(LED_ANIMATIONS)), yes)
102 OPT_DEFS += -DLED_ANIMATIONS
103endif
104
105# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
106SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
107
108# Uncomment these for debugging
109# $(info -- RGBLIGHT_ENABLE=$(RGBLIGHT_ENABLE))
110# $(info -- OPT_DEFS=$(OPT_DEFS))
111# $(info )
diff --git a/keyboards/25keys/zinc/keymaps/toshi0383/config.h b/keyboards/25keys/zinc/keymaps/toshi0383/config.h
deleted file mode 100644
index 0d53d44247..0000000000
--- a/keyboards/25keys/zinc/keymaps/toshi0383/config.h
+++ /dev/null
@@ -1,37 +0,0 @@
1/*
2This is the c configuration file for the keymap
3
4Copyright 2019 Toshihiro Suzuki
5Copyright 2018 monksoffunk
6Copyright 2012 Jun Wako <wakojun@gmail.com>
7Copyright 2015 Jack Humbert
8
9This program is free software: you can redistribute it and/or modify
10it under the terms of the GNU General Public License as published by
11the Free Software Foundation, either version 2 of the License, or
12(at your option) any later version.
13
14This program is distributed in the hope that it will be useful,
15but WITHOUT ANY WARRANTY; without even the implied warranty of
16MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17GNU General Public License for more details.
18
19You should have received a copy of the GNU General Public License
20along with this program. If not, see <http://www.gnu.org/licenses/>.
21*/
22
23#pragma once
24
25// place overrides here
26// Selection of RGBLIGHT MODE to use.
27#if defined(LED_ANIMATIONS)
28 #define RGBLIGHT_EFFECT_BREATHING
29 #define RGBLIGHT_EFFECT_RAINBOW_MOOD
30 #define RGBLIGHT_EFFECT_RAINBOW_SWIRL
31 #define RGBLIGHT_EFFECT_SNAKE
32 #define RGBLIGHT_EFFECT_KNIGHT
33 #define RGBLIGHT_EFFECT_CHRISTMAS
34 #define RGBLIGHT_EFFECT_STATIC_GRADIENT
35 //#define RGBLIGHT_EFFECT_RGB_TEST
36 //#define RGBLIGHT_EFFECT_ALTERNATING
37#endif
diff --git a/keyboards/25keys/zinc/keymaps/toshi0383/keymap.c b/keyboards/25keys/zinc/keymaps/toshi0383/keymap.c
deleted file mode 100644
index c6b90a3a99..0000000000
--- a/keyboards/25keys/zinc/keymaps/toshi0383/keymap.c
+++ /dev/null
@@ -1,44 +0,0 @@
1#include QMK_KEYBOARD_H
2
3extern uint8_t is_master;
4
5enum layer_names {
6 _BASE,
7 _LOWER,
8 _RAISE,
9 _ADJUST
10};
11
12#define LOWER MO(_LOWER)
13#define RAISE MO(_RAISE)
14#define ADJUST MO(_ADJUST)
15
16const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
17 [_BASE] = LAYOUT_ortho_4x12(
18 KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
19 KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, SFT_T(KC_SCLN), KC_RGUI,
20 KC_SPC, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_RCTL, KC_DOT, KC_RALT, RGUI(KC_RSFT),
21 KC_LGUI, KC_LALT, _______, _______, LOWER, KC_ENT, KC_ENT, RAISE, _______, _______, _______, _______
22 ),
23
24 [_LOWER] = LAYOUT_ortho_4x12(
25 KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, RCMD(RALT(KC_O)), RCMD(RALT(KC_L)), _______,
26 _______, KC_LT, KC_GT, KC_LPRN, KC_RPRN, KC_GRV, KC_MINS, KC_LCBR, KC_RCBR, KC_LBRC, KC_RBRC, KC_PIPE,
27 KC_LALT, _______, _______, _______, KC_EQL, KC_QUES, KC_UNDS, KC_PLUS, KC_COMM, _______, KC_SLSH, _______,
28 _______, _______, _______, _______, _______, KC_TRNS, KC_TRNS, KC_RGUI, _______, _______, _______, _______
29 ),
30
31 [_RAISE] = LAYOUT_ortho_4x12(
32 _______, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, _______,
33 _______, KC_COLN, KC_SCLN, KC_DQT, KC_QUOT, KC_BSLS, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, _______, _______,
34 _______, _______, _______, _______, _______, _______, ADJUST, _______, _______, _______, _______, _______,
35 _______, _______, _______, _______, KC_LGUI, KC_TRNS, KC_TRNS, _______, _______, _______, _______, _______
36 ),
37
38 [_ADJUST] = LAYOUT_ortho_4x12(
39 _______, _______, _______, _______, RCMD(LALT(KC_1)), RCMD(LALT(KC_2)), RCMD(LALT(KC_3)), RCMD(LALT(KC_4)), RCMD(LALT(KC_5)), RCMD(LALT(KC_6)), RCMD(LALT(KC_7)), RCMD(LALT(KC_0)),
40 RGB_SAI, RGB_HUI, RGB_MOD, _______, RGB_TOG, RGB_VAI, RGB_VAD, RGB_SAD, RGB_HUD, RGB_RMOD, _______, _______,
41 KC_MUTE, KC_VOLD, KC_VOLU, KC_BRID, KC_BRIU, QK_BOOT, _______, _______, _______, _______, _______, _______,
42 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
43 ),
44};
diff --git a/keyboards/25keys/zinc/keymaps/toshi0383/rules.mk b/keyboards/25keys/zinc/keymaps/toshi0383/rules.mk
deleted file mode 100644
index 8fe697932e..0000000000
--- a/keyboards/25keys/zinc/keymaps/toshi0383/rules.mk
+++ /dev/null
@@ -1,130 +0,0 @@
1# Build Options
2# change to "no" to disable the options, or define them in the Makefile in
3# the appropriate keymap folder that will get included automatically
4#
5BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite
6MOUSEKEY_ENABLE = no # Mouse keys
7EXTRAKEY_ENABLE = yes # Audio control and System control
8CONSOLE_ENABLE = no # Console for debug
9COMMAND_ENABLE = no # Commands for debug and configuration
10NKRO_ENABLE = no # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
11BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
12MIDI_ENABLE = no # MIDI controls
13AUDIO_ENABLE = no # Audio output on port C6
14UNICODE_ENABLE = no # Unicode
15BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
16RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. Do not enable this with audio at the same time.
17SWAP_HANDS_ENABLE = no # Enable one-hand typing
18LTO_ENABLE = no # if firmware size over limit, try this option
19
20define ZINC_CUSTOMISE_MSG
21 $(info Zinc customize)
22 $(info - LED_BACK_ENABLE=$(LED_BACK_ENABLE))
23 $(info - LED_UNDERGLOW_ENABLE=$(LED_UNDERGLOW_ENABLE))
24 $(info - LED_BOTH_ENABLE=$(LED_BOTH_ENABLE))
25 $(info - LED_RGB_CONT=$(LED_RGB_CONT))
26 $(info - RGB_MATRIX=$(RGB_MATRIX))
27 $(info - LED_ANIMATION=$(LED_ANIMATIONS))
28 $(info - IOS_DEVICE_ENABLE=$(IOS_DEVICE_ENABLE))
29endef
30
31# Zinc keyboard customize
32LED_BACK_ENABLE = no # LED backlight (Enable SK6812mini backlight)
33LED_UNDERGLOW_ENABLE = no # LED underglow (Enable WS2812 RGB underlight)
34LED_BOTH_ENABLE = no # LED backlight and underglow
35LED_RGB_CONT = no # LED continuous backlight or/and underglow between left Zinc and right Zinc
36RGB_MATRIX = no # RGB LED Matrix
37RGB_MATRIX_SPLIT_RIGHT = no # RGB Matrix for RIGHT Hand
38LED_ANIMATIONS = yes # LED animations
39IOS_DEVICE_ENABLE = no # connect to IOS device (iPad,iPhone)
40
41#### LED_BACK_ENABLE and LED_UNDERGLOW_ENABLE.
42#### Do not enable these with audio at the same time.
43
44### Zinc keyboard 'default' keymap: convenient command line option
45## make ZINC=<options> zinc:defualt
46## option= back | under | both | cont | matrix | na | ios
47## ex.
48## make ZINC=under zinc:defualt
49## make ZINC=under,ios zinc:defualt
50## make ZINC=back zinc:default
51## make ZINC=back,na zinc:default
52## make ZINC=back,ios zinc:default
53
54ifneq ($(strip $(ZINC)),)
55 ifeq ($(findstring back,$(ZINC)), back)
56 LED_BACK_ENABLE = yes
57 endif
58 ifeq ($(findstring under,$(ZINC)), under)
59 LED_UNDERGLOW_ENABLE = yes
60 endif
61 ifeq ($(findstring both,$(ZINC)), both)
62 LED_BOTH_ENABLE = yes
63 endif
64 ifeq ($(findstring cont,$(ZINC)), cont)
65 LED_RGB_CONT = yes
66 endif
67 ifeq ($(findstring matrix,$(ZINC)), matrix)
68 RGB_MATRIX = yes
69 endif
70 ifeq ($(findstring right,$(ZINC)), right)
71 RGB_MATRIX_SPLIT_RIGHT = yes
72 endif
73 ifeq ($(findstring na,$(ZINC)), na)
74 LED_ANIMATIONS = no
75 endif
76 ifeq ($(findstring ios,$(ZINC)), ios)
77 IOS_DEVICE_ENABLE = yes
78 endif
79 $(eval $(call ZINC_CUSTOMISE_MSG))
80 $(info )
81endif
82
83ifeq ($(strip $(LED_BACK_ENABLE)), yes)
84 RGBLIGHT_ENABLE = yes
85 ifeq ($(strip $(LED_UNDERGLOW_ENABLE)), yes)
86 OPT_DEFS += -DRGBLED_BOTH
87 $(info LED_BOTH_ENABLE option is enabled instead of LED_BACK_ENABLE and LED_UNDERGLOW_ENABLE)
88 else
89 OPT_DEFS += -DRGBLED_BACK
90 endif
91else ifeq ($(strip $(LED_UNDERGLOW_ENABLE)), yes)
92 RGBLIGHT_ENABLE = yes
93else
94 RGBLIGHT_ENABLE = no
95endif
96
97ifeq ($(strip $(LED_BOTH_ENABLE)), yes)
98 RGBLIGHT_ENABLE = yes
99 OPT_DEFS += -DRGBLED_BOTH
100endif
101
102ifeq ($(strip $(LED_RGB_CONT)), yes)
103 OPT_DEFS += -DRGBLED_CONT
104endif
105
106ifeq ($(strip $(RGB_MATRIX)), yes)
107 RGBLIGHT_ENABLE = no
108 RGB_MATRIX_ENABLE = yes
109endif
110
111ifeq ($(strip $(IOS_DEVICE_ENABLE)), yes)
112 OPT_DEFS += -DIOS_DEVICE_ENABLE
113endif
114
115ifeq ($(strip $(LED_ANIMATIONS)), yes)
116 OPT_DEFS += -DLED_ANIMATIONS
117endif
118
119ifeq ($(strip $(RGB_MATRIX_SPLIT_RIGHT)), yes)
120 OPT_DEFS += -DRGB_MATRIX_SPLIT_RIGHT
121endif
122
123# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
124SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
125
126
127# Uncomment these for debugging
128# $(info -- RGBLIGHT_ENABLE=$(RGBLIGHT_ENABLE))
129# $(info -- OPT_DEFS=$(OPT_DEFS))
130# $(info )