aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfauxpark <fauxpark@gmail.com>2020-12-09 18:21:45 +1100
committerfauxpark <fauxpark@gmail.com>2020-12-09 18:21:45 +1100
commit95c39b372744bbb8733d39a9b6e3c2d274fdfc79 (patch)
treee6f039ac9a536b7b206ebae8e5034bd5d8e2f2d4
parenteb3964bd576568d577dc90704c7f2497de9a5aa9 (diff)
parent56933b9b9f00a46980c1201a6ba5d0c5c9932275 (diff)
downloadqmk_firmware-95c39b372744bbb8733d39a9b6e3c2d274fdfc79.tar.gz
qmk_firmware-95c39b372744bbb8733d39a9b6e3c2d274fdfc79.zip
Merge remote-tracking branch 'upstream/master' into develop
-rw-r--r--keyboards/custommk/genesis/config.h62
-rw-r--r--keyboards/custommk/genesis/genesis.c36
-rw-r--r--keyboards/custommk/genesis/genesis.h48
-rw-r--r--keyboards/custommk/genesis/info.json16
-rw-r--r--keyboards/custommk/genesis/keymaps/default/keymap.c37
-rw-r--r--keyboards/custommk/genesis/keymaps/default/readme.md6
-rw-r--r--keyboards/custommk/genesis/keymaps/numpad/keymap.c51
-rw-r--r--keyboards/custommk/genesis/keymaps/numpad/readme.md3
-rw-r--r--keyboards/custommk/genesis/keymaps/via/keymap.c51
-rw-r--r--keyboards/custommk/genesis/keymaps/via/readme.md3
-rw-r--r--keyboards/custommk/genesis/keymaps/via/rules.mk2
-rw-r--r--keyboards/custommk/genesis/readme.md22
-rw-r--r--keyboards/custommk/genesis/rules.mk23
-rw-r--r--keyboards/evyd13/nt980/config.h151
-rw-r--r--keyboards/evyd13/nt980/info.json333
-rw-r--r--keyboards/evyd13/nt980/keymaps/default/keymap.c41
-rw-r--r--keyboards/evyd13/nt980/keymaps/via/keymap.c59
-rw-r--r--keyboards/evyd13/nt980/keymaps/via/rules.mk2
-rw-r--r--keyboards/evyd13/nt980/nt980.c17
-rw-r--r--keyboards/evyd13/nt980/nt980.h97
-rw-r--r--keyboards/evyd13/nt980/readme.md17
-rw-r--r--keyboards/evyd13/nt980/rules.mk22
-rw-r--r--keyboards/geekboards/macropad_v2/chconf.h714
-rw-r--r--keyboards/geekboards/macropad_v2/config.h78
-rw-r--r--keyboards/geekboards/macropad_v2/halconf.h525
-rw-r--r--keyboards/geekboards/macropad_v2/info.json53
-rw-r--r--keyboards/geekboards/macropad_v2/keymaps/default/keymap.c23
-rw-r--r--keyboards/geekboards/macropad_v2/keymaps/default/readme.md1
-rw-r--r--keyboards/geekboards/macropad_v2/keymaps/via/config.h2
-rw-r--r--keyboards/geekboards/macropad_v2/keymaps/via/keymap.c83
-rw-r--r--keyboards/geekboards/macropad_v2/keymaps/via/readme.md3
-rw-r--r--keyboards/geekboards/macropad_v2/keymaps/via/rules.mk2
-rw-r--r--keyboards/geekboards/macropad_v2/macropad_v2.c65
-rw-r--r--keyboards/geekboards/macropad_v2/macropad_v2.h26
-rw-r--r--keyboards/geekboards/macropad_v2/mcuconf.h178
-rw-r--r--keyboards/geekboards/macropad_v2/readme.md32
-rw-r--r--keyboards/geekboards/macropad_v2/rules.mk25
-rw-r--r--keyboards/hidtech/bastyl/bastyl.c19
-rw-r--r--keyboards/hidtech/bastyl/bastyl.h43
-rw-r--r--keyboards/hidtech/bastyl/config.h40
-rw-r--r--keyboards/hidtech/bastyl/info.json71
-rw-r--r--keyboards/hidtech/bastyl/keymaps/default/keymap.c61
-rw-r--r--keyboards/hidtech/bastyl/readme.md22
-rw-r--r--keyboards/hidtech/bastyl/rules.mk23
-rw-r--r--keyboards/kb_elmo/aek2_usb/config.h3
-rw-r--r--keyboards/kb_elmo/aek2_usb/keymaps/via/keymap.c36
-rw-r--r--keyboards/kb_elmo/aek2_usb/keymaps/via/rules.mk1
-rw-r--r--keyboards/mechwild/bde/lefty/config.h54
-rw-r--r--keyboards/mechwild/bde/lefty/info.json16
-rw-r--r--keyboards/mechwild/bde/lefty/keymaps/default/config.h23
-rw-r--r--keyboards/mechwild/bde/lefty/keymaps/default/keymap.c55
-rw-r--r--keyboards/mechwild/bde/lefty/keymaps/fancy/config.h22
-rw-r--r--keyboards/mechwild/bde/lefty/keymaps/fancy/keymap.c121
-rw-r--r--keyboards/mechwild/bde/lefty/keymaps/fancy/rules.mk2
-rw-r--r--keyboards/mechwild/bde/lefty/keymaps/via/config.h22
-rw-r--r--keyboards/mechwild/bde/lefty/keymaps/via/keymap.c56
-rw-r--r--keyboards/mechwild/bde/lefty/keymaps/via/rules.mk2
-rw-r--r--keyboards/mechwild/bde/lefty/lefty.c18
-rw-r--r--keyboards/mechwild/bde/lefty/lefty.h30
-rw-r--r--keyboards/mechwild/bde/lefty/readme.md15
-rw-r--r--keyboards/mechwild/bde/lefty/rules.mk23
-rw-r--r--keyboards/mechwild/bde/righty/config.h55
-rw-r--r--keyboards/mechwild/bde/righty/info.json16
-rw-r--r--keyboards/mechwild/bde/righty/keymaps/default/config.h23
-rw-r--r--keyboards/mechwild/bde/righty/keymaps/default/keymap.c55
-rw-r--r--keyboards/mechwild/bde/righty/keymaps/via/config.h23
-rw-r--r--keyboards/mechwild/bde/righty/keymaps/via/keymap.c55
-rw-r--r--keyboards/mechwild/bde/righty/keymaps/via/rules.mk2
-rw-r--r--keyboards/mechwild/bde/righty/readme.md15
-rw-r--r--keyboards/mechwild/bde/righty/righty.c18
-rw-r--r--keyboards/mechwild/bde/righty/righty.h30
-rw-r--r--keyboards/mechwild/bde/righty/rules.mk23
-rw-r--r--keyboards/mt84/info.json24
-rw-r--r--keyboards/mt84/readme.md46
-rw-r--r--keyboards/nullbitsco/nibble/keymaps/oled/rules.mk2
-rw-r--r--keyboards/planck/readme.md2
-rw-r--r--keyboards/slz40/config.h146
-rw-r--r--keyboards/slz40/info.json76
-rw-r--r--keyboards/slz40/keymaps/default/keymap.c48
-rw-r--r--keyboards/slz40/keymaps/default/readme.md1
-rw-r--r--keyboards/slz40/readme.md19
-rw-r--r--keyboards/slz40/rules.mk22
-rw-r--r--keyboards/slz40/slz40.c17
-rw-r--r--keyboards/slz40/slz40.h41
-rw-r--r--keyboards/taleguers/taleguers75/info.json20
-rw-r--r--users/stanrc85/config.h6
-rw-r--r--users/stanrc85/indicator_layers_sneakbox.c28
-rw-r--r--users/stanrc85/rules.mk8
-rw-r--r--users/stanrc85/stanrc85.c18
89 files changed, 4479 insertions, 47 deletions
diff --git a/keyboards/custommk/genesis/config.h b/keyboards/custommk/genesis/config.h
new file mode 100644
index 000000000..a527737f0
--- /dev/null
+++ b/keyboards/custommk/genesis/config.h
@@ -0,0 +1,62 @@
1/* Copyright 2020 customMK
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17#pragma once
18
19
20#include "config_common.h"
21
22/* USB Device descriptor parameter */
23#define VENDOR_ID 0xF35B
24#define PRODUCT_ID 0xFAB0
25#define DEVICE_VER 0x0001
26#define MANUFACTURER customMK
27#define PRODUCT Genesis
28
29/* key matrix size */
30#define MATRIX_ROWS 5
31#define MATRIX_COLS 4
32
33/* key matrix pins */
34#define MATRIX_ROW_PINS { F0, C7, C6, B6, B5 }
35#define MATRIX_COL_PINS { F4, F5, D7, B4 }
36#define UNUSED_PINS
37
38/* COL2ROW or ROW2COL */
39#define DIODE_DIRECTION COL2ROW
40
41/* Set 0 if debouncing isn't needed */
42#define DEBOUNCE 5
43
44/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
45#define LOCKING_SUPPORT_ENABLE
46
47/* Locking resynchronize hack */
48#define LOCKING_RESYNC_ENABLE
49
50#define ENCODERS_PAD_A { F6, D2 }
51#define ENCODERS_PAD_B { F7, D1 }
52#define ENCODER_RESOLUTION 4
53#define TAP_CODE_DELAY 10
54
55#define RGB_DI_PIN E6
56#define RGBLIGHT_ANIMATIONS
57#define RGBLED_NUM 13
58#define RGBLIGHT_HUE_STEP 8
59#define RGBLIGHT_SAT_STEP 8
60#define RGBLIGHT_VAL_STEP 8
61#define RGBLIGHT_LIMIT_VAL 128
62
diff --git a/keyboards/custommk/genesis/genesis.c b/keyboards/custommk/genesis/genesis.c
new file mode 100644
index 000000000..47296dd80
--- /dev/null
+++ b/keyboards/custommk/genesis/genesis.c
@@ -0,0 +1,36 @@
1/* Copyright 2020 customMK
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17#include "genesis.h"
18
19__attribute__((weak)) void encoder_update_user(uint8_t index, bool clockwise) {
20 /* top left encoder */
21 if (index == 0) {
22 if (clockwise) {
23 tap_code(KC_VOLU);
24 } else {
25 tap_code(KC_VOLD);
26 }
27 }
28 /* top right encoder */
29 else if (index == 1) {
30 if (clockwise) {
31 tap_code(KC_VOLU);
32 } else {
33 tap_code(KC_VOLD);
34 }
35 }
36} \ No newline at end of file
diff --git a/keyboards/custommk/genesis/genesis.h b/keyboards/custommk/genesis/genesis.h
new file mode 100644
index 000000000..ad1073652
--- /dev/null
+++ b/keyboards/custommk/genesis/genesis.h
@@ -0,0 +1,48 @@
1/* Copyright 2020 customMK
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17#pragma once
18
19#include "quantum.h"
20
21#define LAYOUT_numpad_5x4( \
22 K00, K01, K02, K03, \
23 K10, K11, K12, \
24 K20, K21, K22, K23, \
25 K30, K31, K32, \
26 K40, K42, K43 \
27) { \
28 { K00, K01, K02, K03 }, \
29 { K10, K11, K12, KC_NO }, \
30 { K20, K21, K22, K23 }, \
31 { K30, K31, K32, KC_NO }, \
32 { K40, KC_NO, K42, K43 } \
33}
34
35#define LAYOUT_ortho_5x4( \
36 K00, K01, K02, K03, \
37 K10, K11, K12, K13, \
38 K20, K21, K22, K23, \
39 K30, K31, K32, K33, \
40 K40, K41, K42, K43 \
41) { \
42 { K00, K01, K02, K03 }, \
43 { K10, K11, K12, K13 }, \
44 { K20, K21, K22, K23 }, \
45 { K30, K31, K32, K33 }, \
46 { K40, K41, K42, K43 } \
47}
48
diff --git a/keyboards/custommk/genesis/info.json b/keyboards/custommk/genesis/info.json
new file mode 100644
index 000000000..ddba21f99
--- /dev/null
+++ b/keyboards/custommk/genesis/info.json
@@ -0,0 +1,16 @@
1{
2 "keyboard_name": "Genesis",
3 "url": "https://www.customMK.com",
4 "maintainer": "customMK",
5 "width": 4,
6 "height": 5,
7 "layouts": {
8 "LAYOUT_ortho_5x4": {
9 "layout": [{"label":"MO(1)", "x":0, "y":0}, {"label":"/", "x":1, "y":0}, {"label":"*", "x":2, "y":0}, {"label":"Mute", "x":3, "y":0}, {"label":"7", "x":0, "y":1}, {"label":"8", "x":1, "y":1}, {"label":"9", "x":2, "y":1}, {"label":"+", "x":3, "y":1}, {"label":"4", "x":0, "y":2}, {"label":"5", "x":1, "y":2}, {"label":"6", "x":2, "y":2}, {"label":"Pg Up", "x":3, "y":2}, {"label":"1", "x":0, "y":3}, {"label":"2", "x":1, "y":3}, {"label":"3", "x":2, "y":3}, {"label":"Pg Dn", "x":3, "y":3}, {"label":"0", "x":0, "y":4}, {"label":"Spc", "x":1, "y":4}, {"label":".", "x":2, "y":4}, {"label":"Enter", "x":3, "y":4}]
10 },
11 "LAYOUT_numpad_5x4": {
12 "layout": [{"label":"MO(1)", "x":0, "y":0}, {"label":"/", "x":1, "y":0}, {"label":"*", "x":2, "y":0}, {"label":"-", "x":3, "y":0}, {"label":"7", "x":0, "y":1}, {"label":"8", "x":1, "y":1}, {"label":"9", "x":2, "y":1}, {"label":"+", "x":3, "y":1, "h":2}, {"label":"4", "x":0, "y":2}, {"label":"5", "x":1, "y":2}, {"label":"6", "x":2, "y":2}, {"label":"1", "x":0, "y":3}, {"label":"2", "x":1, "y":3}, {"label":"3", "x":2, "y":3}, {"label":"Enter", "x":3, "y":3, "h":2}, {"label":"0", "x":0, "y":4, "w":2}, {"label":".", "x":2, "y":4}]
13 }
14
15 }
16} \ No newline at end of file
diff --git a/keyboards/custommk/genesis/keymaps/default/keymap.c b/keyboards/custommk/genesis/keymaps/default/keymap.c
new file mode 100644
index 000000000..1b061b034
--- /dev/null
+++ b/keyboards/custommk/genesis/keymaps/default/keymap.c
@@ -0,0 +1,37 @@
1/* Copyright 2020 customMK
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17#include QMK_KEYBOARD_H
18
19const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
20
21 [0] = LAYOUT_ortho_5x4(
22 MO(1), KC_PSLS, KC_PAST, KC_PMNS,
23 KC_P7, KC_P8, KC_P9, KC_BSPC,
24 KC_P4, KC_P5, KC_P6, KC_PPLS,
25 KC_P1, KC_P2, KC_P3, KC_CAPS,
26 KC_P0, KC_SPC, KC_PDOT, KC_ENT),
27
28 [1] = LAYOUT_ortho_5x4(
29 KC_TRNS, KC_VOLU, RGB_TOG, RGB_MOD,
30 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
31 RGB_VAI, RGB_VAD, RGB_SPI, RGB_SPD,
32 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
33 RGB_HUI, KC_TRNS, KC_TRNS, RGB_HUD),
34
35};
36
37
diff --git a/keyboards/custommk/genesis/keymaps/default/readme.md b/keyboards/custommk/genesis/keymaps/default/readme.md
new file mode 100644
index 000000000..202402d83
--- /dev/null
+++ b/keyboards/custommk/genesis/keymaps/default/readme.md
@@ -0,0 +1,6 @@
1# Default Genesis Macro Pad Layout
2
3This is the default layout for the Genesis Macro Pad. It assumes all 1u switches
4and optional rotary encoder in the top-left or top-right corner for media volume
5control. The top left switch activates Layer 1 which enables control of the RGB
6underglow. \ No newline at end of file
diff --git a/keyboards/custommk/genesis/keymaps/numpad/keymap.c b/keyboards/custommk/genesis/keymaps/numpad/keymap.c
new file mode 100644
index 000000000..97970191d
--- /dev/null
+++ b/keyboards/custommk/genesis/keymaps/numpad/keymap.c
@@ -0,0 +1,51 @@
1/* Copyright 2020 customMK
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17#include QMK_KEYBOARD_H
18
19const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
20
21 [0] = LAYOUT_numpad_5x4(
22 MO(1), KC_PSLS, KC_PAST, KC_PMNS,
23 KC_P7, KC_P8, KC_P9,
24 KC_P4, KC_P5, KC_P6, KC_PPLS,
25 KC_P1, KC_P2, KC_P3,
26 KC_P0, KC_PDOT, KC_ENT),
27
28 [1] = LAYOUT_numpad_5x4(
29 KC_TRNS, KC_TRNS, RGB_TOG, RGB_MOD,
30 KC_TRNS, KC_TRNS, KC_TRNS,
31 RGB_VAI, RGB_VAD, RGB_SPI, RGB_SPD,
32 KC_TRNS, KC_TRNS, KC_TRNS,
33 RGB_HUI, KC_TRNS, RGB_HUD),
34
35 [2] = LAYOUT_numpad_5x4(
36 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
37 KC_TRNS, KC_TRNS, KC_TRNS,
38 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
39 KC_TRNS, KC_TRNS, KC_TRNS,
40 KC_TRNS, KC_TRNS, KC_TRNS),
41
42 [3] = LAYOUT_numpad_5x4(
43 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
44 KC_TRNS, KC_TRNS, KC_TRNS,
45 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
46 KC_TRNS, KC_TRNS, KC_TRNS,
47 KC_TRNS, KC_TRNS, KC_TRNS),
48
49};
50
51
diff --git a/keyboards/custommk/genesis/keymaps/numpad/readme.md b/keyboards/custommk/genesis/keymaps/numpad/readme.md
new file mode 100644
index 000000000..795e4341a
--- /dev/null
+++ b/keyboards/custommk/genesis/keymaps/numpad/readme.md
@@ -0,0 +1,3 @@
1# Numpad Genesis Macro Pad Layout
2
3This is the numpad layout for the Genesis Macro Pad. It assumes the 0, +, and enter keys are all 2u size, with an optional rotary encoder in the top-left or top-right corner for media volume control. The top left switch activates Layer 1 which enables control of the RGB underglow. \ No newline at end of file
diff --git a/keyboards/custommk/genesis/keymaps/via/keymap.c b/keyboards/custommk/genesis/keymaps/via/keymap.c
new file mode 100644
index 000000000..fe3755476
--- /dev/null
+++ b/keyboards/custommk/genesis/keymaps/via/keymap.c
@@ -0,0 +1,51 @@
1/* Copyright 2020 customMK
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17#include QMK_KEYBOARD_H
18
19const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
20
21 [0] = LAYOUT_ortho_5x4(
22 MO(1), KC_PSLS, KC_PAST, KC_PMNS,
23 KC_P7, KC_P8, KC_P9, KC_PPLS,
24 KC_P4, KC_P5, KC_P6, KC_PGUP,
25 KC_P1, KC_P2, KC_P3, KC_PGDN,
26 KC_P0, KC_SPC, KC_PDOT, KC_PENT),
27
28 [1] = LAYOUT_ortho_5x4(
29 KC_TRNS, RGB_TOG, RGB_MOD, KC_TRNS,
30 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
31 RGB_VAI, RGB_VAD, RGB_SPI, RGB_SPD,
32 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
33 RGB_HUI, RGB_HUD, KC_TRNS, KC_TRNS),
34
35 [2] = LAYOUT_ortho_5x4(
36 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
37 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
38 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
39 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
40 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS),
41
42 [3] = LAYOUT_ortho_5x4(
43 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
44 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
45 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
46 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
47 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS),
48
49};
50
51
diff --git a/keyboards/custommk/genesis/keymaps/via/readme.md b/keyboards/custommk/genesis/keymaps/via/readme.md
new file mode 100644
index 000000000..aa70d6225
--- /dev/null
+++ b/keyboards/custommk/genesis/keymaps/via/readme.md
@@ -0,0 +1,3 @@
1# Genesis Macro Pad Layout for VIA
2
3This is the via layout for the Genesis Macro Pad. It is identical to the default 1u layout which assumes all 1u switches and optional rotary encoder in the top-left or top-right corner for media volume control. The top-left switch activates Layer 1 which enables control of the RGB underglow. \ No newline at end of file
diff --git a/keyboards/custommk/genesis/keymaps/via/rules.mk b/keyboards/custommk/genesis/keymaps/via/rules.mk
new file mode 100644
index 000000000..43061db1d
--- /dev/null
+++ b/keyboards/custommk/genesis/keymaps/via/rules.mk
@@ -0,0 +1,2 @@
1VIA_ENABLE = yes
2LTO_ENABLE = yes \ No newline at end of file
diff --git a/keyboards/custommk/genesis/readme.md b/keyboards/custommk/genesis/readme.md
new file mode 100644
index 000000000..58bd27121
--- /dev/null
+++ b/keyboards/custommk/genesis/readme.md
@@ -0,0 +1,22 @@
1# Genesis
2
3![Genesis Macro Pad](https://i.imgur.com/voBjLrM.jpeg)
4![Genesis Macro Pad PCB](https://i.imgur.com/ST2vtkV.jpeg)
5
6Genesis is a 5x4 ortholinear macro pad designed and produced by customMK.
7
8* Keyboard Maintainer: [customMK](https://github.com/customMK)
9* Hardware Supported: Genesis Macro Pad
10* Hardware Availability: [customMK](https://shop.custommk.com/products/genesis_macropad)
11
12Make example for this keyboard (after setting up your build environment):
13
14 make custommk/genesis:default
15
16Flashing example for this keyboard:
17
18 make custommk/genesis:default:flash
19
20Genesis Macro Pad has qmk-dfu bootloader preinstalled. To enter the bootloader, run the flashing command above, and then either plug in the USB connection while holding the top-left key, or alternatively, plug in the USB connection and then press the reset button on the PCB
21
22See 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/custommk/genesis/rules.mk b/keyboards/custommk/genesis/rules.mk
new file mode 100644
index 000000000..1556125ec
--- /dev/null
+++ b/keyboards/custommk/genesis/rules.mk
@@ -0,0 +1,23 @@
1# MCU name
2MCU = atmega32u4
3
4# Bootloader selection
5BOOTLOADER = qmk-dfu
6
7# Build Options
8# change yes to no to disable
9#
10BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
11MOUSEKEY_ENABLE = yes # Mouse keys
12EXTRAKEY_ENABLE = yes # Audio control and System control
13CONSOLE_ENABLE = no # Console for debug
14COMMAND_ENABLE = no # Commands for debug and configuration
15# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
16SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
17# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
18NKRO_ENABLE = yes # USB Nkey Rollover
19BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
20RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
21BLUETOOTH_ENABLE = no # Enable Bluetooth
22AUDIO_ENABLE = no # Audio output
23ENCODER_ENABLE = yes \ No newline at end of file
diff --git a/keyboards/evyd13/nt980/config.h b/keyboards/evyd13/nt980/config.h
new file mode 100644
index 000000000..1509dde06
--- /dev/null
+++ b/keyboards/evyd13/nt980/config.h
@@ -0,0 +1,151 @@
1/*
2Copyright 2020 Evy Dekkers
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 2 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/
17
18#pragma once
19
20#include "config_common.h"
21
22/* USB Device descriptor parameter */
23#define VENDOR_ID 0x4705
24#define PRODUCT_ID 0xAAF8
25#define DEVICE_VER 0x0001
26#define MANUFACTURER Evyd13
27#define PRODUCT nt980
28
29/* key matrix size */
30#define MATRIX_ROWS 12
31#define MATRIX_COLS 9
32
33/*
34 * Keyboard Matrix Assignments
35 *
36 * Change this to how you wired your keyboard
37 * COLS: AVR pins used for columns, left to right
38 * ROWS: AVR pins used for rows, top to bottom
39 * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
40 * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
41 *
42 */
43#define MATRIX_ROW_PINS { B0, B1, D1, D0, C6, C7, B5, B6, B4, D7, D4, D6 }
44#define MATRIX_COL_PINS { F0, F1, F4, F5, F6, F7, E6, D3, D2 }
45#define UNUSED_PINS
46
47/* COL2ROW, ROW2COL */
48#define DIODE_DIRECTION COL2ROW
49
50#define LED_NUM_LOCK_PIN B2
51#define LED_CAPS_LOCK_PIN B3
52#define LED_SCROLL_LOCK_PIN B7
53#define LED_PIN_ON_STATE 0
54
55/*
56 * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN.
57 */
58//#define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6
59
60//#define BACKLIGHT_PIN B7
61//#define BACKLIGHT_LEVELS 3
62//#define BACKLIGHT_BREATHING
63
64//#define RGB_DI_PIN E2
65//#ifdef RGB_DI_PIN
66//# define RGBLED_NUM 16
67//# define RGBLIGHT_HUE_STEP 8
68//# define RGBLIGHT_SAT_STEP 8
69//# define RGBLIGHT_VAL_STEP 8
70//# define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
71//# define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
72/*== all animations enable ==*/
73//# define RGBLIGHT_ANIMATIONS
74/*== or choose animations ==*/
75//# define RGBLIGHT_EFFECT_BREATHING
76//# define RGBLIGHT_EFFECT_RAINBOW_MOOD
77//# define RGBLIGHT_EFFECT_RAINBOW_SWIRL
78//# define RGBLIGHT_EFFECT_SNAKE
79//# define RGBLIGHT_EFFECT_KNIGHT
80//# define RGBLIGHT_EFFECT_CHRISTMAS
81//# define RGBLIGHT_EFFECT_STATIC_GRADIENT
82//# define RGBLIGHT_EFFECT_RGB_TEST
83//# define RGBLIGHT_EFFECT_ALTERNATING
84/*== customize breathing effect ==*/
85/*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/
86//# define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64
87/*==== use exp() and sin() ====*/
88//# define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7
89//# define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255
90//#endif
91
92/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
93#define DEBOUNCE 5
94
95/* define if matrix has ghost (lacks anti-ghosting diodes) */
96//#define MATRIX_HAS_GHOST
97
98/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
99#define LOCKING_SUPPORT_ENABLE
100/* Locking resynchronize hack */
101#define LOCKING_RESYNC_ENABLE
102
103/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
104 * This is useful for the Windows task manager shortcut (ctrl+shift+esc).
105 */
106//#define GRAVE_ESC_CTRL_OVERRIDE
107
108/*
109 * Force NKRO
110 *
111 * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
112 * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
113 * makefile for this to work.)
114 *
115 * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
116 * until the next keyboard reset.
117 *
118 * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
119 * fully operational during normal computer usage.
120 *
121 * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
122 * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
123 * bootmagic, NKRO mode will always be enabled until it is toggled again during a
124 * power-up.
125 *
126 */
127//#define FORCE_NKRO
128
129/*
130 * Feature disable options
131 * These options are also useful to firmware size reduction.
132 */
133
134/* disable debug print */
135//#define NO_DEBUG
136
137/* disable print */
138//#define NO_PRINT
139
140/* disable action features */
141//#define NO_ACTION_LAYER
142//#define NO_ACTION_TAPPING
143//#define NO_ACTION_ONESHOT
144
145/* disable these deprecated features by default */
146#define NO_ACTION_MACRO
147#define NO_ACTION_FUNCTION
148
149/* Bootmagic Lite key configuration */
150//#define BOOTMAGIC_LITE_ROW 0
151//#define BOOTMAGIC_LITE_COLUMN 0
diff --git a/keyboards/evyd13/nt980/info.json b/keyboards/evyd13/nt980/info.json
new file mode 100644
index 000000000..408e1287d
--- /dev/null
+++ b/keyboards/evyd13/nt980/info.json
@@ -0,0 +1,333 @@
1{
2 "keyboard_name": "nt980",
3 "url": "",
4 "maintainer": "maartenwut",
5 "width": 19.5,
6 "height": 6.75,
7 "layouts": {
8 "LAYOUT_all": {
9 "layout": [
10 {"label":"Esc", "x":0, "y":0},
11 {"label":"F1", "x":2, "y":0},
12 {"label":"F2", "x":3, "y":0},
13 {"label":"F3", "x":4, "y":0},
14 {"label":"F4", "x":5, "y":0},
15 {"label":"F5", "x":6.5, "y":0},
16 {"label":"F6", "x":7.5, "y":0},
17 {"label":"F7", "x":8.5, "y":0},
18 {"label":"F8", "x":9.5, "y":0},
19 {"label":"F9", "x":11, "y":0},
20 {"label":"F10", "x":12, "y":0},
21 {"label":"F11", "x":13, "y":0},
22 {"label":"F12", "x":14, "y":0},
23 {"label":"Insert", "x":15.5, "y":0},
24 {"label":"Delete", "x":16.5, "y":0},
25 {"label":"PgUp", "x":17.5, "y":0},
26 {"label":"PgDn", "x":18.5, "y":0},
27
28 {"label":"~", "x":0, "y":1.5},
29 {"label":"!", "x":1, "y":1.5},
30 {"label":"@", "x":2, "y":1.5},
31 {"label":"#", "x":3, "y":1.5},
32 {"label":"$", "x":4, "y":1.5},
33 {"label":"%", "x":5, "y":1.5},
34 {"label":"^", "x":6, "y":1.5},
35 {"label":"&", "x":7, "y":1.5},
36 {"label":"*", "x":8, "y":1.5},
37 {"label":"(", "x":9, "y":1.5},
38 {"label":")", "x":10, "y":1.5},
39 {"label":"_", "x":11, "y":1.5},
40 {"label":"+", "x":12, "y":1.5},
41 {"label":"Backspace", "x":13, "y":1.5, "w":2},
42 {"label":"Num Lock", "x":15.5, "y":1.5},
43 {"label":"/", "x":16.5, "y":1.5},
44 {"label":"*", "x":17.5, "y":1.5},
45 {"label":"-", "x":18.5, "y":1.5},
46
47 {"label":"Tab", "x":0, "y":2.5, "w":1.5},
48 {"label":"Q", "x":1.5, "y":2.5},
49 {"label":"W", "x":2.5, "y":2.5},
50 {"label":"E", "x":3.5, "y":2.5},
51 {"label":"R", "x":4.5, "y":2.5},
52 {"label":"T", "x":5.5, "y":2.5},
53 {"label":"Y", "x":6.5, "y":2.5},
54 {"label":"U", "x":7.5, "y":2.5},
55 {"label":"I", "x":8.5, "y":2.5},
56 {"label":"O", "x":9.5, "y":2.5},
57 {"label":"P", "x":10.5, "y":2.5},
58 {"label":"{", "x":11.5, "y":2.5},
59 {"label":"}", "x":12.5, "y":2.5},
60 {"label":"|", "x":13.5, "y":2.5, "w":1.5},
61 {"label":"7", "x":15.5, "y":2.5},
62 {"label":"8", "x":16.5, "y":2.5},
63 {"label":"9", "x":17.5, "y":2.5},
64 {"label":"+", "x":18.5, "y":2.5, "h":2},
65
66 {"label":"Caps Lock", "x":0, "y":3.5, "w":1.75},
67 {"label":"A", "x":1.75, "y":3.5},
68 {"label":"S", "x":2.75, "y":3.5},
69 {"label":"D", "x":3.75, "y":3.5},
70 {"label":"F", "x":4.75, "y":3.5},
71 {"label":"G", "x":5.75, "y":3.5},
72 {"label":"H", "x":6.75, "y":3.5},
73 {"label":"J", "x":7.75, "y":3.5},
74 {"label":"K", "x":8.75, "y":3.5},
75 {"label":"L", "x":9.75, "y":3.5},
76 {"label":":", "x":10.75, "y":3.5},
77 {"label":"\"", "x":11.75, "y":3.5},
78 {"label":"|", "x":12.75, "y":3.5},
79 {"label":"Enter", "x":13.75, "y":3.5, "w":1.25},
80 {"label":"4", "x":15.5, "y":3.5},
81 {"label":"5", "x":16.5, "y":3.5},
82 {"label":"6", "x":17.5, "y":3.5},
83
84 {"label":"Shift", "x":0, "y":4.5, "w":1.25},
85 {"label":"|", "x":1.25, "y":4.5},
86 {"label":"Z", "x":2.25, "y":4.5},
87 {"label":"X", "x":3.25, "y":4.5},
88 {"label":"C", "x":4.25, "y":4.5},
89 {"label":"V", "x":5.25, "y":4.5},
90 {"label":"B", "x":6.25, "y":4.5},
91 {"label":"N", "x":7.25, "y":4.5},
92 {"label":"M", "x":8.25, "y":4.5},
93 {"label":"<", "x":9.25, "y":4.5},
94 {"label":">", "x":10.25, "y":4.5},
95 {"label":"?", "x":11.25, "y":4.5},
96 {"label":"Shift", "x":12.25, "y":4.5, "w":1.75},
97 {"label":"\u2191", "x":14.25, "y":4.75},
98 {"label":"1", "x":15.5, "y":4.5},
99 {"label":"2", "x":16.5, "y":4.5},
100 {"label":"3", "x":17.5, "y":4.5},
101 {"label":"Enter", "x":18.5, "y":4.5, "h":2},
102
103 {"label":"Ctrl", "x":0, "y":5.5, "w":1.25},
104 {"label":"Win", "x":1.25, "y":5.5},
105 {"label":"Alt", "x":2.25, "y":5.5, "w":1.25},
106 {"x":3.5, "y":5.5, "w":6.25},
107 {"label":"Alt", "x":9.75, "y":5.5},
108 {"label":"Ctrl", "x":10.75, "y":5.5},
109 {"label":"Fn", "x":11.75, "y":5.5, "w":1.25},
110 {"label":"\u2190", "x":13.25, "y":5.75},
111 {"label":"\u2193", "x":14.25, "y":5.75},
112 {"label":"\u2192", "x":15.25, "y":5.75},
113 {"label":"0", "x":16.5, "y":5.5},
114 {"label":".", "x":17.5, "y":5.5}
115 ]
116 },
117 "LAYOUT_ansi": {
118 "layout": [
119 {"label":"Esc", "x":0, "y":0},
120 {"label":"F1", "x":2, "y":0},
121 {"label":"F2", "x":3, "y":0},
122 {"label":"F3", "x":4, "y":0},
123 {"label":"F4", "x":5, "y":0},
124 {"label":"F5", "x":6.5, "y":0},
125 {"label":"F6", "x":7.5, "y":0},
126 {"label":"F7", "x":8.5, "y":0},
127 {"label":"F8", "x":9.5, "y":0},
128 {"label":"F9", "x":11, "y":0},
129 {"label":"F10", "x":12, "y":0},
130 {"label":"F11", "x":13, "y":0},
131 {"label":"F12", "x":14, "y":0},
132 {"label":"Insert", "x":15.5, "y":0},
133 {"label":"Delete", "x":16.5, "y":0},
134 {"label":"PgUp", "x":17.5, "y":0},
135 {"label":"PgDn", "x":18.5, "y":0},
136
137 {"label":"~", "x":0, "y":1.5},
138 {"label":"!", "x":1, "y":1.5},
139 {"label":"@", "x":2, "y":1.5},
140 {"label":"#", "x":3, "y":1.5},
141 {"label":"$", "x":4, "y":1.5},
142 {"label":"%", "x":5, "y":1.5},
143 {"label":"^", "x":6, "y":1.5},
144 {"label":"&", "x":7, "y":1.5},
145 {"label":"*", "x":8, "y":1.5},
146 {"label":"(", "x":9, "y":1.5},
147 {"label":")", "x":10, "y":1.5},
148 {"label":"_", "x":11, "y":1.5},
149 {"label":"+", "x":12, "y":1.5},
150 {"label":"Backspace", "x":13, "y":1.5, "w":2},
151 {"label":"Num Lock", "x":15.5, "y":1.5},
152 {"label":"/", "x":16.5, "y":1.5},
153 {"label":"*", "x":17.5, "y":1.5},
154 {"label":"-", "x":18.5, "y":1.5},
155
156 {"label":"Tab", "x":0, "y":2.5, "w":1.5},
157 {"label":"Q", "x":1.5, "y":2.5},
158 {"label":"W", "x":2.5, "y":2.5},
159 {"label":"E", "x":3.5, "y":2.5},
160 {"label":"R", "x":4.5, "y":2.5},
161 {"label":"T", "x":5.5, "y":2.5},
162 {"label":"Y", "x":6.5, "y":2.5},
163 {"label":"U", "x":7.5, "y":2.5},
164 {"label":"I", "x":8.5, "y":2.5},
165 {"label":"O", "x":9.5, "y":2.5},
166 {"label":"P", "x":10.5, "y":2.5},
167 {"label":"{", "x":11.5, "y":2.5},
168 {"label":"}", "x":12.5, "y":2.5},
169 {"label":"|", "x":13.5, "y":2.5, "w":1.5},
170 {"label":"7", "x":15.5, "y":2.5},
171 {"label":"8", "x":16.5, "y":2.5},
172 {"label":"9", "x":17.5, "y":2.5},
173 {"label":"+", "x":18.5, "y":2.5, "h":2},
174
175 {"label":"Caps Lock", "x":0, "y":3.5, "w":1.75},
176 {"label":"A", "x":1.75, "y":3.5},
177 {"label":"S", "x":2.75, "y":3.5},
178 {"label":"D", "x":3.75, "y":3.5},
179 {"label":"F", "x":4.75, "y":3.5},
180 {"label":"G", "x":5.75, "y":3.5},
181 {"label":"H", "x":6.75, "y":3.5},
182 {"label":"J", "x":7.75, "y":3.5},
183 {"label":"K", "x":8.75, "y":3.5},
184 {"label":"L", "x":9.75, "y":3.5},
185 {"label":":", "x":10.75, "y":3.5},
186 {"label":"\"", "x":11.75, "y":3.5},
187 {"label":"Enter", "x":12.75, "y":3.5, "w":2.25},
188 {"label":"4", "x":15.5, "y":3.5},
189 {"label":"5", "x":16.5, "y":3.5},
190 {"label":"6", "x":17.5, "y":3.5},
191
192 {"label":"Shift", "x":0, "y":4.5, "w":2.25},
193 {"label":"Z", "x":2.25, "y":4.5},
194 {"label":"X", "x":3.25, "y":4.5},
195 {"label":"C", "x":4.25, "y":4.5},
196 {"label":"V", "x":5.25, "y":4.5},
197 {"label":"B", "x":6.25, "y":4.5},
198 {"label":"N", "x":7.25, "y":4.5},
199 {"label":"M", "x":8.25, "y":4.5},
200 {"label":"<", "x":9.25, "y":4.5},
201 {"label":">", "x":10.25, "y":4.5},
202 {"label":"?", "x":11.25, "y":4.5},
203 {"label":"Shift", "x":12.25, "y":4.5, "w":1.75},
204 {"label":"\u2191", "x":14.25, "y":4.75},
205 {"label":"1", "x":15.5, "y":4.5},
206 {"label":"2", "x":16.5, "y":4.5},
207 {"label":"3", "x":17.5, "y":4.5},
208 {"label":"Enter", "x":18.5, "y":4.5, "h":2},
209
210 {"label":"Ctrl", "x":0, "y":5.5, "w":1.25},
211 {"label":"Win", "x":1.25, "y":5.5},
212 {"label":"Alt", "x":2.25, "y":5.5, "w":1.25},
213 {"x":3.5, "y":5.5, "w":6.25},
214 {"label":"Alt", "x":9.75, "y":5.5},
215 {"label":"Ctrl", "x":10.75, "y":5.5},
216 {"label":"Fn", "x":11.75, "y":5.5, "w":1.25},
217 {"label":"\u2190", "x":13.25, "y":5.75},
218 {"label":"\u2193", "x":14.25, "y":5.75},
219 {"label":"\u2192", "x":15.25, "y":5.75},
220 {"label":"0", "x":16.5, "y":5.5},
221 {"label":".", "x":17.5, "y":5.5}
222 ]
223 },
224 "LAYOUT_iso": {
225 "layout": [
226 {"label":"Esc", "x":0, "y":0},
227 {"label":"F1", "x":2, "y":0},
228 {"label":"F2", "x":3, "y":0},
229 {"label":"F3", "x":4, "y":0},
230 {"label":"F4", "x":5, "y":0},
231 {"label":"F5", "x":6.5, "y":0},
232 {"label":"F6", "x":7.5, "y":0},
233 {"label":"F7", "x":8.5, "y":0},
234 {"label":"F8", "x":9.5, "y":0},
235 {"label":"F9", "x":11, "y":0},
236 {"label":"F10", "x":12, "y":0},
237 {"label":"F11", "x":13, "y":0},
238 {"label":"F12", "x":14, "y":0},
239 {"label":"Insert", "x":15.5, "y":0},
240 {"label":"Delete", "x":16.5, "y":0},
241 {"label":"PgUp", "x":17.5, "y":0},
242 {"label":"PgDn", "x":18.5, "y":0},
243
244 {"label":"~", "x":0, "y":1.5},
245 {"label":"!", "x":1, "y":1.5},
246 {"label":"@", "x":2, "y":1.5},
247 {"label":"#", "x":3, "y":1.5},
248 {"label":"$", "x":4, "y":1.5},
249 {"label":"%", "x":5, "y":1.5},
250 {"label":"^", "x":6, "y":1.5},
251 {"label":"&", "x":7, "y":1.5},
252 {"label":"*", "x":8, "y":1.5},
253 {"label":"(", "x":9, "y":1.5},
254 {"label":")", "x":10, "y":1.5},
255 {"label":"_", "x":11, "y":1.5},
256 {"label":"+", "x":12, "y":1.5},
257 {"label":"Backspace", "x":13, "y":1.5, "w":2},
258 {"label":"Num Lock", "x":15.5, "y":1.5},
259 {"label":"/", "x":16.5, "y":1.5},
260 {"label":"*", "x":17.5, "y":1.5},
261 {"label":"-", "x":18.5, "y":1.5},
262
263 {"label":"Tab", "x":0, "y":2.5, "w":1.5},
264 {"label":"Q", "x":1.5, "y":2.5},
265 {"label":"W", "x":2.5, "y":2.5},
266 {"label":"E", "x":3.5, "y":2.5},
267 {"label":"R", "x":4.5, "y":2.5},
268 {"label":"T", "x":5.5, "y":2.5},
269 {"label":"Y", "x":6.5, "y":2.5},
270 {"label":"U", "x":7.5, "y":2.5},
271 {"label":"I", "x":8.5, "y":2.5},
272 {"label":"O", "x":9.5, "y":2.5},
273 {"label":"P", "x":10.5, "y":2.5},
274 {"label":"{", "x":11.5, "y":2.5},
275 {"label":"}", "x":12.5, "y":2.5},
276 {"label":"7", "x":15.5, "y":2.5},
277 {"label":"8", "x":16.5, "y":2.5},
278 {"label":"9", "x":17.5, "y":2.5},
279 {"label":"+", "x":18.5, "y":2.5, "h":2},
280
281 {"label":"Caps Lock", "x":0, "y":3.5, "w":1.75},
282 {"label":"A", "x":1.75, "y":3.5},
283 {"label":"S", "x":2.75, "y":3.5},
284 {"label":"D", "x":3.75, "y":3.5},
285 {"label":"F", "x":4.75, "y":3.5},
286 {"label":"G", "x":5.75, "y":3.5},
287 {"label":"H", "x":6.75, "y":3.5},
288 {"label":"J", "x":7.75, "y":3.5},
289 {"label":"K", "x":8.75, "y":3.5},
290 {"label":"L", "x":9.75, "y":3.5},
291 {"label":":", "x":10.75, "y":3.5},
292 {"label":"\"", "x":11.75, "y":3.5},
293 {"label":"|", "x":12.75, "y":3.5},
294 {"label":"Enter", "x":13.75, "y":2.5, "w":1.25, "h":2},
295 {"label":"4", "x":15.5, "y":3.5},
296 {"label":"5", "x":16.5, "y":3.5},
297 {"label":"6", "x":17.5, "y":3.5},
298
299 {"label":"Shift", "x":0, "y":4.5, "w":1.25},
300 {"label":"|", "x":1.25, "y":4.5},
301 {"label":"Z", "x":2.25, "y":4.5},
302 {"label":"X", "x":3.25, "y":4.5},
303 {"label":"C", "x":4.25, "y":4.5},
304 {"label":"V", "x":5.25, "y":4.5},
305 {"label":"B", "x":6.25, "y":4.5},
306 {"label":"N", "x":7.25, "y":4.5},
307 {"label":"M", "x":8.25, "y":4.5},
308 {"label":"<", "x":9.25, "y":4.5},
309 {"label":">", "x":10.25, "y":4.5},
310 {"label":"?", "x":11.25, "y":4.5},
311 {"label":"Shift", "x":12.25, "y":4.5, "w":1.75},
312 {"label":"\u2191", "x":14.25, "y":4.75},
313 {"label":"1", "x":15.5, "y":4.5},
314 {"label":"2", "x":16.5, "y":4.5},
315 {"label":"3", "x":17.5, "y":4.5},
316 {"label":"Enter", "x":18.5, "y":4.5, "h":2},
317
318 {"label":"Ctrl", "x":0, "y":5.5, "w":1.25},
319 {"label":"Win", "x":1.25, "y":5.5},
320 {"label":"Alt", "x":2.25, "y":5.5, "w":1.25},
321 {"x":3.5, "y":5.5, "w":6.25},
322 {"label":"Alt", "x":9.75, "y":5.5},
323 {"label":"Ctrl", "x":10.75, "y":5.5},
324 {"label":"Fn", "x":11.75, "y":5.5, "w":1.25},
325 {"label":"\u2190", "x":13.25, "y":5.75},
326 {"label":"\u2193", "x":14.25, "y":5.75},
327 {"label":"\u2192", "x":15.25, "y":5.75},
328 {"label":"0", "x":16.5, "y":5.5},
329 {"label":".", "x":17.5, "y":5.5}
330 ]
331 }
332 }
333} \ No newline at end of file
diff --git a/keyboards/evyd13/nt980/keymaps/default/keymap.c b/keyboards/evyd13/nt980/keymaps/default/keymap.c
new file mode 100644
index 000000000..1aae16b7c
--- /dev/null
+++ b/keyboards/evyd13/nt980/keymaps/default/keymap.c
@@ -0,0 +1,41 @@
1/* Copyright 2020 Evy Dekkers
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16#include QMK_KEYBOARD_H
17
18// Defines names for use in layer keycodes and the keymap
19enum layer_names {
20 _BASE,
21 _FN
22};
23
24const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
25 [_BASE] = LAYOUT_all(
26 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_INS, KC_DEL, KC_PGUP, KC_PGDN,
27 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, KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS,
28 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, KC_P7, KC_P8, KC_P9, KC_PPLS,
29 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_NUHS, KC_ENT, KC_P4, KC_P5, KC_P6,
30 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_RSFT, KC_UP, KC_P1, KC_P2, KC_P3, KC_PENT,
31 KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RCTL, MO(_FN), KC_LEFT, KC_DOWN, KC_RGHT, KC_P0, KC_PDOT
32 ),
33 [_FN] = LAYOUT_all(
34 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_HOME, KC_END,
35 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
36 _______, _______, _______, _______, _______, _______, _______, _______, KC_PSCR, KC_SLCK, KC_PAUS, _______, _______, _______, _______, _______, _______, _______,
37 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
38 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
39 _______, _______, _______, _______, _______, KC_APP, _______, _______, _______, _______, _______, _______
40 )
41};
diff --git a/keyboards/evyd13/nt980/keymaps/via/keymap.c b/keyboards/evyd13/nt980/keymaps/via/keymap.c
new file mode 100644
index 000000000..4000be9d0
--- /dev/null
+++ b/keyboards/evyd13/nt980/keymaps/via/keymap.c
@@ -0,0 +1,59 @@
1/* Copyright 2020 Evy Dekkers
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16#include QMK_KEYBOARD_H
17
18// Defines names for use in layer keycodes and the keymap
19enum layer_names {
20 _BASE,
21 _FN1,
22 _FN2,
23 _FN3
24};
25
26const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
27 [_BASE] = LAYOUT_all(
28 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_INS, KC_DEL, KC_PGUP, KC_PGDN,
29 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, KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS,
30 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, KC_P7, KC_P8, KC_P9, KC_PPLS,
31 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_NUHS, KC_ENT, KC_P4, KC_P5, KC_P6,
32 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_RSFT, KC_UP, KC_P1, KC_P2, KC_P3, KC_PENT,
33 KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RCTL, MO(_FN1), KC_LEFT, KC_DOWN, KC_RGHT, KC_P0, KC_PDOT
34 ),
35 [_FN1] = LAYOUT_all(
36 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_HOME, KC_END,
37 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
38 _______, _______, _______, _______, _______, _______, _______, _______, KC_PSCR, KC_SLCK, KC_PAUS, _______, _______, _______, _______, _______, _______, _______,
39 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
40 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
41 _______, _______, _______, _______, _______, KC_APP, _______, _______, _______, _______, _______, _______
42 ),
43 [_FN2] = LAYOUT_all(
44 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
45 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
46 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
47 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
48 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
49 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
50 ),
51 [_FN3] = LAYOUT_all(
52 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
53 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
54 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
55 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
56 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
57 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
58 )
59};
diff --git a/keyboards/evyd13/nt980/keymaps/via/rules.mk b/keyboards/evyd13/nt980/keymaps/via/rules.mk
new file mode 100644
index 000000000..36b7ba9cb
--- /dev/null
+++ b/keyboards/evyd13/nt980/keymaps/via/rules.mk
@@ -0,0 +1,2 @@
1VIA_ENABLE = yes
2LTO_ENABLE = yes
diff --git a/keyboards/evyd13/nt980/nt980.c b/keyboards/evyd13/nt980/nt980.c
new file mode 100644
index 000000000..e0113f124
--- /dev/null
+++ b/keyboards/evyd13/nt980/nt980.c
@@ -0,0 +1,17 @@
1/* Copyright 2020 Evy Dekkers
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17#include "nt980.h"
diff --git a/keyboards/evyd13/nt980/nt980.h b/keyboards/evyd13/nt980/nt980.h
new file mode 100644
index 000000000..7480c6536
--- /dev/null
+++ b/keyboards/evyd13/nt980/nt980.h
@@ -0,0 +1,97 @@
1/* Copyright 2020 Evy Dekkers
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17#pragma once
18
19#include "quantum.h"
20#define XXX KC_NO
21
22/* This is a shortcut to help you visually see your layout.
23 *
24 * The first section contains all of the arguments representing the physical
25 * layout of the board and position of the keys.
26 *
27 * The second converts the arguments into a two-dimensional array which
28 * represents the switch matrix.
29 */
30#define LAYOUT_all( \
31 k00, k01, k11, k02, k12, k03, k13, k04, k14, k05, k15, k06, k16, k07, k17, k08, k18, \
32 k20, k30, k21, k31, k22, k32, k23, k33, k24, k34, k25, k35, k26, k36, k27, k37, k28, k38, \
33 k40, k50, k41, k51, k42, k52, k43, k53, k44, k54, k45, k55, k46, k56, k47, k57, k48, k58, \
34 k60, k70, k61, k71, k62, k72, k63, k73, k64, k74, k65, k75, k66, k76, k67, k77, k68, \
35 k80, k90, k81, k91, k82, k92, k83, k93, k84, k94, k85, k95, k86, k96, k87, k97, k88, k98, \
36 ka0, kb0, ka1, ka3, kb4, ka5, kb5, ka6, kb6, ka7, kb7, ka8 \
37) \
38{ \
39 { k00, k01, k02, k03, k04, k05, k06, k07, k08 }, \
40 { XXX, k11, k12, k13, k14, k15, k16, k17, k18 }, \
41 { k20, k21, k22, k23, k24, k25, k26, k27, k28 }, \
42 { k30, k31, k32, k33, k34, k35, k36, k37, k38 }, \
43 { k40, k41, k42, k43, k44, k45, k46, k47, k48 }, \
44 { k50, k51, k52, k53, k54, k55, k56, k57, k58 }, \
45 { k60, k61, k62, k63, k64, k65, k66, k67, k68 }, \
46 { k70, k71, k72, k73, k74, k75, k76, k77, XXX }, \
47 { k80, k81, k82, k83, k84, k85, k86, k87, k88 }, \
48 { k90, k91, k92, k93, k94, k95, k96, k97, k98 }, \
49 { ka0, ka1, XXX, ka3, XXX, ka5, ka6, ka7, ka8 }, \
50 { kb0, XXX, XXX, XXX, kb4, kb5, kb6, kb7, XXX } \
51}
52
53#define LAYOUT_ansi( \
54 k00, k01, k11, k02, k12, k03, k13, k04, k14, k05, k15, k06, k16, k07, k17, k08, k18, \
55 k20, k30, k21, k31, k22, k32, k23, k33, k24, k34, k25, k35, k26, k36, k27, k37, k28, k38, \
56 k40, k50, k41, k51, k42, k52, k43, k53, k44, k54, k45, k55, k46, k56, k47, k57, k48, k58, \
57 k60, k70, k61, k71, k62, k72, k63, k73, k64, k74, k65, k75, k76, k67, k77, k68, \
58 k80, k81, k91, k82, k92, k83, k93, k84, k94, k85, k95, k86, k96, k87, k97, k88, k98, \
59 ka0, kb0, ka1, ka3, kb4, ka5, kb5, ka6, kb6, ka7, kb7, ka8 \
60) \
61{ \
62 { k00, k01, k02, k03, k04, k05, k06, k07, k08 }, \
63 { XXX, k11, k12, k13, k14, k15, k16, k17, k18 }, \
64 { k20, k21, k22, k23, k24, k25, k26, k27, k28 }, \
65 { k30, k31, k32, k33, k34, k35, k36, k37, k38 }, \
66 { k40, k41, k42, k43, k44, k45, k46, k47, k48 }, \
67 { k50, k51, k52, k53, k54, k55, k56, k57, k58 }, \
68 { k60, k61, k62, k63, k64, k65, XXX, k67, k68 }, \
69 { k70, k71, k72, k73, k74, k75, k76, k77, XXX }, \
70 { k80, k81, k82, k83, k84, k85, k86, k87, k88 }, \
71 { XXX, k91, k92, k93, k94, k95, k96, k97, k98 }, \
72 { ka0, ka1, XXX, ka3, XXX, ka5, ka6, ka7, ka8 }, \
73 { kb0, XXX, XXX, XXX, kb4, kb5, kb6, kb7, XXX } \
74}
75
76#define LAYOUT_iso( \
77 k00, k01, k11, k02, k12, k03, k13, k04, k14, k05, k15, k06, k16, k07, k17, k08, k18, \
78 k20, k30, k21, k31, k22, k32, k23, k33, k24, k34, k25, k35, k26, k36, k27, k37, k28, k38, \
79 k40, k50, k41, k51, k42, k52, k43, k53, k44, k54, k45, k55, k46, k47, k57, k48, k58, \
80 k60, k70, k61, k71, k62, k72, k63, k73, k64, k74, k65, k75, k66, k76, k67, k77, k68, \
81 k80, k90, k81, k91, k82, k92, k83, k93, k84, k94, k85, k95, k86, k96, k87, k97, k88, k98, \
82 ka0, kb0, ka1, ka3, kb4, ka5, kb5, ka6, kb6, ka7, kb7, ka8 \
83) \
84{ \
85 { k00, k01, k02, k03, k04, k05, k06, k07, k08 }, \
86 { XXX, k11, k12, k13, k14, k15, k16, k17, k18 }, \
87 { k20, k21, k22, k23, k24, k25, k26, k27, k28 }, \
88 { k30, k31, k32, k33, k34, k35, k36, k37, k38 }, \
89 { k40, k41, k42, k43, k44, k45, k46, k47, k48 }, \
90 { k50, k51, k52, k53, k54, k55, XXX, k57, k58 }, \
91 { k60, k61, k62, k63, k64, k65, k66, k67, k68 }, \
92 { k70, k71, k72, k73, k74, k75, k76, k77, XXX }, \
93 { k80, k81, k82, k83, k84, k85, k86, k87, k88 }, \
94 { k90, k91, k92, k93, k94, k95, k96, k97, k98 }, \
95 { ka0, ka1, XXX, ka3, XXX, ka5, ka6, ka7, ka8 }, \
96 { kb0, XXX, XXX, XXX, kb4, kb5, kb6, kb7, XXX } \
97}
diff --git a/keyboards/evyd13/nt980/readme.md b/keyboards/evyd13/nt980/readme.md
new file mode 100644
index 000000000..238d43717
--- /dev/null
+++ b/keyboards/evyd13/nt980/readme.md
@@ -0,0 +1,17 @@
1# nt980
2
3The nt980 is a direct replacement for the FC980m PCB from Leopold.
4
5* Keyboard Maintainer: [Evyd13](https://github.com/evyd13)
6* Hardware Supported: nt980 PCB
7* Hardware Availability: [GitHub](https://github.com/evyd13/nt-series/tree/main/nt-980)
8
9Make example for this keyboard (after setting up your build environment):
10
11 make evyd13/nt980:default
12
13Flashing example for this keyboard:
14
15 make evyd13/nt980:default:flash
16
17See 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/evyd13/nt980/rules.mk b/keyboards/evyd13/nt980/rules.mk
new file mode 100644
index 000000000..5c0d8f307
--- /dev/null
+++ b/keyboards/evyd13/nt980/rules.mk
@@ -0,0 +1,22 @@
1# MCU name
2MCU = atmega32u4
3
4# Bootloader selection
5BOOTLOADER = atmel-dfu
6
7# Build Options
8# change yes to no to disable
9#
10BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
11MOUSEKEY_ENABLE = yes # Mouse keys
12EXTRAKEY_ENABLE = yes # Audio control and System control
13CONSOLE_ENABLE = no # Console for debug
14COMMAND_ENABLE = no # Commands for debug and configuration
15# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
16SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
17# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
18NKRO_ENABLE = no # USB Nkey Rollover
19BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
20RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
21BLUETOOTH_ENABLE = no # Enable Bluetooth
22AUDIO_ENABLE = no # Audio output
diff --git a/keyboards/geekboards/macropad_v2/chconf.h b/keyboards/geekboards/macropad_v2/chconf.h
new file mode 100644
index 000000000..03f63da36
--- /dev/null
+++ b/keyboards/geekboards/macropad_v2/chconf.h
@@ -0,0 +1,714 @@
1/*
2 ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15*/
16
17/**
18 * @file rt/templates/chconf.h
19 * @brief Configuration file template.
20 * @details A copy of this file must be placed in each project directory, it
21 * contains the application specific kernel settings.
22 *
23 * @addtogroup config
24 * @details Kernel related settings and hooks.
25 * @{
26 */
27
28#ifndef CHCONF_H
29#define CHCONF_H
30
31#define _CHIBIOS_RT_CONF_
32#define _CHIBIOS_RT_CONF_VER_6_0_
33
34/*===========================================================================*/
35/**
36 * @name System timers settings
37 * @{
38 */
39/*===========================================================================*/
40
41/**
42 * @brief System time counter resolution.
43 * @note Allowed values are 16 or 32 bits.
44 */
45#if !defined(CH_CFG_ST_RESOLUTION)
46#define CH_CFG_ST_RESOLUTION 32
47#endif
48
49/**
50 * @brief System tick frequency.
51 * @details Frequency of the system timer that drives the system ticks. This
52 * setting also defines the system tick time unit.
53 */
54#if !defined(CH_CFG_ST_FREQUENCY)
55#define CH_CFG_ST_FREQUENCY 10000
56#endif
57
58/**
59 * @brief Time intervals data size.
60 * @note Allowed values are 16, 32 or 64 bits.
61 */
62#if !defined(CH_CFG_INTERVALS_SIZE)
63#define CH_CFG_INTERVALS_SIZE 32
64#endif
65
66/**
67 * @brief Time types data size.
68 * @note Allowed values are 16 or 32 bits.
69 */
70#if !defined(CH_CFG_TIME_TYPES_SIZE)
71#define CH_CFG_TIME_TYPES_SIZE 32
72#endif
73
74/**
75 * @brief Time delta constant for the tick-less mode.
76 * @note If this value is zero then the system uses the classic
77 * periodic tick. This value represents the minimum number
78 * of ticks that is safe to specify in a timeout directive.
79 * The value one is not valid, timeouts are rounded up to
80 * this value.
81 */
82#if !defined(CH_CFG_ST_TIMEDELTA)
83#define CH_CFG_ST_TIMEDELTA 2
84#endif
85
86/** @} */
87
88/*===========================================================================*/
89/**
90 * @name Kernel parameters and options
91 * @{
92 */
93/*===========================================================================*/
94
95/**
96 * @brief Round robin interval.
97 * @details This constant is the number of system ticks allowed for the
98 * threads before preemption occurs. Setting this value to zero
99 * disables the preemption for threads with equal priority and the
100 * round robin becomes cooperative. Note that higher priority
101 * threads can still preempt, the kernel is always preemptive.
102 * @note Disabling the round robin preemption makes the kernel more compact
103 * and generally faster.
104 * @note The round robin preemption is not supported in tickless mode and
105 * must be set to zero in that case.
106 */
107#if !defined(CH_CFG_TIME_QUANTUM)
108#define CH_CFG_TIME_QUANTUM 0
109#endif
110
111/**
112 * @brief Managed RAM size.
113 * @details Size of the RAM area to be managed by the OS. If set to zero
114 * then the whole available RAM is used. The core memory is made
115 * available to the heap allocator and/or can be used directly through
116 * the simplified core memory allocator.
117 *
118 * @note In order to let the OS manage the whole RAM the linker script must
119 * provide the @p __heap_base__ and @p __heap_end__ symbols.
120 * @note Requires @p CH_CFG_USE_MEMCORE.
121 */
122#if !defined(CH_CFG_MEMCORE_SIZE)
123#define CH_CFG_MEMCORE_SIZE 0
124#endif
125
126/**
127 * @brief Idle thread automatic spawn suppression.
128 * @details When this option is activated the function @p chSysInit()
129 * does not spawn the idle thread. The application @p main()
130 * function becomes the idle thread and must implement an
131 * infinite loop.
132 */
133#if !defined(CH_CFG_NO_IDLE_THREAD)
134#define CH_CFG_NO_IDLE_THREAD FALSE
135#endif
136
137/** @} */
138
139/*===========================================================================*/
140/**
141 * @name Performance options
142 * @{
143 */
144/*===========================================================================*/
145
146/**
147 * @brief OS optimization.
148 * @details If enabled then time efficient rather than space efficient code
149 * is used when two possible implementations exist.
150 *
151 * @note This is not related to the compiler optimization options.
152 * @note The default is @p TRUE.
153 */
154#if !defined(CH_CFG_OPTIMIZE_SPEED)
155#define CH_CFG_OPTIMIZE_SPEED FALSE
156#endif
157
158/** @} */
159
160/*===========================================================================*/
161/**
162 * @name Subsystem options
163 * @{
164 */
165/*===========================================================================*/
166
167/**
168 * @brief Time Measurement APIs.
169 * @details If enabled then the time measurement APIs are included in
170 * the kernel.
171 *
172 * @note The default is @p TRUE.
173 */
174#if !defined(CH_CFG_USE_TM)
175#define CH_CFG_USE_TM FALSE
176#endif
177
178/**
179 * @brief Threads registry APIs.
180 * @details If enabled then the registry APIs are included in the kernel.
181 *
182 * @note The default is @p TRUE.
183 */
184#if !defined(CH_CFG_USE_REGISTRY)
185#define CH_CFG_USE_REGISTRY TRUE
186#endif
187
188/**
189 * @brief Threads synchronization APIs.
190 * @details If enabled then the @p chThdWait() function is included in
191 * the kernel.
192 *
193 * @note The default is @p TRUE.
194 */
195#if !defined(CH_CFG_USE_WAITEXIT)
196#define CH_CFG_USE_WAITEXIT TRUE
197#endif
198
199/**
200 * @brief Semaphores APIs.
201 * @details If enabled then the Semaphores APIs are included in the kernel.
202 *
203 * @note The default is @p TRUE.
204 */
205#if !defined(CH_CFG_USE_SEMAPHORES)
206#define CH_CFG_USE_SEMAPHORES TRUE
207#endif
208
209/**
210 * @brief Semaphores queuing mode.
211 * @details If enabled then the threads are enqueued on semaphores by
212 * priority rather than in FIFO order.
213 *
214 * @note The default is @p FALSE. Enable this if you have special
215 * requirements.
216 * @note Requires @p CH_CFG_USE_SEMAPHORES.
217 */
218#if !defined(CH_CFG_USE_SEMAPHORES_PRIORITY)
219#define CH_CFG_USE_SEMAPHORES_PRIORITY FALSE
220#endif
221
222/**
223 * @brief Mutexes APIs.
224 * @details If enabled then the mutexes APIs are included in the kernel.
225 *
226 * @note The default is @p TRUE.
227 */
228#if !defined(CH_CFG_USE_MUTEXES)
229#define CH_CFG_USE_MUTEXES TRUE
230#endif
231
232/**
233 * @brief Enables recursive behavior on mutexes.
234 * @note Recursive mutexes are heavier and have an increased
235 * memory footprint.
236 *
237 * @note The default is @p FALSE.
238 * @note Requires @p CH_CFG_USE_MUTEXES.
239 */
240#if !defined(CH_CFG_USE_MUTEXES_RECURSIVE)
241#define CH_CFG_USE_MUTEXES_RECURSIVE FALSE
242#endif
243
244/**
245 * @brief Conditional Variables APIs.
246 * @details If enabled then the conditional variables APIs are included
247 * in the kernel.
248 *
249 * @note The default is @p TRUE.
250 * @note Requires @p CH_CFG_USE_MUTEXES.
251 */
252#if !defined(CH_CFG_USE_CONDVARS)
253#define CH_CFG_USE_CONDVARS TRUE
254#endif
255
256/**
257 * @brief Conditional Variables APIs with timeout.
258 * @details If enabled then the conditional variables APIs with timeout
259 * specification are included in the kernel.
260 *
261 * @note The default is @p TRUE.
262 * @note Requires @p CH_CFG_USE_CONDVARS.
263 */
264#if !defined(CH_CFG_USE_CONDVARS_TIMEOUT)
265#define CH_CFG_USE_CONDVARS_TIMEOUT FALSE
266#endif
267
268/**
269 * @brief Events Flags APIs.
270 * @details If enabled then the event flags APIs are included in the kernel.
271 *
272 * @note The default is @p TRUE.
273 */
274#if !defined(CH_CFG_USE_EVENTS)
275#define CH_CFG_USE_EVENTS TRUE
276#endif
277
278/**
279 * @brief Events Flags APIs with timeout.
280 * @details If enabled then the events APIs with timeout specification
281 * are included in the kernel.
282 *
283 * @note The default is @p TRUE.
284 * @note Requires @p CH_CFG_USE_EVENTS.
285 */
286#if !defined(CH_CFG_USE_EVENTS_TIMEOUT)
287#define CH_CFG_USE_EVENTS_TIMEOUT TRUE
288#endif
289
290/**
291 * @brief Synchronous Messages APIs.
292 * @details If enabled then the synchronous messages APIs are included
293 * in the kernel.
294 *
295 * @note The default is @p TRUE.
296 */
297#if !defined(CH_CFG_USE_MESSAGES)
298#define CH_CFG_USE_MESSAGES TRUE
299#endif
300
301/**
302 * @brief Synchronous Messages queuing mode.
303 * @details If enabled then messages are served by priority rather than in
304 * FIFO order.
305 *
306 * @note The default is @p FALSE. Enable this if you have special
307 * requirements.
308 * @note Requires @p CH_CFG_USE_MESSAGES.
309 */
310#if !defined(CH_CFG_USE_MESSAGES_PRIORITY)
311#define CH_CFG_USE_MESSAGES_PRIORITY FALSE
312#endif
313
314/**
315 * @brief Mailboxes APIs.
316 * @details If enabled then the asynchronous messages (mailboxes) APIs are
317 * included in the kernel.
318 *
319 * @note The default is @p TRUE.
320 * @note Requires @p CH_CFG_USE_SEMAPHORES.
321 */
322#if !defined(CH_CFG_USE_MAILBOXES)
323#define CH_CFG_USE_MAILBOXES TRUE
324#endif
325
326/**
327 * @brief Core Memory Manager APIs.
328 * @details If enabled then the core memory manager APIs are included
329 * in the kernel.
330 *
331 * @note The default is @p TRUE.
332 */
333#if !defined(CH_CFG_USE_MEMCORE)
334#define CH_CFG_USE_MEMCORE TRUE
335#endif
336
337/**
338 * @brief Heap Allocator APIs.
339 * @details If enabled then the memory heap allocator APIs are included
340 * in the kernel.
341 *
342 * @note The default is @p TRUE.
343 * @note Requires @p CH_CFG_USE_MEMCORE and either @p CH_CFG_USE_MUTEXES or
344 * @p CH_CFG_USE_SEMAPHORES.
345 * @note Mutexes are recommended.
346 */
347#if !defined(CH_CFG_USE_HEAP)
348#define CH_CFG_USE_HEAP FALSE
349#endif
350
351/**
352 * @brief Memory Pools Allocator APIs.
353 * @details If enabled then the memory pools allocator APIs are included
354 * in the kernel.
355 *
356 * @note The default is @p TRUE.
357 */
358#if !defined(CH_CFG_USE_MEMPOOLS)
359#define CH_CFG_USE_MEMPOOLS FALSE
360#endif
361
362/**
363 * @brief Objects FIFOs APIs.
364 * @details If enabled then the objects FIFOs APIs are included
365 * in the kernel.
366 *
367 * @note The default is @p TRUE.
368 */
369#if !defined(CH_CFG_USE_OBJ_FIFOS)
370#define CH_CFG_USE_OBJ_FIFOS FALSE
371#endif
372
373/**
374 * @brief Pipes APIs.
375 * @details If enabled then the pipes APIs are included
376 * in the kernel.
377 *
378 * @note The default is @p TRUE.
379 */
380#if !defined(CH_CFG_USE_PIPES)
381#define CH_CFG_USE_PIPES FALSE
382#endif
383
384/**
385 * @brief Dynamic Threads APIs.
386 * @details If enabled then the dynamic threads creation APIs are included
387 * in the kernel.
388 *
389 * @note The default is @p TRUE.
390 * @note Requires @p CH_CFG_USE_WAITEXIT.
391 * @note Requires @p CH_CFG_USE_HEAP and/or @p CH_CFG_USE_MEMPOOLS.
392 */
393#if !defined(CH_CFG_USE_DYNAMIC)
394#define CH_CFG_USE_DYNAMIC FALSE
395#endif
396
397/** @} */
398
399/*===========================================================================*/
400/**
401 * @name Objects factory options
402 * @{
403 */
404/*===========================================================================*/
405
406/**
407 * @brief Objects Factory APIs.
408 * @details If enabled then the objects factory APIs are included in the
409 * kernel.
410 *
411 * @note The default is @p FALSE.
412 */
413#if !defined(CH_CFG_USE_FACTORY)
414#define CH_CFG_USE_FACTORY FALSE
415#endif
416
417/**
418 * @brief Maximum length for object names.
419 * @details If the specified length is zero then the name is stored by
420 * pointer but this could have unintended side effects.
421 */
422#if !defined(CH_CFG_FACTORY_MAX_NAMES_LENGTH)
423#define CH_CFG_FACTORY_MAX_NAMES_LENGTH 8
424#endif
425
426/**
427 * @brief Enables the registry of generic objects.
428 */
429#if !defined(CH_CFG_FACTORY_OBJECTS_REGISTRY)
430#define CH_CFG_FACTORY_OBJECTS_REGISTRY FALSE
431#endif
432
433/**
434 * @brief Enables factory for generic buffers.
435 */
436#if !defined(CH_CFG_FACTORY_GENERIC_BUFFERS)
437#define CH_CFG_FACTORY_GENERIC_BUFFERS FALSE
438#endif
439
440/**
441 * @brief Enables factory for semaphores.
442 */
443#if !defined(CH_CFG_FACTORY_SEMAPHORES)
444#define CH_CFG_FACTORY_SEMAPHORES FALSE
445#endif
446
447/**
448 * @brief Enables factory for mailboxes.
449 */
450#if !defined(CH_CFG_FACTORY_MAILBOXES)
451#define CH_CFG_FACTORY_MAILBOXES FALSE
452#endif
453
454/**
455 * @brief Enables factory for objects FIFOs.
456 */
457#if !defined(CH_CFG_FACTORY_OBJ_FIFOS)
458#define CH_CFG_FACTORY_OBJ_FIFOS FALSE
459#endif
460
461/**
462 * @brief Enables factory for Pipes.
463 */
464#if !defined(CH_CFG_FACTORY_PIPES) || defined(__DOXYGEN__)
465#define CH_CFG_FACTORY_PIPES FALSE
466#endif
467
468/** @} */
469
470/*===========================================================================*/
471/**
472 * @name Debug options
473 * @{
474 */
475/*===========================================================================*/
476
477/**
478 * @brief Debug option, kernel statistics.
479 *
480 * @note The default is @p FALSE.
481 */
482#if !defined(CH_DBG_STATISTICS)
483#define CH_DBG_STATISTICS FALSE
484#endif
485
486/**
487 * @brief Debug option, system state check.
488 * @details If enabled the correct call protocol for system APIs is checked
489 * at runtime.
490 *
491 * @note The default is @p FALSE.
492 */
493#if !defined(CH_DBG_SYSTEM_STATE_CHECK)
494#define CH_DBG_SYSTEM_STATE_CHECK FALSE
495#endif
496
497/**
498 * @brief Debug option, parameters checks.
499 * @details If enabled then the checks on the API functions input
500 * parameters are activated.
501 *
502 * @note The default is @p FALSE.
503 */
504#if !defined(CH_DBG_ENABLE_CHECKS)
505#define CH_DBG_ENABLE_CHECKS FALSE
506#endif
507
508/**
509 * @brief Debug option, consistency checks.
510 * @details If enabled then all the assertions in the kernel code are
511 * activated. This includes consistency checks inside the kernel,
512 * runtime anomalies and port-defined checks.
513 *
514 * @note The default is @p FALSE.
515 */
516#if !defined(CH_DBG_ENABLE_ASSERTS)
517#define CH_DBG_ENABLE_ASSERTS FALSE
518#endif
519
520/**
521 * @brief Debug option, trace buffer.
522 * @details If enabled then the trace buffer is activated.
523 *
524 * @note The default is @p CH_DBG_TRACE_MASK_DISABLED.
525 */
526#if !defined(CH_DBG_TRACE_MASK)
527#define CH_DBG_TRACE_MASK CH_DBG_TRACE_MASK_DISABLED
528#endif
529
530/**
531 * @brief Trace buffer entries.
532 * @note The trace buffer is only allocated if @p CH_DBG_TRACE_MASK is
533 * different from @p CH_DBG_TRACE_MASK_DISABLED.
534 */
535#if !defined(CH_DBG_TRACE_BUFFER_SIZE)
536#define CH_DBG_TRACE_BUFFER_SIZE 128
537#endif
538
539/**
540 * @brief Debug option, stack checks.
541 * @details If enabled then a runtime stack check is performed.
542 *
543 * @note The default is @p FALSE.
544 * @note The stack check is performed in a architecture/port dependent way.
545 * It may not be implemented or some ports.
546 * @note The default failure mode is to halt the system with the global
547 * @p panic_msg variable set to @p NULL.
548 */
549#if !defined(CH_DBG_ENABLE_STACK_CHECK)
550#define CH_DBG_ENABLE_STACK_CHECK FALSE
551#endif
552
553/**
554 * @brief Debug option, stacks initialization.
555 * @details If enabled then the threads working area is filled with a byte
556 * value when a thread is created. This can be useful for the
557 * runtime measurement of the used stack.
558 *
559 * @note The default is @p FALSE.
560 */
561#if !defined(CH_DBG_FILL_THREADS)
562#define CH_DBG_FILL_THREADS FALSE
563#endif
564
565/**
566 * @brief Debug option, threads profiling.
567 * @details If enabled then a field is added to the @p thread_t structure that
568 * counts the system ticks occurred while executing the thread.
569 *
570 * @note The default is @p FALSE.
571 * @note This debug option is not currently compatible with the
572 * tickless mode.
573 */
574#if !defined(CH_DBG_THREADS_PROFILING)
575#define CH_DBG_THREADS_PROFILING FALSE
576#endif
577
578/** @} */
579
580/*===========================================================================*/
581/**
582 * @name Kernel hooks
583 * @{
584 */
585/*===========================================================================*/
586
587/**
588 * @brief System structure extension.
589 * @details User fields added to the end of the @p ch_system_t structure.
590 */
591#define CH_CFG_SYSTEM_EXTRA_FIELDS \
592 /* Add threads custom fields here.*/
593
594/**
595 * @brief System initialization hook.
596 * @details User initialization code added to the @p chSysInit() function
597 * just before interrupts are enabled globally.
598 */
599#define CH_CFG_SYSTEM_INIT_HOOK() { \
600 /* Add threads initialization code here.*/ \
601}
602
603/**
604 * @brief Threads descriptor structure extension.
605 * @details User fields added to the end of the @p thread_t structure.
606 */
607#define CH_CFG_THREAD_EXTRA_FIELDS \
608 /* Add threads custom fields here.*/
609
610/**
611 * @brief Threads initialization hook.
612 * @details User initialization code added to the @p _thread_init() function.
613 *
614 * @note It is invoked from within @p _thread_init() and implicitly from all
615 * the threads creation APIs.
616 */
617#define CH_CFG_THREAD_INIT_HOOK(tp) { \
618 /* Add threads initialization code here.*/ \
619}
620
621/**
622 * @brief Threads finalization hook.
623 * @details User finalization code added to the @p chThdExit() API.
624 */
625#define CH_CFG_THREAD_EXIT_HOOK(tp) { \
626 /* Add threads finalization code here.*/ \
627}
628
629/**
630 * @brief Context switch hook.
631 * @details This hook is invoked just before switching between threads.
632 */
633#define CH_CFG_CONTEXT_SWITCH_HOOK(ntp, otp) { \
634 /* Context switch code here.*/ \
635}
636
637/**
638 * @brief ISR enter hook.
639 */
640#define CH_CFG_IRQ_PROLOGUE_HOOK() { \
641 /* IRQ prologue code here.*/ \
642}
643
644/**
645 * @brief ISR exit hook.
646 */
647#define CH_CFG_IRQ_EPILOGUE_HOOK() { \
648 /* IRQ epilogue code here.*/ \
649}
650
651/**
652 * @brief Idle thread enter hook.
653 * @note This hook is invoked within a critical zone, no OS functions
654 * should be invoked from here.
655 * @note This macro can be used to activate a power saving mode.
656 */
657#define CH_CFG_IDLE_ENTER_HOOK() { \
658 /* Idle-enter code here.*/ \
659}
660
661/**
662 * @brief Idle thread leave hook.
663 * @note This hook is invoked within a critical zone, no OS functions
664 * should be invoked from here.
665 * @note This macro can be used to deactivate a power saving mode.
666 */
667#define CH_CFG_IDLE_LEAVE_HOOK() { \
668 /* Idle-leave code here.*/ \
669}
670
671/**
672 * @brief Idle Loop hook.
673 * @details This hook is continuously invoked by the idle thread loop.
674 */
675#define CH_CFG_IDLE_LOOP_HOOK() { \
676 /* Idle loop code here.*/ \
677}
678
679/**
680 * @brief System tick event hook.
681 * @details This hook is invoked in the system tick handler immediately
682 * after processing the virtual timers queue.
683 */
684#define CH_CFG_SYSTEM_TICK_HOOK() { \
685 /* System tick event code here.*/ \
686}
687
688/**
689 * @brief System halt hook.
690 * @details This hook is invoked in case to a system halting error before
691 * the system is halted.
692 */
693#define CH_CFG_SYSTEM_HALT_HOOK(reason) { \
694 /* System halt code here.*/ \
695}
696
697/**
698 * @brief Trace hook.
699 * @details This hook is invoked each time a new record is written in the
700 * trace buffer.
701 */
702#define CH_CFG_TRACE_HOOK(tep) { \
703 /* Trace code here.*/ \
704}
705
706/** @} */
707
708/*===========================================================================*/
709/* Port-specific settings (override port settings defaulted in chcore.h). */
710/*===========================================================================*/
711
712#endif /* CHCONF_H */
713
714/** @} */
diff --git a/keyboards/geekboards/macropad_v2/config.h b/keyboards/geekboards/macropad_v2/config.h
new file mode 100644
index 000000000..5f11cdddb
--- /dev/null
+++ b/keyboards/geekboards/macropad_v2/config.h
@@ -0,0 +1,78 @@
1/* Copyright 2020 Geekboards ltd. (geekboards.ru / geekboards.de)
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16#include "config_common.h"
17
18/* USB Device descriptor parameter */
19#define VENDOR_ID 0x0483
20#define PRODUCT_ID 0xA372
21#define DEVICE_VER 0x0002
22#define MANUFACTURER GeekBoards
23#define PRODUCT Macropad v2
24
25/* key matrix size */
26#define MATRIX_ROWS 2
27#define MATRIX_COLS 4
28
29#define DIRECT_PINS {{B13, B15, B3, B5}, {B12, B14, A13, B7}}
30#define UNUSED_PINS
31
32#define RGBLED_NUM 42
33#define DRIVER_LED_TOTAL 42
34#define RGB_DI_PIN A7
35
36// PWM RGB Underglow Defines
37#define WS2812_PWM_DRIVER PWMD3
38#define WS2812_PWM_CHANNEL 2
39#define WS2812_PWM_PAL_MODE 1
40#define WS2812_DMA_STREAM STM32_DMA1_STREAM3
41#define WS2812_DMA_CHANNEL 3
42
43#ifdef RGB_MATRIX_ENABLE
44#define RGB_MATRIX_KEYPRESSES
45#define RGB_MATRIX_FRAMEBUFFER_EFFECTS
46#define DISABLE_RGB_MATRIX_ALPHAS_MODS
47#define DISABLE_RGB_MATRIX_BAND_SAT
48#define DISABLE_RGB_MATRIX_BAND_PINWHEEL_SAT
49#define DISABLE_RGB_MATRIX_BAND_PINWHEEL_VAL
50#define DISABLE_RGB_MATRIX_BAND_SPIRAL_SAT
51#define DISABLE_RGB_MATRIX_BAND_SPIRAL_VAL
52#define DISABLE_RGB_MATRIX_CYCLE_OUT_IN
53#define DISABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON
54#define DISABLE_RGB_MATRIX_CYCLE_SPIRAL
55#define DISABLE_RGB_MATRIX_RAINBOW_BEACON
56#define DISABLE_RGB_MATRIX_RAINBOW_PINWHEELS
57#define DISABLE_RGB_MATRIX_RAINDROPS
58#define DISABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS
59#define DISABLE_RGB_MATRIX_DIGITAL_RAIN
60#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE
61#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS
62#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS
63
64#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_UP_DOWN
65#define RGB_MATRIX_STARTUP_SAT 255
66#define RGB_MATRIX_STARTUP_VAL 192
67#define RGB_MATRIX_STARTUP_SPD 30
68#endif //RGB_MATRIX_ENABLE
69
70#define RGB_DISABLE_WHEN_USB_SUSPENDED true
71#define WAIT_FOR_USB
72
73/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
74#define DEBOUNCE 3
75
76/* Bootmagic Lite key configuration */
77#define BOOTMAGIC_LITE_ROW 0
78#define BOOTMAGIC_LITE_COLUMN 0
diff --git a/keyboards/geekboards/macropad_v2/halconf.h b/keyboards/geekboards/macropad_v2/halconf.h
new file mode 100644
index 000000000..adb1a9071
--- /dev/null
+++ b/keyboards/geekboards/macropad_v2/halconf.h
@@ -0,0 +1,525 @@
1/*
2 ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15*/
16
17/**
18 * @file templates/halconf.h
19 * @brief HAL configuration header.
20 * @details HAL configuration file, this file allows to enable or disable the
21 * various device drivers from your application. You may also use
22 * this file in order to override the device drivers default settings.
23 *
24 * @addtogroup HAL_CONF
25 * @{
26 */
27
28#ifndef HALCONF_H
29#define HALCONF_H
30
31#define _CHIBIOS_HAL_CONF_
32#define _CHIBIOS_HAL_CONF_VER_7_0_
33
34#include "mcuconf.h"
35
36/**
37 * @brief Enables the PAL subsystem.
38 */
39#if !defined(HAL_USE_PAL) || defined(__DOXYGEN__)
40#define HAL_USE_PAL TRUE
41#endif
42
43/**
44 * @brief Enables the ADC subsystem.
45 */
46#if !defined(HAL_USE_ADC) || defined(__DOXYGEN__)
47#define HAL_USE_ADC FALSE
48#endif
49
50/**
51 * @brief Enables the CAN subsystem.
52 */
53#if !defined(HAL_USE_CAN) || defined(__DOXYGEN__)
54#define HAL_USE_CAN FALSE
55#endif
56
57/**
58 * @brief Enables the cryptographic subsystem.
59 */
60#if !defined(HAL_USE_CRY) || defined(__DOXYGEN__)
61#define HAL_USE_CRY FALSE
62#endif
63
64/**
65 * @brief Enables the DAC subsystem.
66 */
67#if !defined(HAL_USE_DAC) || defined(__DOXYGEN__)
68#define HAL_USE_DAC FALSE
69#endif
70
71/**
72 * @brief Enables the GPT subsystem.
73 */
74#if !defined(HAL_USE_GPT) || defined(__DOXYGEN__)
75#define HAL_USE_GPT FALSE
76#endif
77
78/**
79 * @brief Enables the I2C subsystem.
80 */
81#if !defined(HAL_USE_I2C) || defined(__DOXYGEN__)
82#define HAL_USE_I2C TRUE
83#endif
84
85/**
86 * @brief Enables the I2S subsystem.
87 */
88#if !defined(HAL_USE_I2S) || defined(__DOXYGEN__)
89#define HAL_USE_I2S FALSE
90#endif
91
92/**
93 * @brief Enables the ICU subsystem.
94 */
95#if !defined(HAL_USE_ICU) || defined(__DOXYGEN__)
96#define HAL_USE_ICU FALSE
97#endif
98
99/**
100 * @brief Enables the MAC subsystem.
101 */
102#if !defined(HAL_USE_MAC) || defined(__DOXYGEN__)
103#define HAL_USE_MAC FALSE
104#endif
105
106/**
107 * @brief Enables the MMC_SPI subsystem.
108 */
109#if !defined(HAL_USE_MMC_SPI) || defined(__DOXYGEN__)
110#define HAL_USE_MMC_SPI FALSE
111#endif
112
113/**
114 * @brief Enables the PWM subsystem.
115 */
116#if !defined(HAL_USE_PWM) || defined(__DOXYGEN__)
117#define HAL_USE_PWM TRUE
118#endif
119
120/**
121 * @brief Enables the RTC subsystem.
122 */
123#if !defined(HAL_USE_RTC) || defined(__DOXYGEN__)
124#define HAL_USE_RTC FALSE
125#endif
126
127/**
128 * @brief Enables the SDC subsystem.
129 */
130#if !defined(HAL_USE_SDC) || defined(__DOXYGEN__)
131#define HAL_USE_SDC FALSE
132#endif
133
134/**
135 * @brief Enables the SERIAL subsystem.
136 */
137#if !defined(HAL_USE_SERIAL) || defined(__DOXYGEN__)
138#define HAL_USE_SERIAL FALSE
139#endif
140
141/**
142 * @brief Enables the SERIAL over USB subsystem.
143 */
144#if !defined(HAL_USE_SERIAL_USB) || defined(__DOXYGEN__)
145#define HAL_USE_SERIAL_USB FALSE
146#endif
147
148/**
149 * @brief Enables the SIO subsystem.
150 */
151#if !defined(HAL_USE_SIO) || defined(__DOXYGEN__)
152#define HAL_USE_SIO FALSE
153#endif
154
155/**
156 * @brief Enables the SPI subsystem.
157 */
158#if !defined(HAL_USE_SPI) || defined(__DOXYGEN__)
159#define HAL_USE_SPI TRUE
160#endif
161
162/**
163 * @brief Enables the TRNG subsystem.
164 */
165#if !defined(HAL_USE_TRNG) || defined(__DOXYGEN__)
166#define HAL_USE_TRNG FALSE
167#endif
168
169/**
170 * @brief Enables the UART subsystem.
171 */
172#if !defined(HAL_USE_UART) || defined(__DOXYGEN__)
173#define HAL_USE_UART FALSE
174#endif
175
176/**
177 * @brief Enables the USB subsystem.
178 */
179#if !defined(HAL_USE_USB) || defined(__DOXYGEN__)
180#define HAL_USE_USB TRUE
181#endif
182
183/**
184 * @brief Enables the WDG subsystem.
185 */
186#if !defined(HAL_USE_WDG) || defined(__DOXYGEN__)
187#define HAL_USE_WDG FALSE
188#endif
189
190/**
191 * @brief Enables the WSPI subsystem.
192 */
193#if !defined(HAL_USE_WSPI) || defined(__DOXYGEN__)
194#define HAL_USE_WSPI FALSE
195#endif
196
197/*===========================================================================*/
198/* PAL driver related settings. */
199/*===========================================================================*/
200
201/**
202 * @brief Enables synchronous APIs.
203 * @note Disabling this option saves both code and data space.
204 */
205#if !defined(PAL_USE_CALLBACKS) || defined(__DOXYGEN__)
206#define PAL_USE_CALLBACKS FALSE
207#endif
208
209/**
210 * @brief Enables synchronous APIs.
211 * @note Disabling this option saves both code and data space.
212 */
213#if !defined(PAL_USE_WAIT) || defined(__DOXYGEN__)
214#define PAL_USE_WAIT FALSE
215#endif
216
217/*===========================================================================*/
218/* ADC driver related settings. */
219/*===========================================================================*/
220
221/**
222 * @brief Enables synchronous APIs.
223 * @note Disabling this option saves both code and data space.
224 */
225#if !defined(ADC_USE_WAIT) || defined(__DOXYGEN__)
226#define ADC_USE_WAIT TRUE
227#endif
228
229/**
230 * @brief Enables the @p adcAcquireBus() and @p adcReleaseBus() APIs.
231 * @note Disabling this option saves both code and data space.
232 */
233#if !defined(ADC_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
234#define ADC_USE_MUTUAL_EXCLUSION TRUE
235#endif
236
237/*===========================================================================*/
238/* CAN driver related settings. */
239/*===========================================================================*/
240
241/**
242 * @brief Sleep mode related APIs inclusion switch.
243 */
244#if !defined(CAN_USE_SLEEP_MODE) || defined(__DOXYGEN__)
245#define CAN_USE_SLEEP_MODE TRUE
246#endif
247
248/**
249 * @brief Enforces the driver to use direct callbacks rather than OSAL events.
250 */
251#if !defined(CAN_ENFORCE_USE_CALLBACKS) || defined(__DOXYGEN__)
252#define CAN_ENFORCE_USE_CALLBACKS FALSE
253#endif
254
255/*===========================================================================*/
256/* CRY driver related settings. */
257/*===========================================================================*/
258
259/**
260 * @brief Enables the SW fall-back of the cryptographic driver.
261 * @details When enabled, this option, activates a fall-back software
262 * implementation for algorithms not supported by the underlying
263 * hardware.
264 * @note Fall-back implementations may not be present for all algorithms.
265 */
266#if !defined(HAL_CRY_USE_FALLBACK) || defined(__DOXYGEN__)
267#define HAL_CRY_USE_FALLBACK FALSE
268#endif
269
270/**
271 * @brief Makes the driver forcibly use the fall-back implementations.
272 */
273#if !defined(HAL_CRY_ENFORCE_FALLBACK) || defined(__DOXYGEN__)
274#define HAL_CRY_ENFORCE_FALLBACK FALSE
275#endif
276
277/*===========================================================================*/
278/* DAC driver related settings. */
279/*===========================================================================*/
280
281/**
282 * @brief Enables synchronous APIs.
283 * @note Disabling this option saves both code and data space.
284 */
285#if !defined(DAC_USE_WAIT) || defined(__DOXYGEN__)
286#define DAC_USE_WAIT TRUE
287#endif
288
289/**
290 * @brief Enables the @p dacAcquireBus() and @p dacReleaseBus() APIs.
291 * @note Disabling this option saves both code and data space.
292 */
293#if !defined(DAC_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
294#define DAC_USE_MUTUAL_EXCLUSION TRUE
295#endif
296
297/*===========================================================================*/
298/* I2C driver related settings. */
299/*===========================================================================*/
300
301/**
302 * @brief Enables the mutual exclusion APIs on the I2C bus.
303 */
304#if !defined(I2C_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
305#define I2C_USE_MUTUAL_EXCLUSION TRUE
306#endif
307
308/*===========================================================================*/
309/* MAC driver related settings. */
310/*===========================================================================*/
311
312/**
313 * @brief Enables the zero-copy API.
314 */
315#if !defined(MAC_USE_ZERO_COPY) || defined(__DOXYGEN__)
316#define MAC_USE_ZERO_COPY FALSE
317#endif
318
319/**
320 * @brief Enables an event sources for incoming packets.
321 */
322#if !defined(MAC_USE_EVENTS) || defined(__DOXYGEN__)
323#define MAC_USE_EVENTS TRUE
324#endif
325
326/*===========================================================================*/
327/* MMC_SPI driver related settings. */
328/*===========================================================================*/
329
330/**
331 * @brief Delays insertions.
332 * @details If enabled this options inserts delays into the MMC waiting
333 * routines releasing some extra CPU time for the threads with
334 * lower priority, this may slow down the driver a bit however.
335 * This option is recommended also if the SPI driver does not
336 * use a DMA channel and heavily loads the CPU.
337 */
338#if !defined(MMC_NICE_WAITING) || defined(__DOXYGEN__)
339#define MMC_NICE_WAITING TRUE
340#endif
341
342/*===========================================================================*/
343/* SDC driver related settings. */
344/*===========================================================================*/
345
346/**
347 * @brief Number of initialization attempts before rejecting the card.
348 * @note Attempts are performed at 10mS intervals.
349 */
350#if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
351#define SDC_INIT_RETRY 100
352#endif
353
354/**
355 * @brief Include support for MMC cards.
356 * @note MMC support is not yet implemented so this option must be kept
357 * at @p FALSE.
358 */
359#if !defined(SDC_MMC_SUPPORT) || defined(__DOXYGEN__)
360#define SDC_MMC_SUPPORT FALSE
361#endif
362
363/**
364 * @brief Delays insertions.
365 * @details If enabled this options inserts delays into the MMC waiting
366 * routines releasing some extra CPU time for the threads with
367 * lower priority, this may slow down the driver a bit however.
368 */
369#if !defined(SDC_NICE_WAITING) || defined(__DOXYGEN__)
370#define SDC_NICE_WAITING TRUE
371#endif
372
373/**
374 * @brief OCR initialization constant for V20 cards.
375 */
376#if !defined(SDC_INIT_OCR_V20) || defined(__DOXYGEN__)
377#define SDC_INIT_OCR_V20 0x50FF8000U
378#endif
379
380/**
381 * @brief OCR initialization constant for non-V20 cards.
382 */
383#if !defined(SDC_INIT_OCR) || defined(__DOXYGEN__)
384#define SDC_INIT_OCR 0x80100000U
385#endif
386
387/*===========================================================================*/
388/* SERIAL driver related settings. */
389/*===========================================================================*/
390
391/**
392 * @brief Default bit rate.
393 * @details Configuration parameter, this is the baud rate selected for the
394 * default configuration.
395 */
396#if !defined(SERIAL_DEFAULT_BITRATE) || defined(__DOXYGEN__)
397#define SERIAL_DEFAULT_BITRATE 38400
398#endif
399
400/**
401 * @brief Serial buffers size.
402 * @details Configuration parameter, you can change the depth of the queue
403 * buffers depending on the requirements of your application.
404 * @note The default is 16 bytes for both the transmission and receive
405 * buffers.
406 */
407#if !defined(SERIAL_BUFFERS_SIZE) || defined(__DOXYGEN__)
408#define SERIAL_BUFFERS_SIZE 16
409#endif
410
411/*===========================================================================*/
412/* SERIAL_USB driver related setting. */
413/*===========================================================================*/
414
415/**
416 * @brief Serial over USB buffers size.
417 * @details Configuration parameter, the buffer size must be a multiple of
418 * the USB data endpoint maximum packet size.
419 * @note The default is 256 bytes for both the transmission and receive
420 * buffers.
421 */
422#if !defined(SERIAL_USB_BUFFERS_SIZE) || defined(__DOXYGEN__)
423#define SERIAL_USB_BUFFERS_SIZE 1
424#endif
425
426/**
427 * @brief Serial over USB number of buffers.
428 * @note The default is 2 buffers.
429 */
430#if !defined(SERIAL_USB_BUFFERS_NUMBER) || defined(__DOXYGEN__)
431#define SERIAL_USB_BUFFERS_NUMBER 2
432#endif
433
434/*===========================================================================*/
435/* SPI driver related settings. */
436/*===========================================================================*/
437
438/**
439 * @brief Enables synchronous APIs.
440 * @note Disabling this option saves both code and data space.
441 */
442#if !defined(SPI_USE_WAIT) || defined(__DOXYGEN__)
443#define SPI_USE_WAIT TRUE
444#endif
445
446/**
447 * @brief Enables circular transfers APIs.
448 * @note Disabling this option saves both code and data space.
449 */
450#if !defined(SPI_USE_CIRCULAR) || defined(__DOXYGEN__)
451#define SPI_USE_CIRCULAR FALSE
452#endif
453
454
455/**
456 * @brief Enables the @p spiAcquireBus() and @p spiReleaseBus() APIs.
457 * @note Disabling this option saves both code and data space.
458 */
459#if !defined(SPI_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
460#define SPI_USE_MUTUAL_EXCLUSION TRUE
461#endif
462
463/**
464 * @brief Handling method for SPI CS line.
465 * @note Disabling this option saves both code and data space.
466 */
467#if !defined(SPI_SELECT_MODE) || defined(__DOXYGEN__)
468#define SPI_SELECT_MODE SPI_SELECT_MODE_PAD
469#endif
470
471/*===========================================================================*/
472/* UART driver related settings. */
473/*===========================================================================*/
474
475/**
476 * @brief Enables synchronous APIs.
477 * @note Disabling this option saves both code and data space.
478 */
479#if !defined(UART_USE_WAIT) || defined(__DOXYGEN__)
480#define UART_USE_WAIT FALSE
481#endif
482
483/**
484 * @brief Enables the @p uartAcquireBus() and @p uartReleaseBus() APIs.
485 * @note Disabling this option saves both code and data space.
486 */
487#if !defined(UART_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
488#define UART_USE_MUTUAL_EXCLUSION FALSE
489#endif
490
491/*===========================================================================*/
492/* USB driver related settings. */
493/*===========================================================================*/
494
495/**
496 * @brief Enables synchronous APIs.
497 * @note Disabling this option saves both code and data space.
498 */
499#if !defined(USB_USE_WAIT) || defined(__DOXYGEN__)
500#define USB_USE_WAIT TRUE
501#endif
502
503/*===========================================================================*/
504/* WSPI driver related settings. */
505/*===========================================================================*/
506
507/**
508 * @brief Enables synchronous APIs.
509 * @note Disabling this option saves both code and data space.
510 */
511#if !defined(WSPI_USE_WAIT) || defined(__DOXYGEN__)
512#define WSPI_USE_WAIT TRUE
513#endif
514
515/**
516 * @brief Enables the @p wspiAcquireBus() and @p wspiReleaseBus() APIs.
517 * @note Disabling this option saves both code and data space.
518 */
519#if !defined(WSPI_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
520#define WSPI_USE_MUTUAL_EXCLUSION TRUE
521#endif
522
523#endif /* HALCONF_H */
524
525/** @} */
diff --git a/keyboards/geekboards/macropad_v2/info.json b/keyboards/geekboards/macropad_v2/info.json
new file mode 100644
index 000000000..144fbde1e
--- /dev/null
+++ b/keyboards/geekboards/macropad_v2/info.json
@@ -0,0 +1,53 @@
1{
2 "keyboard_name": "macropad_v2",
3 "url": "https://geekboards.ru/",
4 "maintainer": "ruddy17",
5 "width": 4,
6 "height": 2,
7 "layouts": {
8 "LAYOUT": {
9 "layout": [
10 {
11 "label": "K0",
12 "x": 0,
13 "y": 0
14 },
15 {
16 "label": "K1",
17 "x": 1,
18 "y": 0
19 },
20 {
21 "label": "K2",
22 "x": 2,
23 "y": 0
24 },
25 {
26 "label": "K3",
27 "x": 3,
28 "y": 0
29 },
30 {
31 "label": "K4",
32 "x": 0,
33 "y": 1
34 },
35 {
36 "label": "K5",
37 "x": 1,
38 "y": 1
39 },
40 {
41 "label": "K6",
42 "x": 2,
43 "y": 1
44 },
45 {
46 "label": "K7",
47 "x": 3,
48 "y": 1
49 }
50 ]
51 }
52 }
53}
diff --git a/keyboards/geekboards/macropad_v2/keymaps/default/keymap.c b/keyboards/geekboards/macropad_v2/keymaps/default/keymap.c
new file mode 100644
index 000000000..26ba55e65
--- /dev/null
+++ b/keyboards/geekboards/macropad_v2/keymaps/default/keymap.c
@@ -0,0 +1,23 @@
1/* Copyright 2020 Geekboards ltd. (geekboards.ru / geekboards.de)
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16#include QMK_KEYBOARD_H
17
18const uint16_t keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
19 LAYOUT_ortho_2x4(
20 KC_1, KC_2, KC_3, KC_4,
21 KC_5, KC_6, KC_7, KC_8
22 )
23};
diff --git a/keyboards/geekboards/macropad_v2/keymaps/default/readme.md b/keyboards/geekboards/macropad_v2/keymaps/default/readme.md
new file mode 100644
index 000000000..8846bd591
--- /dev/null
+++ b/keyboards/geekboards/macropad_v2/keymaps/default/readme.md
@@ -0,0 +1 @@
# The default keymap for Geekboards Macropad v2
diff --git a/keyboards/geekboards/macropad_v2/keymaps/via/config.h b/keyboards/geekboards/macropad_v2/keymaps/via/config.h
new file mode 100644
index 000000000..9d75edbe7
--- /dev/null
+++ b/keyboards/geekboards/macropad_v2/keymaps/via/config.h
@@ -0,0 +1,2 @@
1#define DYNAMIC_KEYMAP_LAYER_COUNT 4
2#define VIA_QMK_RGBLIGHT_ENABLE
diff --git a/keyboards/geekboards/macropad_v2/keymaps/via/keymap.c b/keyboards/geekboards/macropad_v2/keymaps/via/keymap.c
new file mode 100644
index 000000000..6ca3402c3
--- /dev/null
+++ b/keyboards/geekboards/macropad_v2/keymaps/via/keymap.c
@@ -0,0 +1,83 @@
1/* Copyright 2020 Geekboards ltd. (geekboards.ru / geekboards.de)
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16#include QMK_KEYBOARD_H
17#include "string.h"
18
19bool is_alt_tab_active = false;
20uint16_t alt_tab_timer = 0;
21
22enum custom_keycodes {
23 ALT_TAB = USER00,
24};
25
26const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
27 [0] = LAYOUT_ortho_2x4(
28 LT(1, KC_MUTE), KC_VOLD, KC_VOLU, MACRO00,
29 ALT_TAB, KC_MPRV, KC_MNXT, KC_MPLY
30 ),
31 [1] = LAYOUT_ortho_2x4(
32 KC_TRNS, RGB_VAI, RGB_HUI, RGB_SPI,
33 RGB_MOD, RGB_VAD, RGB_HUD, RGB_SPD
34 ),
35 [2] = LAYOUT_ortho_2x4(
36 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
37 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
38 ),
39 [3] = LAYOUT_ortho_2x4(
40 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
41 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
42 )
43};
44
45//------------ SUPER ALTTAB ---------------
46bool process_record_user(uint16_t keycode, keyrecord_t *record) {
47 switch (keycode) {
48 case ALT_TAB:
49 if (record->event.pressed) {
50 if (!is_alt_tab_active) {
51 is_alt_tab_active = true;
52 register_code(KC_LALT);
53 }
54 alt_tab_timer = timer_read();
55 register_code(KC_TAB);
56 } else {
57 unregister_code(KC_TAB);
58 }
59 break;
60 }
61 return true;
62}
63
64void matrix_scan_user(void) {
65 if (is_alt_tab_active) {
66 if (timer_elapsed(alt_tab_timer) > 1000) {
67 unregister_code(KC_LALT);
68 is_alt_tab_active = false;
69 }
70 }
71}
72
73void keyboard_post_init_user(void) {
74 // set default macro after reset (alt-tab)
75 uint8_t get[16] = {0};
76 uint8_t zero[16] = {0};
77 dynamic_keymap_macro_get_buffer(0,16,get);
78 if(memcmp(get, zero, 16) == 0)
79 {
80 uint8_t set[] = {2, 0xe2, 2, 0xe1, 3, 0xe1, 3, 0xe2, 0};
81 dynamic_keymap_macro_set_buffer(0, 9, set);
82 }
83} \ No newline at end of file
diff --git a/keyboards/geekboards/macropad_v2/keymaps/via/readme.md b/keyboards/geekboards/macropad_v2/keymaps/via/readme.md
new file mode 100644
index 000000000..79130f4d1
--- /dev/null
+++ b/keyboards/geekboards/macropad_v2/keymaps/via/readme.md
@@ -0,0 +1,3 @@
1# Geekboards Macropad v2 - VIA layout
2
3Flash with this layout to use [VIA](https://caniusevia.com/) for customising layout.
diff --git a/keyboards/geekboards/macropad_v2/keymaps/via/rules.mk b/keyboards/geekboards/macropad_v2/keymaps/via/rules.mk
new file mode 100644
index 000000000..f2208a3b9
--- /dev/null
+++ b/keyboards/geekboards/macropad_v2/keymaps/via/rules.mk
@@ -0,0 +1,2 @@
1VIA_ENABLE = yes
2# LTO_ENABLE = yes
diff --git a/keyboards/geekboards/macropad_v2/macropad_v2.c b/keyboards/geekboards/macropad_v2/macropad_v2.c
new file mode 100644
index 000000000..df8581cc5
--- /dev/null
+++ b/keyboards/geekboards/macropad_v2/macropad_v2.c
@@ -0,0 +1,65 @@
1/* Copyright 2020 Geekboards ltd. (geekboards.ru / geekboards.de)
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16#include QMK_KEYBOARD_H
17
18#ifdef RGB_MATRIX_ENABLE
19led_config_t g_led_config = { {
20 // Key Matrix to LED Index
21 {13,19,20,26}, {6,0,38,33},
22}, {
23 // LED Index to Physical Position
24 {85,46},
25 {85,64},{67,64},{49,64},{31,64},{13,64},
26 {31,46},
27 {0,55},{0,46},{0,37},{0,27},{0,18},{0,9},
28 {31,18},
29 {13,0},{31,0},{49,0},{67,0},{85,0},
30 {85,18},{139,18},
31 {139,0},{157,0},{175,0},{193,0},{211,0},
32 {193,18},
33 {224,9},{224,18},{224,27},{224,37},{224,46},{224,55},
34 {193,46},
35 {211,64},{193,64},{175,64},{157,64},
36 {139,46},
37 {139,64},{121,64},{103,64},
38}, {
39 // LED Index to Flag, 2=backlight, 4=key
40 4,
41 2, 2, 2, 2, 2,
42 4,
43 2, 2, 2, 2, 2, 2,
44 4,
45 2, 2, 2, 2, 2,
46 4, 4,
47 2, 2, 2, 2, 2,
48 4,
49 2, 2, 2, 2, 2, 2,
50 4,
51 2, 2, 2, 2,
52 4,
53 2, 2, 2
54} };
55
56void suspend_power_down_kb(void) {
57 rgb_matrix_set_suspend_state(true);
58 suspend_power_down_user();
59}
60
61void suspend_wakeup_init_kb(void) {
62 rgb_matrix_set_suspend_state(false);
63 suspend_wakeup_init_user();
64}
65#endif
diff --git a/keyboards/geekboards/macropad_v2/macropad_v2.h b/keyboards/geekboards/macropad_v2/macropad_v2.h
new file mode 100644
index 000000000..7fe684deb
--- /dev/null
+++ b/keyboards/geekboards/macropad_v2/macropad_v2.h
@@ -0,0 +1,26 @@
1/* Copyright 2020 Geekboards ltd. (geekboards.ru / geekboards.de)
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16#pragma once
17
18#include "quantum.h"
19
20#define LAYOUT_ortho_2x4( \
21 k00, k01, k02, k03, \
22 k10, k11, k12, k13 \
23) { \
24 { k00, k01, k02, k03 }, \
25 { k10, k11, k12, k13 } \
26}
diff --git a/keyboards/geekboards/macropad_v2/mcuconf.h b/keyboards/geekboards/macropad_v2/mcuconf.h
new file mode 100644
index 000000000..271bd570b
--- /dev/null
+++ b/keyboards/geekboards/macropad_v2/mcuconf.h
@@ -0,0 +1,178 @@
1/*
2 ChibiOS - Copyright (C) 2006..2015 Giovanni Di Sirio
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15*/
16
17#ifndef _MCUCONF_H_
18#define _MCUCONF_H_
19
20/*
21 * STM32F0xx drivers configuration.
22 * The following settings override the default settings present in
23 * the various device driver implementation headers.
24 * Note that the settings for each driver only have effect if the whole
25 * driver is enabled in halconf.h.
26 *
27 * IRQ priorities:
28 * 3...0 Lowest...Highest.
29 *
30 * DMA priorities:
31 * 0...3 Lowest...Highest.
32 */
33
34#define STM32F0xx_MCUCONF
35// #define STM32F070xB
36
37/*
38 * HAL driver system settings.
39 */
40#define STM32_NO_INIT FALSE
41#define STM32_PVD_ENABLE FALSE
42#define STM32_PLS STM32_PLS_LEV0
43#define STM32_HSI_ENABLED TRUE
44#define STM32_HSI14_ENABLED TRUE
45#define STM32_HSI48_ENABLED FALSE
46#define STM32_LSI_ENABLED TRUE
47#define STM32_HSE_ENABLED FALSE
48#define STM32_LSE_ENABLED FALSE
49#define STM32_SW STM32_SW_PLL
50#define STM32_PLLSRC STM32_PLLSRC_HSI_DIV2
51#define STM32_PREDIV_VALUE 1
52#define STM32_PLLMUL_VALUE 12
53#define STM32_HPRE STM32_HPRE_DIV1
54#define STM32_PPRE STM32_PPRE_DIV1
55#define STM32_ADCSW STM32_ADCSW_HSI14
56#define STM32_ADCPRE STM32_ADCPRE_DIV4
57#define STM32_MCOSEL STM32_MCOSEL_NOCLOCK
58#define STM32_ADCPRE STM32_ADCPRE_DIV4
59#define STM32_ADCSW STM32_ADCSW_HSI14
60#define STM32_USBSW STM32_USBSW_HSI48
61#define STM32_CECSW STM32_CECSW_HSI
62#define STM32_I2C1SW STM32_I2C1SW_HSI
63#define STM32_USART1SW STM32_USART1SW_PCLK
64#define STM32_RTCSEL STM32_RTCSEL_LSI
65
66/*
67 * ADC driver system settings.
68 */
69#define STM32_ADC_USE_ADC1 FALSE
70#define STM32_ADC_ADC1_DMA_PRIORITY 2
71#define STM32_ADC_IRQ_PRIORITY 2
72#define STM32_ADC_ADC1_DMA_IRQ_PRIORITY 2
73
74/*
75 * EXT driver system settings.
76 */
77#define STM32_EXT_EXTI0_1_IRQ_PRIORITY 3
78#define STM32_EXT_EXTI2_3_IRQ_PRIORITY 3
79#define STM32_EXT_EXTI4_15_IRQ_PRIORITY 3
80#define STM32_EXT_EXTI16_IRQ_PRIORITY 3
81#define STM32_EXT_EXTI17_IRQ_PRIORITY 3
82
83/*
84 * GPT driver system settings.
85 */
86#define STM32_GPT_USE_TIM1 FALSE
87#define STM32_GPT_USE_TIM2 FALSE
88#define STM32_GPT_USE_TIM3 FALSE
89#define STM32_GPT_USE_TIM14 FALSE
90#define STM32_GPT_TIM1_IRQ_PRIORITY 2
91#define STM32_GPT_TIM2_IRQ_PRIORITY 2
92#define STM32_GPT_TIM3_IRQ_PRIORITY 2
93#define STM32_GPT_TIM14_IRQ_PRIORITY 2
94
95/*
96 * I2C driver system settings.
97 */
98#define STM32_I2C_USE_I2C1 TRUE
99#define STM32_I2C_USE_I2C2 FALSE
100#define STM32_I2C_BUSY_TIMEOUT 50
101#define STM32_I2C_I2C1_IRQ_PRIORITY 3
102#define STM32_I2C_I2C2_IRQ_PRIORITY 3
103#define STM32_I2C_USE_DMA TRUE
104#define STM32_I2C_I2C1_DMA_PRIORITY 1
105#define STM32_I2C_I2C2_DMA_PRIORITY 1
106#define STM32_I2C_I2C1_RX_DMA_STREAM STM32_DMA_STREAM_ID(1, 7)
107#define STM32_I2C_I2C1_TX_DMA_STREAM STM32_DMA_STREAM_ID(1, 6)
108#define STM32_I2C_DMA_ERROR_HOOK(i2cp) osalSysHalt("DMA failure")
109
110/*
111 * ICU driver system settings.
112 */
113#define STM32_ICU_USE_TIM1 FALSE
114#define STM32_ICU_USE_TIM2 FALSE
115#define STM32_ICU_USE_TIM3 FALSE
116#define STM32_ICU_TIM1_IRQ_PRIORITY 3
117#define STM32_ICU_TIM2_IRQ_PRIORITY 3
118#define STM32_ICU_TIM3_IRQ_PRIORITY 3
119
120/*
121 * PWM driver system settings.
122 */
123#define STM32_PWM_USE_ADVANCED FALSE
124#define STM32_PWM_USE_TIM1 FALSE
125#define STM32_PWM_USE_TIM2 FALSE
126#define STM32_PWM_USE_TIM3 TRUE
127#define STM32_PWM_TIM1_IRQ_PRIORITY 3
128#define STM32_PWM_TIM2_IRQ_PRIORITY 3
129#define STM32_PWM_TIM3_IRQ_PRIORITY 3
130
131/*
132 * SERIAL driver system settings.
133 */
134#define STM32_SERIAL_USE_USART1 FALSE
135#define STM32_SERIAL_USE_USART2 FALSE
136#define STM32_SERIAL_USART1_PRIORITY 3
137#define STM32_SERIAL_USART2_PRIORITY 3
138
139/*
140 * SPI driver system settings.
141 */
142#define STM32_SPI_USE_SPI1 TRUE
143#define STM32_SPI_USE_SPI2 FALSE
144#define STM32_SPI_SPI1_DMA_PRIORITY 1
145#define STM32_SPI_SPI2_DMA_PRIORITY 1
146#define STM32_SPI_SPI1_IRQ_PRIORITY 2
147#define STM32_SPI_SPI2_IRQ_PRIORITY 2
148#define STM32_SPI_SPI1_RX_DMA_STREAM STM32_DMA_STREAM_ID(1, 2)
149#define STM32_SPI_SPI1_TX_DMA_STREAM STM32_DMA_STREAM_ID(1, 3)
150// #define STM32_SPI_SPI2_RX_DMA_STREAM STM32_DMA_STREAM_ID(1, 4)
151// #define STM32_SPI_SPI2_TX_DMA_STREAM STM32_DMA_STREAM_ID(1, 5)
152#define STM32_SPI_DMA_ERROR_HOOK(spip) osalSysHalt("DMA failure")
153
154/*
155 * ST driver system settings.
156 */
157#define STM32_ST_IRQ_PRIORITY 2
158#define STM32_ST_USE_TIMER 2
159
160/*
161 * UART driver system settings.
162 */
163#define STM32_UART_USE_USART1 FALSE
164#define STM32_UART_USE_USART2 FALSE
165#define STM32_UART_USART1_IRQ_PRIORITY 3
166#define STM32_UART_USART2_IRQ_PRIORITY 3
167#define STM32_UART_USART1_DMA_PRIORITY 0
168#define STM32_UART_USART2_DMA_PRIORITY 0
169#define STM32_UART_DMA_ERROR_HOOK(uartp) osalSysHalt("DMA failure")
170
171/*
172 * USB driver system settings.
173 */
174#define STM32_USB_USE_USB1 TRUE
175#define STM32_USB_LOW_POWER_ON_SUSPEND FALSE
176#define STM32_USB_USB1_LP_IRQ_PRIORITY 3
177
178#endif /* _MCUCONF_H_ */
diff --git a/keyboards/geekboards/macropad_v2/readme.md b/keyboards/geekboards/macropad_v2/readme.md
new file mode 100644
index 000000000..45bb7df6f
--- /dev/null
+++ b/keyboards/geekboards/macropad_v2/readme.md
@@ -0,0 +1,32 @@
1# geekboards/macropad_v2
2
3![Geekboards Macropad v2](https://github.com/ruddy17/my_files/blob/main/macropad_v2.jpg)
4
58-keys macropad with CNC aluminium case, RGB LEDs for both backlight and switches, hot-swap connectors.
6
7Keyboard Maintainer: [ruddy17](https://github.com/ruddy17)
8Hardware Supported: Geekboards Macropad v2, STM32F072C8T6
9Hardware Availability: https://geekboards.ru
10
11Compile instruction for this keyboard (after setting up your build environment):
12
13 make geekboards/macropad_v2:via
14
15## Update firmware
16### Enter bootloader
171. Press and hold leftmost button on top row (where ESC usually is)
182. Plug in USB
193. Keep holding the button for 3 more seconds
204. Release the button
21
22Alternatively:
231. Remove bottom cover
241. On the pcb short together two contacts labeled BOOT0
252. Plug in USB
263. Release BOOT0
27
28### Flash
29
30 make geekboards/macropad_v2:via:flash
31
32See 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/geekboards/macropad_v2/rules.mk b/keyboards/geekboards/macropad_v2/rules.mk
new file mode 100644
index 000000000..73575b673
--- /dev/null
+++ b/keyboards/geekboards/macropad_v2/rules.mk
@@ -0,0 +1,25 @@
1# MCU name
2MCU = STM32F072
3
4# Build Options
5# change yes to no to disable
6#
7BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
8MOUSEKEY_ENABLE = yes # Mouse keys
9EXTRAKEY_ENABLE = yes # Audio control and System control
10CONSOLE_ENABLE = no # Console for debug
11COMMAND_ENABLE = no # Commands for debug and configuration
12# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
13SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
14# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
15NKRO_ENABLE = yes # USB Nkey Rollover
16BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
17RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
18BLUETOOTH_ENABLE = no # Enable Bluetooth
19AUDIO_ENABLE = no # Audio output
20RGB_MATRIX_ENABLE = yes
21RGB_MATRIX_DRIVER = WS2812
22WS2812_DRIVER = pwm
23
24# Enter lower-power sleep mode when on the ChibiOS idle thread
25OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
diff --git a/keyboards/hidtech/bastyl/bastyl.c b/keyboards/hidtech/bastyl/bastyl.c
new file mode 100644
index 000000000..637af1ffe
--- /dev/null
+++ b/keyboards/hidtech/bastyl/bastyl.c
@@ -0,0 +1,19 @@
1/*
2 * Copyright 2020 Quentin LEBASTARD <qlebastard@gmail.com>
3 * Copyright 2020 Anthony MARIN <anthony@hidtech.ca>
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19#include "bastyl.h"
diff --git a/keyboards/hidtech/bastyl/bastyl.h b/keyboards/hidtech/bastyl/bastyl.h
new file mode 100644
index 000000000..5bacb8bb0
--- /dev/null
+++ b/keyboards/hidtech/bastyl/bastyl.h
@@ -0,0 +1,43 @@
1/*
2 * Copyright 2020 Quentin LEBASTARD <qlebastard@gmail.com>
3 * Copyright 2020 Anthony MARIN <anthony@hidtech.ca>
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19
20#pragma once
21#include "quantum.h"
22
23// SWITCHED 91 and 95 - check on left ?
24#define LAYOUT( \
25 k00, k01, k02, k03, k04, k05, k55, k54, k53, k52, k51, k50, \
26 k10, k11, k12, k13, k14, k15, k65, k64, k63, k62, k61, k60, \
27 k20, k21, k22, k23, k24, k25, k75, k74, k73, k72, k71, k70, \
28 k30, k31, k32, k33, k34, k35, k85, k84, k83, k82, k81, k80, \
29 k43, k44, k41, k91, k94, k93, \
30 k45, k42, k92, k95 \
31)\
32{\
33 { k00, k01, k02, k03, k04, k05 }, \
34 { k10, k11, k12, k13, k14, k15 }, \
35 { k20, k21, k22, k23, k24, k25 }, \
36 { k30, k31, k32, k33, k34, k35 }, \
37 { KC_NO, k41, k42, k43, k44, k45 }, \
38 { k50, k51, k52, k53, k54, k55 }, \
39 { k60, k61, k62, k63, k64, k65 }, \
40 { k70, k71, k72, k73, k74, k75 }, \
41 { k80, k81, k82, k83, k84, k85 }, \
42 { KC_NO, k91, k92, k93, k94, k95 }, \
43}
diff --git a/keyboards/hidtech/bastyl/config.h b/keyboards/hidtech/bastyl/config.h
new file mode 100644
index 000000000..ed33d8451
--- /dev/null
+++ b/keyboards/hidtech/bastyl/config.h
@@ -0,0 +1,40 @@
1/*
2 * Copyright 2020 Quentin LEBASTARD <qlebastard@gmail.com>
3 * Copyright 2020 Anthony MARIN <anthony@hidtech.ca>
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19#pragma once
20#include "config_common.h"
21#define VENDOR_ID 0xA76A
22#define PRODUCT_ID 0x1827
23#define DEVICE_VER 0x0001
24#define MANUFACTURER HID Technologies
25#define PRODUCT Bastyl
26
27#define MATRIX_ROWS 10
28#define MATRIX_COLS 6
29#define DIODE_DIRECTION ROW2COL
30#define MATRIX_ROW_PINS { D7, B5, F7, F6, B6 }
31#define MATRIX_COL_PINS { B4, E6, C6, B1, B3, B2 }
32#define RGB_DI_PIN D2
33#define RGBLED_NUM 38
34#define RGBLIGHT_SPLIT
35#define RGBLIGHT_ANIMATIONS
36#define DEBOUNCE 5
37#define SOFT_SERIAL_PIN D0
38#define LOCKING_SUPPORT_ENABLE
39#define LOCKING_RESYNC_ENABLE
40#define MASTER_RIGHT
diff --git a/keyboards/hidtech/bastyl/info.json b/keyboards/hidtech/bastyl/info.json
new file mode 100644
index 000000000..e8115794e
--- /dev/null
+++ b/keyboards/hidtech/bastyl/info.json
@@ -0,0 +1,71 @@
1{
2 "keyboard_name": "Bastyl",
3 "url": "https://www.hidtech.ca/?product=bastyl-black",
4 "maintainer": "HID-Technologies",
5 "width": 17,
6 "height": 8,
7 "layouts": {
8 "LAYOUT": {
9 "layout": [
10 {"label":"L00", "x":0, "y":0},
11 {"label":"L01", "x":1, "y":0},
12 {"label":"L02", "x":2, "y":0},
13 {"label":"L03", "x":3, "y":0},
14 {"label":"L04", "x":4, "y":0},
15 {"label":"L05", "x":5, "y":0},
16 {"label":"R00", "x":11, "y":0},
17 {"label":"R01", "x":12, "y":0},
18 {"label":"R02", "x":13, "y":0},
19 {"label":"R03", "x":14, "y":0},
20 {"label":"R04", "x":15, "y":0},
21 {"label":"R05", "x":16, "y":0},
22 {"label":"L10", "x":0, "y":1},
23 {"label":"L11", "x":1, "y":1},
24 {"label":"L12", "x":2, "y":1},
25 {"label":"L13", "x":3, "y":1},
26 {"label":"L14", "x":4, "y":1},
27 {"label":"L15", "x":5, "y":1},
28 {"label":"R10", "x":11, "y":1},
29 {"label":"R11", "x":12, "y":1},
30 {"label":"R12", "x":13, "y":1},
31 {"label":"R13", "x":14, "y":1},
32 {"label":"R14", "x":15, "y":1},
33 {"label":"R15", "x":16, "y":1},
34 {"label":"L20", "x":0, "y":2},
35 {"label":"L21", "x":1, "y":2},
36 {"label":"L22", "x":2, "y":2},
37 {"label":"L23", "x":3, "y":2},
38 {"label":"L24", "x":4, "y":2},
39 {"label":"L25", "x":5, "y":2},
40 {"label":"R20", "x":11, "y":2},
41 {"label":"R21", "x":12, "y":2},
42 {"label":"R22", "x":13, "y":2},
43 {"label":"R23", "x":14, "y":2},
44 {"label":"R24", "x":15, "y":2},
45 {"label":"R25", "x":16, "y":2},
46 {"label":"L30", "x":0, "y":3},
47 {"label":"L31", "x":1, "y":3},
48 {"label":"L32", "x":2, "y":3},
49 {"label":"L33", "x":3, "y":3},
50 {"label":"L34", "x":4, "y":3},
51 {"label":"L35", "x":5, "y":3},
52 {"label":"R30", "x":11, "y":3},
53 {"label":"R31", "x":12, "y":3},
54 {"label":"R32", "x":13, "y":3},
55 {"label":"R33", "x":14, "y":3},
56 {"label":"R34", "x":15, "y":3},
57 {"label":"R35", "x":16, "y":3},
58 {"label":"L43", "x":5, "y":4},
59 {"label":"L44", "x":6, "y":4},
60 {"label":"L45", "x":7, "y":4},
61 {"label":"R40", "x":9, "y":4},
62 {"label":"R41", "x":10, "y":4},
63 {"label":"R40", "x":11, "y":4},
64 {"label":"L52", "x":6, "y":5},
65 {"label":"L53", "x":7, "y":5},
66 {"label":"R52", "x":9, "y":5},
67 {"label":"R53", "x":10, "y":5}
68 ]
69 }
70 }
71}
diff --git a/keyboards/hidtech/bastyl/keymaps/default/keymap.c b/keyboards/hidtech/bastyl/keymaps/default/keymap.c
new file mode 100644
index 000000000..d6d291af5
--- /dev/null
+++ b/keyboards/hidtech/bastyl/keymaps/default/keymap.c
@@ -0,0 +1,61 @@
1/*
2 * Copyright 2020 Quentin LEBASTARD <qlebastard@gmail.com>
3 * Copyright 2020 Anthony MARIN <anthony@hidtech.ca>
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19#include QMK_KEYBOARD_H
20
21const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
22
23 [0] = LAYOUT(
24 KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC,
25//-------------------------------------------------//-----------------------------------------------------------//
26 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_MINS,
27//-------------------------------------------------//-----------------------------------------------------------//
28 KC_LSFT, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
29//-------------------------------------------------//-----------------------------------------------------------//
30 KC_LCTL, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_BSLS,
31//-------------------------------------------------//-----------------------------------------------------------//
32 KC_LCTL, KC_SPC, MO(1), MO(2), KC_ENT, KC_RGUI,
33 KC_HOME, KC_BSPC, KC_DEL, KC_RALT
34 ),
35
36 [1] = LAYOUT(
37 KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_DEL,
38//---------------------------------------------------------//-----------------------------------------------------------//
39 RESET, _______, _______, _______, _______, KC_LBRC, KC_RBRC, KC_P7, KC_P8, KC_P9, _______, KC_PLUS,
40//---------------------------------------------------------//-----------------------------------------------------------//
41 _______, KC_HOME, KC_PGUP, KC_PGDN, KC_END, KC_LPRN, KC_RPRN, KC_P4, KC_P5, KC_P6, KC_MINS, KC_PIPE,
42//---------------------------------------------------------//-----------------------------------------------------------//
43 _______, _______, _______, _______, _______, _______, _______, KC_P1, KC_P2, KC_P3, KC_EQL, KC_UNDS,
44//---------------------------------------------------------//-----------------------------------------------------------//
45 KC_LCTL, KC_HOME, KC_TRNS, KC_TRNS, KC_RALT, KC_RGUI,
46 KC_SPC, KC_BSPC, KC_RCTL, KC_ENT
47 ),
48
49 [2] = LAYOUT(
50 KC_F12, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11,
51//---------------------------------------------------------//--------------------------------------------------------------//
52 _______, _______, RGB_RMOD, RGB_TOG, RGB_MOD, KC_LBRC, KC_RBRC, _______, KC_NLCK, KC_INS, KC_SLCK, KC_MUTE,
53//---------------------------------------------------------//--------------------------------------------------------------//
54 _______, KC_LEFT, KC_UP, KC_DOWN, KC_RGHT, KC_LPRN, KC_RPRN, KC_MPRV, KC_MPLY, KC_MNXT, _______, KC_VOLU,
55//---------------------------------------------------------//--------------------------------------------------------------//
56 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_VOLD,
57//---------------------------------------------------------//--------------------------------------------------------------//
58 KC_LCTL, KC_HOME, KC_TRNS, KC_TRNS, KC_RALT, RESET,
59 KC_SPC, KC_BSPC, KC_RCTL, KC_ENT
60 ),
61};
diff --git a/keyboards/hidtech/bastyl/readme.md b/keyboards/hidtech/bastyl/readme.md
new file mode 100644
index 000000000..f21f030a8
--- /dev/null
+++ b/keyboards/hidtech/bastyl/readme.md
@@ -0,0 +1,22 @@
1# Bastyl
2
3A split ergonomic keyboard.
4
5* Keyboard Maintainer: [HID Technologies](https://github.com/HID-Technologies)
6* Hardware Supported: elite-C V4
7* Hardware Availability: [Hidtech.ca](https://www.hidtech.ca/)
8
9Make example for this keyboard (after setting up your build environment):
10
11 make hidtech/bastyl:default
12
13See 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).
14
15See the [keyboard build instructions](https://hid-technologies.github.io/Bastyl-DIY-instructions/)
16
17
18## Important information regarding the reset
19
20If you modify this firmware, make sure to always have a RESET key that can be triggered using only the master side ! This way you ensure that you can always flash the keyboard, even if you mess up.
21
22Otherwise if you're stuck, open the case and reset manually by shorting Gnd and Rst, or pressing the RST button.
diff --git a/keyboards/hidtech/bastyl/rules.mk b/keyboards/hidtech/bastyl/rules.mk
new file mode 100644
index 000000000..cc88208e3
--- /dev/null
+++ b/keyboards/hidtech/bastyl/rules.mk
@@ -0,0 +1,23 @@
1# MCU name
2MCU = atmega32u4
3
4# Bootloader selection
5BOOTLOADER = atmel-dfu
6
7# Build Options
8# change yes to no to disable
9#
10BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
11MOUSEKEY_ENABLE = yes # Mouse keys
12EXTRAKEY_ENABLE = yes # Audio control and System control
13CONSOLE_ENABLE = no # Console for debug
14COMMAND_ENABLE = no # Commands for debug and configuration
15# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
16SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
17# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
18NKRO_ENABLE = no # USB Nkey Rollover
19BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
20RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
21BLUETOOTH_ENABLE = no # Enable Bluetooth
22AUDIO_ENABLE = no # Audio output
23SPLIT_KEYBOARD = yes
diff --git a/keyboards/kb_elmo/aek2_usb/config.h b/keyboards/kb_elmo/aek2_usb/config.h
index f7b347f1d..e0fc83f17 100644
--- a/keyboards/kb_elmo/aek2_usb/config.h
+++ b/keyboards/kb_elmo/aek2_usb/config.h
@@ -47,3 +47,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
47#define LOCKING_SUPPORT_ENABLE 47#define LOCKING_SUPPORT_ENABLE
48/* Locking resynchronize hack */ 48/* Locking resynchronize hack */
49#define LOCKING_RESYNC_ENABLE 49#define LOCKING_RESYNC_ENABLE
50
51/* reduce VIA layer count because of EEPROM size */
52#define DYNAMIC_KEYMAP_LAYER_COUNT 2
diff --git a/keyboards/kb_elmo/aek2_usb/keymaps/via/keymap.c b/keyboards/kb_elmo/aek2_usb/keymaps/via/keymap.c
new file mode 100644
index 000000000..c5ff48e23
--- /dev/null
+++ b/keyboards/kb_elmo/aek2_usb/keymaps/via/keymap.c
@@ -0,0 +1,36 @@
1/* Copyright 2020 kb-elmo<mail@elmo.space>
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16#include QMK_KEYBOARD_H
17
18const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
19 /* Base */
20 [0] = LAYOUT(
21 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_PSCR, KC_SLCK, KC_PAUS, KC_MPLY,
22 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, KC_INS, KC_HOME, KC_PGUP, KC_NLCK, KC_PEQL, KC_PSLS, KC_PAST,
23 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, KC_DEL, KC_END, KC_PGDN, KC_P7, KC_P8, KC_P9, KC_PMNS,
24 KC_LCAP, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_P4, KC_P5, KC_P6, KC_PPLS,
25 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_UP, KC_P1, KC_P2, KC_P3,
26 KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT, KC_P0, KC_PDOT, KC_PENT
27 ),
28 [1] = LAYOUT(
29 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
30 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
31 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
32 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
33 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_VOLD, KC_VOLU, KC_MUTE, KC_MPRV, KC_MNXT, KC_MPLY, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
34 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
35 )
36};
diff --git a/keyboards/kb_elmo/aek2_usb/keymaps/via/rules.mk b/keyboards/kb_elmo/aek2_usb/keymaps/via/rules.mk
new file mode 100644
index 000000000..1e5b99807
--- /dev/null
+++ b/keyboards/kb_elmo/aek2_usb/keymaps/via/rules.mk
@@ -0,0 +1 @@
VIA_ENABLE = yes
diff --git a/keyboards/mechwild/bde/lefty/config.h b/keyboards/mechwild/bde/lefty/config.h
new file mode 100644
index 000000000..082295ef7
--- /dev/null
+++ b/keyboards/mechwild/bde/lefty/config.h
@@ -0,0 +1,54 @@
1/* Copyright 2020 Kyle McCreery
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17
18#pragma once
19
20#include "config_common.h"
21
22/* USB Device descriptor parameter */
23#define VENDOR_ID 0x6D77 // mw = "MechWild"
24#define PRODUCT_ID 0x1701
25#define DEVICE_VER 0x0203
26#define MANUFACTURER MechWild
27#define PRODUCT BDE Lefty
28
29/* key matrix size */
30#define MATRIX_ROWS 3
31#define MATRIX_COLS 14
32
33/* key matrix pins */
34#define MATRIX_ROW_PINS { D1, D7, D3}
35#define MATRIX_COL_PINS { F7, B1, B6, B2, B3, F6, F5, F4, D0, D4, C6, E6, B5, B4}
36#define UNUSED_PINS
37
38/* COL2ROW or ROW2COL */
39#define DIODE_DIRECTION ROW2COL
40
41/* If RGBLIGHT_ENABLE is set to yes in the rules, ensure the RGBLED_NUM is accurate for how many you have attached. */
42#define RGB_DI_PIN D2
43#define RGBLED_NUM 16
44#define RGBLIGHT_ANIMATIONS
45
46/* Set 0 if debouncing isn't needed */
47#define DEBOUNCE 5
48
49/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
50#define LOCKING_SUPPORT_ENABLE
51
52/* Locking resynchronize hack */
53#define LOCKING_RESYNC_ENABLE
54
diff --git a/keyboards/mechwild/bde/lefty/info.json b/keyboards/mechwild/bde/lefty/info.json
new file mode 100644
index 000000000..1ada76e78
--- /dev/null
+++ b/keyboards/mechwild/bde/lefty/info.json
@@ -0,0 +1,16 @@
1{
2 "keyboard_name": "MechWild BDE Lefty",
3 "url": "mechwild.com",
4 "maintainer": "kylemccreery",
5 "width": 14,
6 "height": 3,
7 "layouts": {
8 "LAYOUT": {
9 "layout": [
10 {"label":"7", "x":0, "y":0}, {"label":"8", "x":1, "y":0}, {"label":"9", "x":2, "y":0}, {"label":"0", "x":3, "y":0}, {"label":"Q", "x":4, "y":0}, {"label":"W", "x":5, "y":0}, {"label":"E", "x":6, "y":0}, {"label":"R", "x":7, "y":0}, {"label":"T", "x":8, "y":0}, {"label":"Y", "x":9, "y":0}, {"label":"U", "x":10, "y":0}, {"label":"I", "x":11, "y":0}, {"label":"O", "x":12, "y":0}, {"label":"P", "x":13, "y":0},
11 {"label":"4", "x":0, "y":1}, {"label":"5", "x":1, "y":1}, {"label":"6", "x":2, "y":1}, {"label":"Enter", "x":3, "y":1, "h":2}, {"label":"A", "x":4, "y":1}, {"label":"S", "x":5, "y":1}, {"label":"D", "x":6, "y":1}, {"label":"F", "x":7, "y":1}, {"label":"G", "x":8, "y":1}, {"label":"H", "x":9, "y":1}, {"label":"J", "x":10, "y":1}, {"label":"K", "x":11, "y":1}, {"label":"L", "x":12, "y":1}, {"label":"ESC", "x":13, "y":1},
12 {"label":"1", "x":0, "y":2}, {"label":"2", "x":1, "y":2}, {"label":"3", "x":2, "y":2}, {"label":"Z", "x":4, "y":2}, {"label":"X", "x":5, "y":2}, {"label":"C", "x":6, "y":2}, {"label":"V", "x":7, "y":2}, {"label":"BS", "x":8, "y":2}, {"label":"", "x":9, "y":2}, {"label":"B", "x":10, "y":2}, {"label":"N", "x":11, "y":2}, {"label":"M", "x":12, "y":2}, {"label":"ENT", "x":13, "y":2}
13 ]
14 }
15 }
16}
diff --git a/keyboards/mechwild/bde/lefty/keymaps/default/config.h b/keyboards/mechwild/bde/lefty/keymaps/default/config.h
new file mode 100644
index 000000000..80e8e2e01
--- /dev/null
+++ b/keyboards/mechwild/bde/lefty/keymaps/default/config.h
@@ -0,0 +1,23 @@
1/* Copyright 2020 Kyle McCreery
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17
18/* Making it so you need to hold the modifier and other key for the time together, helps not accidentally hit activate the hold functions of bottom row*/
19#define IGNORE_MOD_TAP_INTERRUPT
20
21/* Setting tap term, helps not accidentally hit activate the hold functions of bottom row*/
22#define TAPPING_TERM 250
23
diff --git a/keyboards/mechwild/bde/lefty/keymaps/default/keymap.c b/keyboards/mechwild/bde/lefty/keymaps/default/keymap.c
new file mode 100644
index 000000000..3501a5e35
--- /dev/null
+++ b/keyboards/mechwild/bde/lefty/keymaps/default/keymap.c
@@ -0,0 +1,55 @@
1/* Copyright 2020 Kyle McCreery
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17
18#include QMK_KEYBOARD_H
19
20#define FN1_SPC LT(1, KC_SPC)
21#define FN2_BSPC LT(2, KC_BSPC)
22#define FN3_B LT(3, KC_B)
23#define CTL_Z CTL_T(KC_Z)
24#define ALT_X ALT_T(KC_X)
25#define ALT_N ALGR_T(KC_N)
26#define CTL_M RCTL_T(KC_M)
27#define SFT_ENT RSFT_T(KC_ENT)
28#define WIN_C LGUI_T(KC_C)
29
30const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
31 [0] = LAYOUT(
32 KC_7, KC_8, KC_9, KC_0, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P,
33 KC_4, KC_5, KC_6, SFT_ENT, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_ESC,
34 KC_1, KC_2, KC_3, CTL_Z, ALT_X, WIN_C, KC_V, FN2_BSPC, FN1_SPC, FN3_B, ALT_N, CTL_M, SFT_ENT
35 ),
36
37 [1] = LAYOUT(
38 KC_F7, KC_F8, KC_F9, KC_F10, _______, _______, _______, RESET, _______, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS,
39 KC_F4, KC_F5, KC_F6, KC_TAB, _______, _______, _______, _______, _______, KC_COMM, KC_DOT, KC_SLSH, KC_SCLN, KC_QUOT,
40 KC_F1, KC_F2, KC_F3, _______, _______, KC_LGUI, _______, KC_DEL, _______, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT
41 ),
42
43 [2] = LAYOUT(
44 _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE,
45 _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_LABK, KC_RABK, KC_QUES, KC_COLN, KC_DQUO,
46 KC_F11, KC_F12, _______, _______, _______, _______, _______, _______, KC_PSCR, KC_HOME, KC_PGDN, KC_PGUP, KC_END
47 ),
48
49 [3] = LAYOUT(
50 RGB_M_G, RGB_M_T, _______, RGB_M_P, RGB_HUI, RGB_SAI, RGB_VAI, RGB_MOD, _______, _______, _______, _______, _______, _______,
51 RGB_M_SN, RGB_M_K, RGB_M_X, RGB_TOG, RGB_HUD, RGB_SAD, RGB_VAD, RGB_RMOD, _______, _______, _______, _______, _______, _______,
52 RGB_M_B, RGB_M_R, RGB_M_SW, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
53 )
54
55};
diff --git a/keyboards/mechwild/bde/lefty/keymaps/fancy/config.h b/keyboards/mechwild/bde/lefty/keymaps/fancy/config.h
new file mode 100644
index 000000000..8476c8ccd
--- /dev/null
+++ b/keyboards/mechwild/bde/lefty/keymaps/fancy/config.h
@@ -0,0 +1,22 @@
1/* Copyright 2020 Kyle McCreery
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17#pragma once
18/* Making it so you need to hold the modifier and other key for the time together, helps not accidentally hit activate the hold functions of bottom row*/
19#define IGNORE_MOD_TAP_INTERRUPT
20
21/* Setting tap term, helps not accidentally hit activate the hold functions of bottom row*/
22#define TAPPING_TERM 250
diff --git a/keyboards/mechwild/bde/lefty/keymaps/fancy/keymap.c b/keyboards/mechwild/bde/lefty/keymaps/fancy/keymap.c
new file mode 100644
index 000000000..940575ce1
--- /dev/null
+++ b/keyboards/mechwild/bde/lefty/keymaps/fancy/keymap.c
@@ -0,0 +1,121 @@
1/* Copyright 2020 Kyle McCreery
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17
18#include QMK_KEYBOARD_H
19
20
21#define FN1_SPC LT(1, KC_SPC)
22#define FN2_BSPC LT(2, KC_BSPC)
23#define FN3_B LT(3, KC_B)
24#define CTL_Z CTL_T(KC_Z)
25#define ALT_X ALT_T(KC_X)
26#define ALT_N ALGR_T(KC_N)
27#define CTL_M RCTL_T(KC_M)
28#define SFT_ENT RSFT_T(KC_ENT)
29#define WIN_C LGUI_T(KC_C)
30
31typedef struct {
32 bool is_press_action;
33 uint8_t state;
34} tap;
35
36enum {
37 SINGLE_TAP = 1,
38 SINGLE_HOLD,
39 DOUBLE_TAP
40};
41
42// Tap dance enums
43enum {
44 left_enter,
45};
46
47uint8_t cur_dance(qk_tap_dance_state_t *state);
48void left_enter_finished(qk_tap_dance_state_t *state, void *user_data);
49void left_enter_reset(qk_tap_dance_state_t *state, void *user_data);
50
51
52
53const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
54
55 [0] = LAYOUT(
56 KC_7, KC_8, KC_9, KC_0, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P,
57 KC_4, KC_5, KC_6, TD(left_enter), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_ESC,
58 KC_1, KC_2, KC_3, CTL_Z, ALT_X, WIN_C, KC_V, FN2_BSPC, FN1_SPC, FN3_B, ALT_N, CTL_M, SFT_ENT
59 ),
60
61 [1] = LAYOUT(
62 KC_F7, KC_F8, KC_F9, KC_F10, _______, _______, _______, RESET, _______, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS,
63 KC_F4, KC_F5, KC_F6, KC_TAB, _______, _______, _______, _______, _______, KC_COMM, KC_DOT, KC_SLSH, KC_SCLN, KC_QUOT,
64 KC_F1, KC_F2, KC_F3, _______, _______, KC_LGUI, _______, KC_DEL, _______, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT
65 ),
66
67 [2] = LAYOUT(
68 _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE,
69 _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_LABK, KC_RABK, KC_QUES, KC_COLN, KC_DQUO,
70 KC_F11, KC_F12, _______, _______, _______, _______, _______, _______, KC_PSCR, KC_HOME, KC_PGDN, KC_PGUP, KC_END
71 ),
72
73[3] = LAYOUT(
74 RGB_M_G, RGB_M_T, _______, RGB_M_P, RGB_HUI, RGB_SAI, RGB_VAI, RGB_MOD, _______, _______, _______, _______, _______, _______,
75 RGB_M_SN, RGB_M_K, RGB_M_X, RGB_TOG, RGB_HUD, RGB_SAD, RGB_VAD, RGB_RMOD, _______, _______, _______, _______, _______, _______,
76 RGB_M_B, RGB_M_R, RGB_M_SW, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
77 )
78
79};
80
81
82uint8_t cur_dance(qk_tap_dance_state_t *state) {
83 if (state->count == 1) {
84 if (state->interrupted || !state->pressed) return SINGLE_TAP;
85 // Key has not been interrupted, but the key is still held. Means you want to send a 'HOLD'.
86 else return SINGLE_HOLD;
87 } else return DOUBLE_TAP;
88 //} else if (state->count >= 2) {
89 // return DOUBLE_TAP;
90 //}else return 8; // Magic number. At some point this method will expand to work for more presses
91}
92
93static tap left_enter_tap_state = {
94 .is_press_action = true,
95 .state = 0
96};
97
98void left_enter_finished(qk_tap_dance_state_t *state, void *user_data) {
99 left_enter_tap_state.state = cur_dance(state);
100 switch (left_enter_tap_state.state) {
101 //case SINGLE_TAP: register_code(KC_ENT); break;
102 case SINGLE_HOLD: register_code(KC_LSFT); break;
103 case DOUBLE_TAP: register_code(KC_ENT); break;
104 }
105}
106
107void left_enter_reset(qk_tap_dance_state_t *state, void *user_data) {
108 switch (left_enter_tap_state.state) {
109 //case SINGLE_TAP: unregister_code(KC_ENT); break;
110 case SINGLE_HOLD: unregister_code(KC_LSFT); break;
111 case DOUBLE_TAP: unregister_code(KC_ENT); break;
112 }
113 left_enter_tap_state.state = 0;
114}
115
116qk_tap_dance_action_t tap_dance_actions[] = {
117 [left_enter] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, left_enter_finished, left_enter_reset)
118};
119
120
121
diff --git a/keyboards/mechwild/bde/lefty/keymaps/fancy/rules.mk b/keyboards/mechwild/bde/lefty/keymaps/fancy/rules.mk
new file mode 100644
index 000000000..9a56408f8
--- /dev/null
+++ b/keyboards/mechwild/bde/lefty/keymaps/fancy/rules.mk
@@ -0,0 +1,2 @@
1TAP_DANCE_ENABLE = yes
2
diff --git a/keyboards/mechwild/bde/lefty/keymaps/via/config.h b/keyboards/mechwild/bde/lefty/keymaps/via/config.h
new file mode 100644
index 000000000..8476c8ccd
--- /dev/null
+++ b/keyboards/mechwild/bde/lefty/keymaps/via/config.h
@@ -0,0 +1,22 @@
1/* Copyright 2020 Kyle McCreery
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17#pragma once
18/* Making it so you need to hold the modifier and other key for the time together, helps not accidentally hit activate the hold functions of bottom row*/
19#define IGNORE_MOD_TAP_INTERRUPT
20
21/* Setting tap term, helps not accidentally hit activate the hold functions of bottom row*/
22#define TAPPING_TERM 250
diff --git a/keyboards/mechwild/bde/lefty/keymaps/via/keymap.c b/keyboards/mechwild/bde/lefty/keymaps/via/keymap.c
new file mode 100644
index 000000000..68ff33427
--- /dev/null
+++ b/keyboards/mechwild/bde/lefty/keymaps/via/keymap.c
@@ -0,0 +1,56 @@
1/* Copyright 2020 Kyle McCreery
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17
18#include QMK_KEYBOARD_H
19
20#define FN1_SPC LT(1, KC_SPC)
21#define FN2_BSPC LT(2, KC_BSPC)
22#define FN3_B LT(3, KC_B)
23#define CTL_Z CTL_T(KC_Z)
24#define ALT_X ALT_T(KC_X)
25#define ALT_N ALGR_T(KC_N)
26#define CTL_M RCTL_T(KC_M)
27#define SFT_ENT RSFT_T(KC_ENT)
28#define WIN_C LGUI_T(KC_C)
29
30const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
31
32 [0] = LAYOUT(
33 KC_7, KC_8, KC_9, KC_0, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P,
34 KC_4, KC_5, KC_6, SFT_ENT, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_ESC,
35 KC_1, KC_2, KC_3, CTL_Z, ALT_X, WIN_C, KC_V, FN2_BSPC, FN1_SPC, FN3_B, ALT_N, CTL_M, SFT_ENT
36 ),
37
38 [1] = LAYOUT(
39 KC_F7, KC_F8, KC_F9, KC_F10, _______, _______, _______, RESET, _______, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS,
40 KC_F4, KC_F5, KC_F6, KC_TAB, _______, _______, _______, _______, _______, KC_COMM, KC_DOT, KC_SLSH, KC_SCLN, KC_QUOT,
41 KC_F1, KC_F2, KC_F3, _______, _______, KC_LGUI, _______, KC_DEL, _______, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT
42 ),
43
44 [2] = LAYOUT(
45 _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE,
46 _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_LABK, KC_RABK, KC_QUES, KC_COLN, KC_DQUO,
47 KC_F11, KC_F12, _______, _______, _______, _______, _______, _______, KC_PSCR, KC_HOME, KC_PGDN, KC_PGUP, KC_END
48 ),
49
50 [3] = LAYOUT(
51 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
52 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
53 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
54 )
55
56};
diff --git a/keyboards/mechwild/bde/lefty/keymaps/via/rules.mk b/keyboards/mechwild/bde/lefty/keymaps/via/rules.mk
new file mode 100644
index 000000000..16d33cd89
--- /dev/null
+++ b/keyboards/mechwild/bde/lefty/keymaps/via/rules.mk
@@ -0,0 +1,2 @@
1VIA_ENABLE = yes
2
diff --git a/keyboards/mechwild/bde/lefty/lefty.c b/keyboards/mechwild/bde/lefty/lefty.c
new file mode 100644
index 000000000..77286f5af
--- /dev/null
+++ b/keyboards/mechwild/bde/lefty/lefty.c
@@ -0,0 +1,18 @@
1/* Copyright 2020 Kyle McCreery
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17
18#include "lefty.h"
diff --git a/keyboards/mechwild/bde/lefty/lefty.h b/keyboards/mechwild/bde/lefty/lefty.h
new file mode 100644
index 000000000..37b8771db
--- /dev/null
+++ b/keyboards/mechwild/bde/lefty/lefty.h
@@ -0,0 +1,30 @@
1/* Copyright 2020 Kyle McCreery
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17
18#pragma once
19
20#include "quantum.h"
21
22#define LAYOUT( \
23 K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D , \
24 K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D , \
25 K20, K21, K22, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D \
26) { \
27 {K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D}, \
28 {K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D}, \
29 {K20, K21, K22, KC_NO, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D} \
30}
diff --git a/keyboards/mechwild/bde/lefty/readme.md b/keyboards/mechwild/bde/lefty/readme.md
new file mode 100644
index 000000000..88e7be020
--- /dev/null
+++ b/keyboards/mechwild/bde/lefty/readme.md
@@ -0,0 +1,15 @@
1# BIG DILL EXTENDED
2
3![BIG DILL EXTENDED](https://i0.wp.com/mechwild.com/wp-content/uploads/2020/10/IMG_4458_web.jpg)
4
5A 41 key keyboard.
6
7* Keyboard Maintainer: [Kyle McCreery](https://github.com/kylemccreery)
8* Hardware Supported: BDE v2.3 Lefty
9* Hardware Availability: [BIG DILL EXTENDED on MechWild](https://mechwild.com/product/big-dill-extended-bde/)
10
11Make example for this keyboard (after setting up your build environment):
12
13 make mechwild/bde/lefty:default
14
15See 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/mechwild/bde/lefty/rules.mk b/keyboards/mechwild/bde/lefty/rules.mk
new file mode 100644
index 000000000..f4aec9cf5
--- /dev/null
+++ b/keyboards/mechwild/bde/lefty/rules.mk
@@ -0,0 +1,23 @@
1# MCU name
2MCU = atmega32u4
3
4# Bootloader selection
5BOOTLOADER = caterina
6
7# Build Options
8# change yes to no to disable
9#
10BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
11MOUSEKEY_ENABLE = yes # Mouse keys
12EXTRAKEY_ENABLE = yes # Audio control and System control
13CONSOLE_ENABLE = no # Console for debug
14COMMAND_ENABLE = no # Commands for debug and configuration
15# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
16SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
17# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
18NKRO_ENABLE = yes # USB Nkey Rollover
19BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
20RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
21BLUETOOTH_ENABLE = no # Enable Bluetooth
22AUDIO_ENABLE = no # Audio output
23
diff --git a/keyboards/mechwild/bde/righty/config.h b/keyboards/mechwild/bde/righty/config.h
new file mode 100644
index 000000000..5f8537f9c
--- /dev/null
+++ b/keyboards/mechwild/bde/righty/config.h
@@ -0,0 +1,55 @@
1/* Copyright 2020 Kyle McCreery
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17
18#pragma once
19
20#include "config_common.h"
21
22/* USB Device descriptor parameter */
23#define VENDOR_ID 0x6D77 // mw = "MechWild"
24#define PRODUCT_ID 0x1702
25#define DEVICE_VER 0x0203
26#define MANUFACTURER MechWild
27#define PRODUCT BDE Righty
28#define DESCRIPTION 41-key ortholinear 30% with numpad
29
30/* key matrix size */
31#define MATRIX_ROWS 3
32#define MATRIX_COLS 14
33
34/* key matrix pins */
35#define MATRIX_ROW_PINS { D1, D7, D3}
36#define MATRIX_COL_PINS { B4, B5, E6, C6, D4, D0, F4, F5, F6, B6, B3, B2, B1, F7}
37#define UNUSED_PINS
38
39/* COL2ROW or ROW2COL */
40#define DIODE_DIRECTION ROW2COL
41
42/* If RGBLIGHT_ENABLE is set to yes in the rules, ensure the RGBLED_NUM is accurate for how many you have attached. */
43#define RGB_DI_PIN D2
44#define RGBLED_NUM 16
45#define RGBLIGHT_ANIMATIONS
46
47/* Set 0 if debouncing isn't needed */
48#define DEBOUNCE 5
49
50/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
51#define LOCKING_SUPPORT_ENABLE
52
53/* Locking resynchronize hack */
54#define LOCKING_RESYNC_ENABLE
55
diff --git a/keyboards/mechwild/bde/righty/info.json b/keyboards/mechwild/bde/righty/info.json
new file mode 100644
index 000000000..8f4c87949
--- /dev/null
+++ b/keyboards/mechwild/bde/righty/info.json
@@ -0,0 +1,16 @@
1{
2 "keyboard_name": "MechWild BDE Righty",
3 "url": "mechwild.com",
4 "maintainer": "kylemccreery",
5 "width": 14,
6 "height": 3,
7 "layouts": {
8 "LAYOUT": {
9 "layout": [
10 {"label":"Q", "x":0, "y":0}, {"label":"W", "x":1, "y":0}, {"label":"E", "x":2, "y":0}, {"label":"R", "x":3, "y":0}, {"label":"T", "x":4, "y":0}, {"label":"Y", "x":5, "y":0}, {"label":"U", "x":6, "y":0}, {"label":"I", "x":7, "y":0}, {"label":"O", "x":8, "y":0}, {"label":"P", "x":9, "y":0}, {"label":"0", "x":10, "y":0}, {"label":"7", "x":11, "y":0}, {"label":"8", "x":12, "y":0}, {"label":"9", "x":13, "y":0},
11 {"label":"A", "x":0, "y":1}, {"label":"S", "x":1, "y":1}, {"label":"D", "x":2, "y":1}, {"label":"F", "x":3, "y":1}, {"label":"G", "x":4, "y":1}, {"label":"H", "x":5, "y":1}, {"label":"J", "x":6, "y":1}, {"label":"K", "x":7, "y":1}, {"label":"L", "x":8, "y":1}, {"label":"ESC", "x":9, "y":1}, {"label":"Enter", "x":10, "y":1, "h":2}, {"label":"4", "x":11, "y":1}, {"label":"5", "x":12, "y":1}, {"label":"6", "x":13, "y":1},
12 {"label":"Z", "x":0, "y":2}, {"label":"X", "x":1, "y":2}, {"label":"C", "x":2, "y":2}, {"label":"V", "x":3, "y":2}, {"label":"BS", "x":4, "y":2}, {"label":"", "x":5, "y":2}, {"label":"B", "x":6, "y":2}, {"label":"N", "x":7, "y":2}, {"label":"M", "x":8, "y":2}, {"label":"ENT", "x":9, "y":2}, {"label":"1", "x":11, "y":2}, {"label":"2", "x":12, "y":2}, {"label":"3", "x":13, "y":2}
13 ]
14 }
15 }
16} \ No newline at end of file
diff --git a/keyboards/mechwild/bde/righty/keymaps/default/config.h b/keyboards/mechwild/bde/righty/keymaps/default/config.h
new file mode 100644
index 000000000..80e8e2e01
--- /dev/null
+++ b/keyboards/mechwild/bde/righty/keymaps/default/config.h
@@ -0,0 +1,23 @@
1/* Copyright 2020 Kyle McCreery
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17
18/* Making it so you need to hold the modifier and other key for the time together, helps not accidentally hit activate the hold functions of bottom row*/
19#define IGNORE_MOD_TAP_INTERRUPT
20
21/* Setting tap term, helps not accidentally hit activate the hold functions of bottom row*/
22#define TAPPING_TERM 250
23
diff --git a/keyboards/mechwild/bde/righty/keymaps/default/keymap.c b/keyboards/mechwild/bde/righty/keymaps/default/keymap.c
new file mode 100644
index 000000000..5310cea05
--- /dev/null
+++ b/keyboards/mechwild/bde/righty/keymaps/default/keymap.c
@@ -0,0 +1,55 @@
1/* Copyright 2020 Kyle McCreery
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17
18#include QMK_KEYBOARD_H
19
20#define FN1_SPC LT(1, KC_SPC)
21#define FN2_BSPC LT(2, KC_BSPC)
22#define FN3_B LT(3, KC_B)
23#define CTL_Z CTL_T(KC_Z)
24#define ALT_X ALT_T(KC_X)
25#define ALT_N ALGR_T(KC_N)
26#define CTL_M RCTL_T(KC_M)
27#define WIN_C LGUI_T(KC_C)
28
29const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
30
31 [0] = LAYOUT(
32 KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_0, KC_7, KC_8, KC_9,
33 KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_ESC, KC_ENT, KC_4, KC_5, KC_6,
34 CTL_Z, ALT_X, WIN_C, KC_V, FN2_BSPC, FN1_SPC, FN3_B, ALT_N, CTL_M, KC_RSFT, KC_1, KC_2, KC_3
35 ),
36
37 [1] = LAYOUT(
38 _______, _______, _______, RESET, _______, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, KC_F10, KC_F7, KC_F8, KC_F9,
39 _______, _______, _______, _______, _______, KC_COMM, KC_DOT, KC_SLSH, KC_SCLN, KC_QUOT, KC_TAB, KC_F4, KC_F5, KC_F6,
40 _______, _______, KC_LGUI, _______, KC_DEL, _______, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, KC_F1, KC_F2, KC_F3
41 ),
42
43 [2] = LAYOUT(
44 _______, _______, _______, _______, _______, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE, _______, _______, _______, _______,
45 _______, _______, _______, _______, _______, KC_LABK, KC_RABK, KC_QUES, KC_COLN, KC_DQUO, _______, _______, _______, _______,
46 _______, _______, _______, _______, _______, KC_PSCR, KC_HOME, KC_PGDN, KC_PGUP, KC_END, KC_F11, KC_F12, _______
47 ),
48
49 [3] = LAYOUT(
50 RGB_HUI, RGB_SAI, RGB_VAI, RGB_MOD, _______, _______, _______, _______, _______, _______, RGB_M_P, RGB_M_G, RGB_M_T, _______,
51 RGB_HUD, RGB_SAD, RGB_VAD, RGB_RMOD, _______, _______, _______, _______, _______, _______, RGB_TOG, RGB_M_SN, RGB_M_K, RGB_M_X,
52 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_M_B, RGB_M_R, RGB_M_SW
53 )
54
55};
diff --git a/keyboards/mechwild/bde/righty/keymaps/via/config.h b/keyboards/mechwild/bde/righty/keymaps/via/config.h
new file mode 100644
index 000000000..80e8e2e01
--- /dev/null
+++ b/keyboards/mechwild/bde/righty/keymaps/via/config.h
@@ -0,0 +1,23 @@
1/* Copyright 2020 Kyle McCreery
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17
18/* Making it so you need to hold the modifier and other key for the time together, helps not accidentally hit activate the hold functions of bottom row*/
19#define IGNORE_MOD_TAP_INTERRUPT
20
21/* Setting tap term, helps not accidentally hit activate the hold functions of bottom row*/
22#define TAPPING_TERM 250
23
diff --git a/keyboards/mechwild/bde/righty/keymaps/via/keymap.c b/keyboards/mechwild/bde/righty/keymaps/via/keymap.c
new file mode 100644
index 000000000..5310cea05
--- /dev/null
+++ b/keyboards/mechwild/bde/righty/keymaps/via/keymap.c
@@ -0,0 +1,55 @@
1/* Copyright 2020 Kyle McCreery
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17
18#include QMK_KEYBOARD_H
19
20#define FN1_SPC LT(1, KC_SPC)
21#define FN2_BSPC LT(2, KC_BSPC)
22#define FN3_B LT(3, KC_B)
23#define CTL_Z CTL_T(KC_Z)
24#define ALT_X ALT_T(KC_X)
25#define ALT_N ALGR_T(KC_N)
26#define CTL_M RCTL_T(KC_M)
27#define WIN_C LGUI_T(KC_C)
28
29const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
30
31 [0] = LAYOUT(
32 KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_0, KC_7, KC_8, KC_9,
33 KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_ESC, KC_ENT, KC_4, KC_5, KC_6,
34 CTL_Z, ALT_X, WIN_C, KC_V, FN2_BSPC, FN1_SPC, FN3_B, ALT_N, CTL_M, KC_RSFT, KC_1, KC_2, KC_3
35 ),
36
37 [1] = LAYOUT(
38 _______, _______, _______, RESET, _______, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, KC_F10, KC_F7, KC_F8, KC_F9,
39 _______, _______, _______, _______, _______, KC_COMM, KC_DOT, KC_SLSH, KC_SCLN, KC_QUOT, KC_TAB, KC_F4, KC_F5, KC_F6,
40 _______, _______, KC_LGUI, _______, KC_DEL, _______, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, KC_F1, KC_F2, KC_F3
41 ),
42
43 [2] = LAYOUT(
44 _______, _______, _______, _______, _______, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE, _______, _______, _______, _______,
45 _______, _______, _______, _______, _______, KC_LABK, KC_RABK, KC_QUES, KC_COLN, KC_DQUO, _______, _______, _______, _______,
46 _______, _______, _______, _______, _______, KC_PSCR, KC_HOME, KC_PGDN, KC_PGUP, KC_END, KC_F11, KC_F12, _______
47 ),
48
49 [3] = LAYOUT(
50 RGB_HUI, RGB_SAI, RGB_VAI, RGB_MOD, _______, _______, _______, _______, _______, _______, RGB_M_P, RGB_M_G, RGB_M_T, _______,
51 RGB_HUD, RGB_SAD, RGB_VAD, RGB_RMOD, _______, _______, _______, _______, _______, _______, RGB_TOG, RGB_M_SN, RGB_M_K, RGB_M_X,
52 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_M_B, RGB_M_R, RGB_M_SW
53 )
54
55};
diff --git a/keyboards/mechwild/bde/righty/keymaps/via/rules.mk b/keyboards/mechwild/bde/righty/keymaps/via/rules.mk
new file mode 100644
index 000000000..16d33cd89
--- /dev/null
+++ b/keyboards/mechwild/bde/righty/keymaps/via/rules.mk
@@ -0,0 +1,2 @@
1VIA_ENABLE = yes
2
diff --git a/keyboards/mechwild/bde/righty/readme.md b/keyboards/mechwild/bde/righty/readme.md
new file mode 100644
index 000000000..619ea61f0
--- /dev/null
+++ b/keyboards/mechwild/bde/righty/readme.md
@@ -0,0 +1,15 @@
1# BIG DILL EXTENDED
2
3![BIG DILL EXTENDED](https://i0.wp.com/mechwild.com/wp-content/uploads/2020/10/IMG_4458_web.jpg)
4
5A 41 key keyboard.
6
7* Keyboard Maintainer: [Kyle McCreery](https://github.com/kylemccreery)
8* Hardware Supported: BDE v2.3 Righty
9* Hardware Availability: [BIG DILL EXTENDED on MechWild](https://mechwild.com/product/big-dill-extended-bde/)
10
11Make example for this keyboard (after setting up your build environment):
12
13 make mechwild/bde/righty:default
14
15See 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/mechwild/bde/righty/righty.c b/keyboards/mechwild/bde/righty/righty.c
new file mode 100644
index 000000000..d285e2e55
--- /dev/null
+++ b/keyboards/mechwild/bde/righty/righty.c
@@ -0,0 +1,18 @@
1/* Copyright 2020 Kyle McCreery
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17
18#include "righty.h"
diff --git a/keyboards/mechwild/bde/righty/righty.h b/keyboards/mechwild/bde/righty/righty.h
new file mode 100644
index 000000000..f1f29554a
--- /dev/null
+++ b/keyboards/mechwild/bde/righty/righty.h
@@ -0,0 +1,30 @@
1/* Copyright 2020 Kyle McCreery
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17
18#pragma once
19
20#include "quantum.h"
21
22#define LAYOUT( \
23 K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D , \
24 K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D , \
25 K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2B, K2C, K2D \
26) { \
27 {K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D}, \
28 {K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D}, \
29 {K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, KC_NO, K2B, K2C, K2D} \
30}
diff --git a/keyboards/mechwild/bde/righty/rules.mk b/keyboards/mechwild/bde/righty/rules.mk
new file mode 100644
index 000000000..f4aec9cf5
--- /dev/null
+++ b/keyboards/mechwild/bde/righty/rules.mk
@@ -0,0 +1,23 @@
1# MCU name
2MCU = atmega32u4
3
4# Bootloader selection
5BOOTLOADER = caterina
6
7# Build Options
8# change yes to no to disable
9#
10BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
11MOUSEKEY_ENABLE = yes # Mouse keys
12EXTRAKEY_ENABLE = yes # Audio control and System control
13CONSOLE_ENABLE = no # Console for debug
14COMMAND_ENABLE = no # Commands for debug and configuration
15# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
16SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
17# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
18NKRO_ENABLE = yes # USB Nkey Rollover
19BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
20RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
21BLUETOOTH_ENABLE = no # Enable Bluetooth
22AUDIO_ENABLE = no # Audio output
23
diff --git a/keyboards/mt84/info.json b/keyboards/mt84/info.json
index 32b3ca4ab..f9486253c 100644
--- a/keyboards/mt84/info.json
+++ b/keyboards/mt84/info.json
@@ -1,12 +1,12 @@
1{ 1{
2 "keyboard_name": "mt84", 2 "keyboard_name": "mt84",
3 "url": "", 3 "url": "",
4 "maintainer": "qmk", 4 "maintainer": "qmk",
5 "width": 16, 5 "width": 16,
6 "height": 6, 6 "height": 6,
7 "layouts": { 7 "layouts": {
8 "LAYOUT_75_ansi": { 8 "LAYOUT_75_ansi": {
9 "layout": [{"label":"Esc", "x":0, "y":0}, {"label":"F1", "x":1, "y":0}, {"label":"F2", "x":2, "y":0}, {"label":"F3", "x":3, "y":0}, {"label":"F4", "x":4, "y":0}, {"label":"F5", "x":5, "y":0}, {"label":"F6", "x":6, "y":0}, {"label":"F7", "x":7, "y":0}, {"label":"F8", "x":8, "y":0}, {"label":"F9", "x":9, "y":0}, {"label":"F10", "x":10, "y":0}, {"label":"F11", "x":11, "y":0}, {"label":"F12", "x":12, "y":0}, {"label":"PrtSc", "x":13, "y":0}, {"label":"Pause", "x":14, "y":0}, {"label":"Delete", "x":15, "y":0}, {"label":"~", "x":0, "y":1}, {"label":"!", "x":1, "y":1}, {"label":"@", "x":2, "y":1}, {"label":"#", "x":3, "y":1}, {"label":"$", "x":4, "y":1}, {"label":"%", "x":5, "y":1}, {"label":"^", "x":6, "y":1}, {"label":"&", "x":7, "y":1}, {"label":"*", "x":8, "y":1}, {"label":"(", "x":9, "y":1}, {"label":")", "x":10, "y":1}, {"label":"_", "x":11, "y":1}, {"label":"+", "x":12, "y":1}, {"label":"Backspace", "x":13, "y":1, "w":2}, {"label":"Home", "x":15, "y":1}, {"label":"Tab", "x":0, "y":2, "w":1.5}, {"label":"Q", "x":1.5, "y":2}, {"label":"W", "x":2.5, "y":2}, {"label":"E", "x":3.5, "y":2}, {"label":"R", "x":4.5, "y":2}, {"label":"T", "x":5.5, "y":2}, {"label":"Y", "x":6.5, "y":2}, {"label":"U", "x":7.5, "y":2}, {"label":"I", "x":8.5, "y":2}, {"label":"O", "x":9.5, "y":2}, {"label":"P", "x":10.5, "y":2}, {"label":"{", "x":11.5, "y":2}, {"label":"}", "x":12.5, "y":2}, {"label":"|", "x":13.5, "y":2, "w":1.5}, {"label":"Page Up", "x":15, "y":2}, {"label":"Caps Lock", "x":0, "y":3, "w":1.75}, {"label":"A", "x":1.75, "y":3}, {"label":"S", "x":2.75, "y":3}, {"label":"D", "x":3.75, "y":3}, {"label":"F", "x":4.75, "y":3}, {"label":"G", "x":5.75, "y":3}, {"label":"H", "x":6.75, "y":3}, {"label":"J", "x":7.75, "y":3}, {"label":"K", "x":8.75, "y":3}, {"label":"L", "x":9.75, "y":3}, {"label":":", "x":10.75, "y":3}, {"label":"\"", "x":11.75, "y":3}, {"label":"Enter", "x":12.75, "y":3, "w":2.25}, {"label":"Page Down", "x":15, "y":3}, {"label":"Shift", "x":0, "y":4, "w":2.25}, {"label":"Z", "x":2.25, "y":4}, {"label":"X", "x":3.25, "y":4}, {"label":"C", "x":4.25, "y":4}, {"label":"V", "x":5.25, "y":4}, {"label":"B", "x":6.25, "y":4}, {"label":"N", "x":7.25, "y":4}, {"label":"M", "x":8.25, "y":4}, {"label":"<", "x":9.25, "y":4}, {"label":">", "x":10.25, "y":4}, {"label":"?", "x":11.25, "y":4}, {"label":"Shift", "x":12.25, "y":4, "w":1.75}, {"label":"\u2191", "x":14, "y":4}, {"label":"End", "x":15, "y":4}, {"label":"Ctrl", "x":0, "y":5, "w":1.25}, {"label":"Win", "x":1.25, "y":5, "w":1.25}, {"label":"Alt", "x":2.5, "y":5, "w":1.25}, {"x":3.75, "y":5, "w":6.25}, {"label":"Alt", "x":10, "y":5}, {"label":"Fn", "x":11, "y":5}, {"label":"Ctrl", "x":12, "y":5}, {"label":"\u2190", "x":13, "y":5}, {"label":"\u2193", "x":14, "y":5}, {"label":"\u2192", "x":15, "y":5}] 9 "layout": [{"label":"Esc", "x":0, "y":0}, {"label":"F1", "x":1, "y":0}, {"label":"F2", "x":2, "y":0}, {"label":"F3", "x":3, "y":0}, {"label":"F4", "x":4, "y":0}, {"label":"F5", "x":5, "y":0}, {"label":"F6", "x":6, "y":0}, {"label":"F7", "x":7, "y":0}, {"label":"F8", "x":8, "y":0}, {"label":"F9", "x":9, "y":0}, {"label":"F10", "x":10, "y":0}, {"label":"F11", "x":11, "y":0}, {"label":"F12", "x":12, "y":0}, {"label":"PrtSc", "x":13, "y":0}, {"label":"Pause", "x":14, "y":0}, {"label":"Delete", "x":15, "y":0}, {"label":"~", "x":0, "y":1}, {"label":"!", "x":1, "y":1}, {"label":"@", "x":2, "y":1}, {"label":"#", "x":3, "y":1}, {"label":"$", "x":4, "y":1}, {"label":"%", "x":5, "y":1}, {"label":"^", "x":6, "y":1}, {"label":"&", "x":7, "y":1}, {"label":"*", "x":8, "y":1}, {"label":"(", "x":9, "y":1}, {"label":")", "x":10, "y":1}, {"label":"_", "x":11, "y":1}, {"label":"+", "x":12, "y":1}, {"label":"Backspace", "x":13, "y":1, "w":2}, {"label":"Home", "x":15, "y":1}, {"label":"Tab", "x":0, "y":2, "w":1.5}, {"label":"Q", "x":1.5, "y":2}, {"label":"W", "x":2.5, "y":2}, {"label":"E", "x":3.5, "y":2}, {"label":"R", "x":4.5, "y":2}, {"label":"T", "x":5.5, "y":2}, {"label":"Y", "x":6.5, "y":2}, {"label":"U", "x":7.5, "y":2}, {"label":"I", "x":8.5, "y":2}, {"label":"O", "x":9.5, "y":2}, {"label":"P", "x":10.5, "y":2}, {"label":"{", "x":11.5, "y":2}, {"label":"}", "x":12.5, "y":2}, {"label":"|", "x":13.5, "y":2, "w":1.5}, {"label":"Page Up", "x":15, "y":2}, {"label":"Caps Lock", "x":0, "y":3, "w":1.75}, {"label":"A", "x":1.75, "y":3}, {"label":"S", "x":2.75, "y":3}, {"label":"D", "x":3.75, "y":3}, {"label":"F", "x":4.75, "y":3}, {"label":"G", "x":5.75, "y":3}, {"label":"H", "x":6.75, "y":3}, {"label":"J", "x":7.75, "y":3}, {"label":"K", "x":8.75, "y":3}, {"label":"L", "x":9.75, "y":3}, {"label":":", "x":10.75, "y":3}, {"label":"\"", "x":11.75, "y":3}, {"label":"Enter", "x":12.75, "y":3, "w":2.25}, {"label":"Page Down", "x":15, "y":3}, {"label":"Shift", "x":0, "y":4, "w":2.25}, {"label":"Z", "x":2.25, "y":4}, {"label":"X", "x":3.25, "y":4}, {"label":"C", "x":4.25, "y":4}, {"label":"V", "x":5.25, "y":4}, {"label":"B", "x":6.25, "y":4}, {"label":"N", "x":7.25, "y":4}, {"label":"M", "x":8.25, "y":4}, {"label":"<", "x":9.25, "y":4}, {"label":">", "x":10.25, "y":4}, {"label":"?", "x":11.25, "y":4}, {"label":"Shift", "x":12.25, "y":4, "w":1.75}, {"label":"\u2191", "x":14, "y":4}, {"label":"End", "x":15, "y":4}, {"label":"Ctrl", "x":0, "y":5, "w":1.25}, {"label":"Win", "x":1.25, "y":5, "w":1.25}, {"label":"Alt", "x":2.5, "y":5, "w":1.25}, {"x":3.75, "y":5, "w":6.25}, {"label":"Alt", "x":10, "y":5}, {"label":"Fn", "x":11, "y":5}, {"label":"Ctrl", "x":12, "y":5}, {"label":"\u2190", "x":13, "y":5}, {"label":"\u2193", "x":14, "y":5}, {"label":"\u2192", "x":15, "y":5}]
10 } 10 }
11 } 11 }
12} 12}
diff --git a/keyboards/mt84/readme.md b/keyboards/mt84/readme.md
index d57996f95..17e1de2f5 100644
--- a/keyboards/mt84/readme.md
+++ b/keyboards/mt84/readme.md
@@ -1,23 +1,23 @@
1# Mt84rgb 1# Mt84rgb
2 2
3![Mt84rgb](https://i.imgur.com/2fJg3DDl.png) 3![Mt84rgb](https://i.imgur.com/2fJg3DDl.png)
4 4
5A 84% keyboard PCB made by MT. 5A 84% keyboard PCB made by MT.
6It supports standard 84-key layout, with hotswap sockets and per-key RGB backlight. 6It supports standard 84-key layout, with hotswap sockets and per-key RGB backlight.
7 7
8 8
9* Keyboard Maintainer: [MT](https://github.com/704340378) 9* Keyboard Maintainer: [MT](https://github.com/704340378)
10* Hardware Supported: mt84rgb (atmega32u4) 10* Hardware Supported: mt84rgb (atmega32u4)
11* Hardware Availability: [麦田外设](https://shop110310565.taobao.com) 11* Hardware Availability: [麦田外设](https://shop110310565.taobao.com)
12 12
13Make example for this keyboard (after setting up your build environment): 13Make example for this keyboard (after setting up your build environment):
14 14
15 make mt84:default 15 make mt84:default
16 16
17Flashing example for this keyboard: 17Flashing example for this keyboard:
18 18
19 make mt84:default:flash 19 make mt84:default:flash
20 20
21To put the board into bootloader mode, either press the reset button on the bottom the PCB or hold Space+B while plugging it in. 21To put the board into bootloader mode, either press the reset button on the bottom the PCB or hold Space+B while plugging it in.
22 22
23See 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). 23See 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/nullbitsco/nibble/keymaps/oled/rules.mk b/keyboards/nullbitsco/nibble/keymaps/oled/rules.mk
index cf4068471..48a51b225 100644
--- a/keyboards/nullbitsco/nibble/keymaps/oled/rules.mk
+++ b/keyboards/nullbitsco/nibble/keymaps/oled/rules.mk
@@ -1 +1 @@
ENABLE_OLED_DRIVER = yes \ No newline at end of file OLED_DRIVER_ENABLE = yes \ No newline at end of file
diff --git a/keyboards/planck/readme.md b/keyboards/planck/readme.md
index 0d836563c..748c25147 100644
--- a/keyboards/planck/readme.md
+++ b/keyboards/planck/readme.md
@@ -7,7 +7,7 @@ A compact 40% (12x4) ortholinear keyboard kit made and sold by OLKB and Massdrop
7 7
8Keyboard Maintainer: [Jack Humbert](https://github.com/jackhumbert) 8Keyboard Maintainer: [Jack Humbert](https://github.com/jackhumbert)
9Hardware Supported: Planck PCB rev1, rev2, rev3, rev4, rev5, rev6; Planck Light, Planck EZ 9Hardware Supported: Planck PCB rev1, rev2, rev3, rev4, rev5, rev6; Planck Light, Planck EZ
10Hardware Availability: [OLKB.com](https://olkb.com), [Massdrop](https://www.massdrop.com/buy/planck-mechanical-keyboard?mode=guest_open) 10Hardware Availability: [OLKB.com](https://olkb.com), [Massdrop](https://www.massdrop.com/buy/planck-mechanical-keyboard?mode=guest_open), [Ergodox (Planck EZ)](https://ergodox-ez.com/pages/planck)
11 11
12Make example for this keyboard (after setting up your build environment): 12Make example for this keyboard (after setting up your build environment):
13 13
diff --git a/keyboards/slz40/config.h b/keyboards/slz40/config.h
new file mode 100644
index 000000000..cc868e4c0
--- /dev/null
+++ b/keyboards/slz40/config.h
@@ -0,0 +1,146 @@
1/*
2Copyright 2020 SithLord
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 2 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/
17
18#pragma once
19
20#include "config_common.h"
21
22/* USB Device descriptor parameter */
23#define VENDOR_ID 0xFEED
24#define PRODUCT_ID 0x0000
25#define DEVICE_VER 0x0001
26#define MANUFACTURER SithLord
27#define PRODUCT slz40
28
29/* key matrix size */
30#define MATRIX_ROWS 5
31#define MATRIX_COLS 12
32
33/*
34 * Keyboard Matrix Assignments
35 *
36 * Change this to how you wired your keyboard
37 * COLS: AVR pins used for columns, left to right
38 * ROWS: AVR pins used for rows, top to bottom
39 * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
40 * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
41 *
42 */
43#define MATRIX_ROW_PINS { B4, B5, B3, B2, B6 }
44#define MATRIX_COL_PINS { F4, D2, F5, D1, F6, D0, F7, D4, B1, C6, E6, D7 }
45#define UNUSED_PINS
46
47/* COL2ROW, ROW2COL */
48#define DIODE_DIRECTION COL2ROW
49
50/*
51 * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN.
52 */
53#define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6
54
55//#define BACKLIGHT_PIN B7
56//#define BACKLIGHT_LEVELS 3
57//#define BACKLIGHT_BREATHING
58
59//#define RGB_DI_PIN E2
60//#ifdef RGB_DI_PIN
61//# define RGBLED_NUM 16
62//# define RGBLIGHT_HUE_STEP 8
63//# define RGBLIGHT_SAT_STEP 8
64//# define RGBLIGHT_VAL_STEP 8
65//# define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
66//# define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
67/*== all animations enable ==*/
68//# define RGBLIGHT_ANIMATIONS
69/*== or choose animations ==*/
70//# define RGBLIGHT_EFFECT_BREATHING
71//# define RGBLIGHT_EFFECT_RAINBOW_MOOD
72//# define RGBLIGHT_EFFECT_RAINBOW_SWIRL
73//# define RGBLIGHT_EFFECT_SNAKE
74//# define RGBLIGHT_EFFECT_KNIGHT
75//# define RGBLIGHT_EFFECT_CHRISTMAS
76//# define RGBLIGHT_EFFECT_STATIC_GRADIENT
77//# define RGBLIGHT_EFFECT_RGB_TEST
78//# define RGBLIGHT_EFFECT_ALTERNATING
79/*== customize breathing effect ==*/
80/*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/
81//# define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64
82/*==== use exp() and sin() ====*/
83//# define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7
84//# define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255
85//#endif
86
87/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
88#define DEBOUNCE 5
89
90/* define if matrix has ghost (lacks anti-ghosting diodes) */
91//#define MATRIX_HAS_GHOST
92
93/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
94#define LOCKING_SUPPORT_ENABLE
95/* Locking resynchronize hack */
96#define LOCKING_RESYNC_ENABLE
97
98/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
99 * This is useful for the Windows task manager shortcut (ctrl+shift+esc).
100 */
101//#define GRAVE_ESC_CTRL_OVERRIDE
102
103/*
104 * Force NKRO
105 *
106 * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
107 * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
108 * makefile for this to work.)
109 *
110 * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
111 * until the next keyboard reset.
112 *
113 * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
114 * fully operational during normal computer usage.
115 *
116 * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
117 * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
118 * bootmagic, NKRO mode will always be enabled until it is toggled again during a
119 * power-up.
120 *
121 */
122//#define FORCE_NKRO
123
124/*
125 * Feature disable options
126 * These options are also useful to firmware size reduction.
127 */
128
129/* disable debug print */
130//#define NO_DEBUG
131
132/* disable print */
133//#define NO_PRINT
134
135/* disable action features */
136//#define NO_ACTION_LAYER
137//#define NO_ACTION_TAPPING
138//#define NO_ACTION_ONESHOT
139
140/* disable these deprecated features by default */
141#define NO_ACTION_MACRO
142#define NO_ACTION_FUNCTION
143
144/* Bootmagic Lite key configuration */
145//#define BOOTMAGIC_LITE_ROW 0
146//#define BOOTMAGIC_LITE_COLUMN 0
diff --git a/keyboards/slz40/info.json b/keyboards/slz40/info.json
new file mode 100644
index 000000000..2723453c4
--- /dev/null
+++ b/keyboards/slz40/info.json
@@ -0,0 +1,76 @@
1{
2 "keyboard_name": "slz40",
3 "url": "https://github.com/sithlord121/slz40",
4 "maintainer": "SithLord",
5 "width": 13,
6 "height": 5,
7 "layouts": {
8 "LAYOUT": {
9 "layout": [
10 {"label": "1", "x": 0.5, "y": 0},
11 {"label": "2", "x": 1.5, "y": 0},
12 {"label": "3", "x": 2.5, "y": 0},
13 {"label": "4", "x": 3.5, "y": 0},
14 {"label": "5", "x": 4.5, "y": 0},
15 {"label": "6", "x": 5.5, "y": 0},
16 {"label": "7", "x": 6.5, "y": 0},
17 {"label": "8", "x": 7.5, "y": 0},
18 {"label": "9", "x": 8.5, "y": 0},
19 {"label": "0", "x": 9.5, "y": 0},
20 {"label": "-", "x": 10.5, "y": 0},
21
22 {"label": "esc", "x": 0, "y": 1},
23 {"label": "q", "x": 1, "y": 1},
24 {"label": "w", "x": 2, "y": 1},
25 {"label": "e", "x": 3, "y": 1},
26 {"label": "r", "x": 4, "y": 1},
27 {"label": "t", "x": 5, "y": 1},
28 {"label": "y", "x": 6, "y": 1},
29 {"label": "u", "x": 7, "y": 1},
30 {"label": "i", "x": 8, "y": 1},
31 {"label": "o", "x": 9, "y": 1},
32 {"label": "p", "x": 10, "y": 1},
33 {"label": "/", "x": 11, "y": 1},
34 {"label": "bs", "x": 12, "y": 1},
35
36 {"label": "tab", "x": 0, "y": 2, "w": 1.25},
37 {"label": "a", "x": 1.25, "y": 2},
38 {"label": "s", "x": 2.25, "y": 2},
39 {"label": "d", "x": 3.25, "y": 2},
40 {"label": "f", "x": 4.25, "y": 2},
41 {"label": "g", "x": 5.25, "y": 2},
42 {"label": "h", "x": 6.25, "y": 2},
43 {"label": "j", "x": 7.25, "y": 2},
44 {"label": "k", "x": 8.25, "y": 2},
45 {"label": "l", "x": 9.25, "y": 2},
46 {"label": ";", "x": 10.25, "y": 2},
47 {"label": "enter", "x": 11.25, "y": 2, "w": 1.75},
48
49 {"label": "lshift", "x": 0, "y": 3, "w": 1.75},
50 {"label": "z", "x": 1.75, "y": 3},
51 {"label": "x", "x": 2.75, "y": 3},
52 {"label": "c", "x": 3.75, "y": 3},
53 {"label": "v", "x": 4.75, "y": 3},
54 {"label": "b", "x": 5.75, "y": 3},
55 {"label": "n", "x": 6.75, "y": 3},
56 {"label": "m", "x": 7.75, "y": 3},
57 {"label": ",", "x": 8.75, "y": 3},
58 {"label": ".", "x": 9.75, "y": 3},
59 {"label": "up", "x": 10.75, "y": 3},
60 {"label": "rshift", "x": 11.75, "y": 3, "w": 1.25},
61
62 {"label": "ctrl", "x": 0, "y": 4, "w": 1.25},
63 {"label": "qui", "x": 1.25, "y": 4, "w": 1.25},
64 {"label": "alt", "x": 2.50, "y": 4, "w": 1.25},
65 {"label": "del", "x": 3.75, "y": 4, "w": 1.25},
66 {"label": "enter", "x": 5, "y": 4, "w": 1.75},
67 {"label": "space", "x": 6.75, "y": 4, "w": 1.75},
68 {"label": "'", "x": 8.50, "y": 4, "w": 1.5},
69 {"label": "left", "x": 10, "y": 4},
70 {"label": "down", "x": 11, "y": 4},
71 {"label": "right", "x": 12, "y": 4}
72
73 ]
74 }
75 }
76}
diff --git a/keyboards/slz40/keymaps/default/keymap.c b/keyboards/slz40/keymaps/default/keymap.c
new file mode 100644
index 000000000..9212d792e
--- /dev/null
+++ b/keyboards/slz40/keymaps/default/keymap.c
@@ -0,0 +1,48 @@
1/* Copyright 2020 SithLord
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16#include QMK_KEYBOARD_H
17
18// Defines names for use in layer keycodes and the keymap
19enum layer_names {
20 _BASE,
21 _FN,
22 _FN2
23};
24
25const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
26 /* Base */
27 [_BASE] = LAYOUT(
28 KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS,
29 KC_GESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_SLSH, KC_BSPC,
30 LT(_FN, KC_TAB), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, LT(_FN,KC_ENT),
31 KC_LSPO, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_UP, KC_RSPC,
32 KC_LCTL, KC_LGUI, KC_LALT, LT(_FN2, KC_DEL), LT(_FN2, KC_ENTER), KC_SPACE, KC_QUOT, KC_LEFT, KC_DOWN, KC_RIGHT
33 ),
34 [_FN] = LAYOUT(
35 KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11,
36 KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_SLSH, KC_BSPC,
37 KC_TRNS, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_PIPE, KC_MINS, KC_EQL, KC_NO, KC_BSLS, KC_TRNS,
38 KC_LSFT, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_LBRC, KC_RBRC, KC_COMM, KC_DOT, KC_PGUP, KC_RSFT,
39 KC_LCTL, KC_LGUI, KC_LALT, KC_TRNS, KC_TRNS, KC_SPACE, KC_QUOT, KC_HOME, KC_PGDN, KC_END
40 ),
41 [_FN2] = LAYOUT(
42 KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, RESET,
43 KC_ESC, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_PIPE, KC_BSPC,
44 KC_TAB, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_BSLS, KC_UNDS, KC_PLUS, KC_NO, KC_NO, KC_ENT,
45 KC_LSFT, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_LCBR, KC_RCBR, KC_COMM, KC_DOT, KC_VOLU, KC_RSFT,
46 KC_LCTL, KC_LGUI, KC_LALT, KC_TRNS, KC_TRNS, KC_SPACE, KC_QUOT, KC_HOME, KC_VOLD, KC_END
47 )
48};
diff --git a/keyboards/slz40/keymaps/default/readme.md b/keyboards/slz40/keymaps/default/readme.md
new file mode 100644
index 000000000..e9b38ab41
--- /dev/null
+++ b/keyboards/slz40/keymaps/default/readme.md
@@ -0,0 +1 @@
# The default keymap for slz40
diff --git a/keyboards/slz40/readme.md b/keyboards/slz40/readme.md
new file mode 100644
index 000000000..d710f597f
--- /dev/null
+++ b/keyboards/slz40/readme.md
@@ -0,0 +1,19 @@
1# slz40
2
3![SLZ40](https://imgur.com/kgXfEBR.jpg)
4
5PCB and keymap files for the SLZ40, a 40s style keyboard with numbers for Zhuyin input.
6
7* Keyboard Maintainer: [SithLord](https://github.com/sithlord121/slz40)
8* Hardware Supported: ProMicro or similar controller is required.
9* Hardware Availability: PCB files can be found at https://github.com/sithlord121/slz40
10
11Make example for this keyboard (after setting up your build environment):
12
13 make slz40:default
14
15Flashing example for this keyboard:
16
17 make slz40:default:flash
18
19See 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/slz40/rules.mk b/keyboards/slz40/rules.mk
new file mode 100644
index 000000000..5c0d8f307
--- /dev/null
+++ b/keyboards/slz40/rules.mk
@@ -0,0 +1,22 @@
1# MCU name
2MCU = atmega32u4
3
4# Bootloader selection
5BOOTLOADER = atmel-dfu
6
7# Build Options
8# change yes to no to disable
9#
10BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
11MOUSEKEY_ENABLE = yes # Mouse keys
12EXTRAKEY_ENABLE = yes # Audio control and System control
13CONSOLE_ENABLE = no # Console for debug
14COMMAND_ENABLE = no # Commands for debug and configuration
15# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
16SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
17# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
18NKRO_ENABLE = no # USB Nkey Rollover
19BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
20RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
21BLUETOOTH_ENABLE = no # Enable Bluetooth
22AUDIO_ENABLE = no # Audio output
diff --git a/keyboards/slz40/slz40.c b/keyboards/slz40/slz40.c
new file mode 100644
index 000000000..261b0bd89
--- /dev/null
+++ b/keyboards/slz40/slz40.c
@@ -0,0 +1,17 @@
1/* Copyright 2020 SithLord
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17#include "slz40.h"
diff --git a/keyboards/slz40/slz40.h b/keyboards/slz40/slz40.h
new file mode 100644
index 000000000..88e7178c6
--- /dev/null
+++ b/keyboards/slz40/slz40.h
@@ -0,0 +1,41 @@
1/* Copyright 2020 SithLord
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17#pragma once
18
19#include "quantum.h"
20
21/* This is a shortcut to help you visually see your layout.
22 *
23 * The first section contains all of the arguments representing the physical
24 * layout of the board and position of the keys.
25 *
26 * The second converts the arguments into a two-dimensional array which
27 * represents the switch matrix.
28 */
29#define LAYOUT( \
30 k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, \
31 k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k0b, k1b, \
32 k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, \
33 k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b, \
34 k40, k41, k42, k43, k44, k46, k48, k49, k4a, k4b \
35) { \
36 { k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b }, \
37 { k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b }, \
38 { k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b }, \
39 { k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b }, \
40 { k40, k41, k42, k43, k44, KC_NO, k46, KC_NO, k48, k49, k4a, k4b } \
41}
diff --git a/keyboards/taleguers/taleguers75/info.json b/keyboards/taleguers/taleguers75/info.json
index 824bb8c9d..634a96b66 100644
--- a/keyboards/taleguers/taleguers75/info.json
+++ b/keyboards/taleguers/taleguers75/info.json
@@ -72,6 +72,11 @@
72 "y": 0 72 "y": 0
73 }, 73 },
74 { 74 {
75 "label": "Del",
76 "x": 15.5,
77 "y": 2.25
78 },
79 {
75 "label": "~", 80 "label": "~",
76 "x": 0, 81 "x": 0,
77 "y": 1.25 82 "y": 1.25
@@ -215,11 +220,6 @@
215 "w": 1.5 220 "w": 1.5
216 }, 221 },
217 { 222 {
218 "label": "Del",
219 "x": 15.5,
220 "y": 2.25
221 },
222 {
223 "label": "Caps Lock", 223 "label": "Caps Lock",
224 "x": 0, 224 "x": 0,
225 "y": 3.25, 225 "y": 3.25,
@@ -364,11 +364,6 @@
364 "y": 4.25 364 "y": 4.25
365 }, 365 },
366 { 366 {
367 "label": "\u2191",
368 "x": 14.25,
369 "y": 4.5
370 },
371 {
372 "label": "Ctrl", 367 "label": "Ctrl",
373 "x": 0, 368 "x": 0,
374 "y": 5.25, 369 "y": 5.25,
@@ -412,6 +407,11 @@
412 "y": 5.5 407 "y": 5.5
413 }, 408 },
414 { 409 {
410 "label": "\u2191",
411 "x": 14.25,
412 "y": 4.5
413 },
414 {
415 "label": "\u2193", 415 "label": "\u2193",
416 "x": 14.25, 416 "x": 14.25,
417 "y": 5.5 417 "y": 5.5
diff --git a/users/stanrc85/config.h b/users/stanrc85/config.h
index 71b915e48..ae0a66ae6 100644
--- a/users/stanrc85/config.h
+++ b/users/stanrc85/config.h
@@ -7,3 +7,9 @@
7 #define RGBLIGHT_LAYERS 7 #define RGBLIGHT_LAYERS
8 #define RGBLIGHT_SLEEP 8 #define RGBLIGHT_SLEEP
9#endif 9#endif
10
11#ifdef KEYBOARD_sneakbox_aliceclone
12 #define INDICATOR_PIN_0 D7
13 #define INDICATOR_PIN_1 D6
14 #define INDICATOR_PIN_2 D4
15#endif
diff --git a/users/stanrc85/indicator_layers_sneakbox.c b/users/stanrc85/indicator_layers_sneakbox.c
new file mode 100644
index 000000000..8aa1a41e4
--- /dev/null
+++ b/users/stanrc85/indicator_layers_sneakbox.c
@@ -0,0 +1,28 @@
1 /* Copyright 2020 Stanrc85
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17#include "stanrc85.h"
18
19layer_state_t layer_state_set_user(layer_state_t state) {
20 writePin(INDICATOR_PIN_2, layer_state_cmp(state, _FN2_60) || layer_state_cmp(state, _DEFAULT));
21 writePin(INDICATOR_PIN_1, layer_state_cmp(state, _FN1_60) || layer_state_cmp(state, _DEFAULT));
22 return state;
23}
24
25bool led_update_user(led_t led_state) {
26 writePin(INDICATOR_PIN_0, led_state.caps_lock);
27 return false;
28} \ No newline at end of file
diff --git a/users/stanrc85/rules.mk b/users/stanrc85/rules.mk
index 54f0f7626..fc2560d3a 100644
--- a/users/stanrc85/rules.mk
+++ b/users/stanrc85/rules.mk
@@ -18,6 +18,14 @@ ifeq ($(strip $(KEYBOARD)), projectkb/alice/rev2)
18 LTO_ENABLE = no 18 LTO_ENABLE = no
19 VELOCIKEY_ENABLE=yes 19 VELOCIKEY_ENABLE=yes
20endif 20endif
21ifeq ($(strip $(KEYBOARD)), sneakbox/aliceclone)
22 SRC += indicator_layers_sneakbox.c
23 #SRC += startup_fanfare.c
24 OPT_DEFS += -DHAS_INDICATORS
25 OPT_DEFS += -DHAS_ROTARY
26 VIA_ENABLE = yes
27 LTO_ENABLE = no
28endif
21ifeq ($(strip $(KEYBOARD)), tkc/osav2) 29ifeq ($(strip $(KEYBOARD)), tkc/osav2)
22 SRC += rgblight_layers_osa.c 30 SRC += rgblight_layers_osa.c
23 VIA_ENABLE = yes 31 VIA_ENABLE = yes
diff --git a/users/stanrc85/stanrc85.c b/users/stanrc85/stanrc85.c
index 2dbd41974..8bc52b0ff 100644
--- a/users/stanrc85/stanrc85.c
+++ b/users/stanrc85/stanrc85.c
@@ -44,6 +44,18 @@ void ctl_copy_reset (qk_tap_dance_state_t *state, void *user_data) {
44 } 44 }
45} 45}
46 46
47#if defined(HAS_ROTARY)
48 void encoder_update_user(uint8_t index, bool clockwise) {
49 if (index == 0) { /* First encoder */
50 if (clockwise) {
51 tap_code(KC_VOLD);
52 } else {
53 tap_code(KC_VOLU);
54 }
55 }
56 }
57#endif
58
47#if defined(HAS_INDICATORS) 59#if defined(HAS_INDICATORS)
48 static uint8_t led_user = 0; 60 static uint8_t led_user = 0;
49#endif 61#endif
@@ -55,6 +67,9 @@ void lock_unlock (qk_tap_dance_state_t *state, void *user_data) {
55 tap_code16(KC_CAD); 67 tap_code16(KC_CAD);
56 #if defined(HAS_INDICATORS) 68 #if defined(HAS_INDICATORS)
57 led_user = 0; 69 led_user = 0;
70 #if defined(KEYBOARD_sneakbox_aliceclone)
71 led_user = 1;
72 #endif
58 writePin(INDICATOR_PIN_0, !led_user); 73 writePin(INDICATOR_PIN_0, !led_user);
59 wait_ms(200); 74 wait_ms(200);
60 writePin(INDICATOR_PIN_1, !led_user); 75 writePin(INDICATOR_PIN_1, !led_user);
@@ -68,6 +83,9 @@ void lock_unlock (qk_tap_dance_state_t *state, void *user_data) {
68 tap_code16(KC_LOCK); 83 tap_code16(KC_LOCK);
69 #if defined(HAS_INDICATORS) 84 #if defined(HAS_INDICATORS)
70 led_user = 1; 85 led_user = 1;
86 #if defined(KEYBOARD_sneakbox_aliceclone)
87 led_user = 0;
88 #endif
71 writePin(INDICATOR_PIN_2, !led_user); 89 writePin(INDICATOR_PIN_2, !led_user);
72 wait_ms(200); 90 wait_ms(200);
73 writePin(INDICATOR_PIN_1, !led_user); 91 writePin(INDICATOR_PIN_1, !led_user);