aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryiancar <yiangosyiangou@cytanet.com.cy>2021-08-19 16:53:20 +0100
committerGitHub <noreply@github.com>2021-08-19 16:53:20 +0100
commit9ac0023a6a08123654ddf8cfe5028dda5fa5afa6 (patch)
tree331ff2992d80f3b7269b67c78cd726fc673bb3fa
parent49be4860f72af98d3788d5559023cc3fc9f4e08e (diff)
downloadqmk_firmware-9ac0023a6a08123654ddf8cfe5028dda5fa5afa6.tar.gz
qmk_firmware-9ac0023a6a08123654ddf8cfe5028dda5fa5afa6.zip
Add MNK50 (#14031)
* Add MNK50 * Update keyboards/mnk50/rules.mk Co-authored-by: Drashna Jaelre <drashna@live.com> * Update keyboards/mnk50/rules.mk Co-authored-by: Ryan <fauxpark@gmail.com> * Update keyboards/mnk50/readme.md hihi thanks! Co-authored-by: Ryan <fauxpark@gmail.com> * Update keyboards/mnk50/keymaps/default/readme.md Co-authored-by: Ryan <fauxpark@gmail.com> Co-authored-by: yiancar <yiancar@gmail.com> Co-authored-by: Drashna Jaelre <drashna@live.com> Co-authored-by: Ryan <fauxpark@gmail.com>
-rwxr-xr-xkeyboards/mnk50/config.h76
-rwxr-xr-xkeyboards/mnk50/info.json12
-rw-r--r--keyboards/mnk50/keymaps/default/keymap.c30
-rwxr-xr-xkeyboards/mnk50/keymaps/default/readme.md5
-rw-r--r--keyboards/mnk50/keymaps/via/keymap.c42
-rwxr-xr-xkeyboards/mnk50/keymaps/via/readme.md5
-rwxr-xr-xkeyboards/mnk50/keymaps/via/rules.mk1
-rwxr-xr-xkeyboards/mnk50/mnk50.c16
-rw-r--r--keyboards/mnk50/mnk50.h32
-rwxr-xr-xkeyboards/mnk50/readme.md32
-rwxr-xr-xkeyboards/mnk50/rules.mk27
11 files changed, 278 insertions, 0 deletions
diff --git a/keyboards/mnk50/config.h b/keyboards/mnk50/config.h
new file mode 100755
index 000000000..9e49bd5c9
--- /dev/null
+++ b/keyboards/mnk50/config.h
@@ -0,0 +1,76 @@
1/*
2Copyright 2021 Yiancar-Designs
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 0x8968
24#define PRODUCT_ID 0x4D35
25#define DEVICE_VER 0x0001
26#define MANUFACTURER Yiancar-Designs
27#define PRODUCT MNK50
28
29/* key matrix size */
30#define MATRIX_ROWS 4
31#define MATRIX_COLS 14
32
33#define MATRIX_ROW_PINS { B12, B13, A10, A6 }
34#define MATRIX_COL_PINS { B14, B15, A8, A9, A13, A14, A15, B3, B4, B5, B6, B7, B8, B9 }
35
36/* COL2ROW, ROW2COL*/
37#define DIODE_DIRECTION COL2ROW
38
39/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
40#define DEBOUNCE 5
41
42/* Ensure we jump to bootloader if the RESET keycode was pressed */
43#define EARLY_INIT_PERFORM_BOOTLOADER_JUMP TRUE
44
45/* define if matrix has ghost (lacks anti-ghosting diodes) */
46//#define MATRIX_HAS_GHOST
47
48/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
49 * This is userful for the Windows task manager shortcut (ctrl+shift+esc).
50 */
51// #define GRAVE_ESC_CTRL_OVERRIDE
52
53/*
54 * Force NKRO
55 *
56 * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
57 * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
58 * makefile for this to work.)
59 *
60 * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
61 * until the next keyboard reset.
62 *
63 * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
64 * fully operational during normal computer usage.
65 *
66 * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
67 * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
68 * bootmagic, NKRO mode will always be enabled until it is toggled again during a
69 * power-up.
70 *
71 */
72//#define FORCE_NKRO
73
74/* Bootmagic Lite key configuration */
75#define BOOTMAGIC_LITE_ROW 0
76#define BOOTMAGIC_LITE_COLUMN 0
diff --git a/keyboards/mnk50/info.json b/keyboards/mnk50/info.json
new file mode 100755
index 000000000..d92c75ed3
--- /dev/null
+++ b/keyboards/mnk50/info.json
@@ -0,0 +1,12 @@
1{
2 "keyboard_name": "MNK50",
3 "url": "https://yiancar-designs.com",
4 "maintainer": "Yiancar-Designs",
5 "width": 14,
6 "height": 4,
7 "layouts": {
8 "LAYOUT_all": {
9 "layout": [{"x":0, "y":0}, {"x":1, "y":0}, {"x":2, "y":0}, {"x":3, "y":0}, {"x":4, "y":0}, {"x":5, "y":0}, {"x":6, "y":0}, {"x":7, "y":0}, {"x":8, "y":0}, {"x":9, "y":0}, {"x":10, "y":0}, {"x":11, "y":0}, {"x":12, "y":0}, {"x":13, "y":0}, {"x":0, "y":1, "w":1.25}, {"x":1.25, "y":1}, {"x":2.25, "y":1}, {"x":3.25, "y":1}, {"x":4.25, "y":1}, {"x":5.25, "y":1}, {"x":6.25, "y":1}, {"x":7.25, "y":1}, {"x":8.25, "y":1}, {"x":9.25, "y":1}, {"x":10.25, "y":1}, {"x":11.25, "y":1}, {"x":12.25, "y":1, "w":1.75}, {"x":0, "y":2, "w":1.75}, {"x":1.75, "y":2}, {"x":2.75, "y":2}, {"x":3.75, "y":2}, {"x":4.75, "y":2}, {"x":5.75, "y":2}, {"x":6.75, "y":2}, {"x":7.75, "y":2}, {"x":8.75, "y":2}, {"x":9.75, "y":2}, {"x":10.75, "y":2}, {"x":11.75, "y":2, "w":1.25}, {"x":13, "y":2}, {"x":1.25, "y":3}, {"x":2.25, "y":3, "w":1.25}, {"x":3.5, "y":3}, {"x":4.5, "y":3, "w":2.25}, {"x":6.75, "y":3, "w":2.75}, {"x":9.5, "y":3}, {"x":10.5, "y":3, "w":1.25}, {"x":11.75, "y":3}]
10 }
11 }
12}
diff --git a/keyboards/mnk50/keymaps/default/keymap.c b/keyboards/mnk50/keymaps/default/keymap.c
new file mode 100644
index 000000000..9c35dc689
--- /dev/null
+++ b/keyboards/mnk50/keymaps/default/keymap.c
@@ -0,0 +1,30 @@
1/* Copyright 2021 Yiancar-Designs
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[0] = LAYOUT_all( /* Base */
20 KC_GESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSPC,
21 KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT,
22 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, MO(1),
23 KC_LGUI, KC_LALT, KC_SPC, KC_SPC, KC_SPC, KC_SPC, KC_SPC, KC_RALT, KC_LCTL),
24
25[1] = LAYOUT_all( /* FN */
26 KC_GRV, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_DEL,
27 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_PSCR, KC_SLCK, KC_PAUS, KC_TRNS,
28 KC_TRNS, KC_VOLD, KC_VOLU, KC_MUTE, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_HOME, KC_PGUP, KC_TRNS,
29 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_END, KC_PGDN)
30};
diff --git a/keyboards/mnk50/keymaps/default/readme.md b/keyboards/mnk50/keymaps/default/readme.md
new file mode 100755
index 000000000..b78cf9401
--- /dev/null
+++ b/keyboards/mnk50/keymaps/default/readme.md
@@ -0,0 +1,5 @@
1# The default keymap for MNK50
2
3![Layer 0](https://i.imgur.com/8R4AXY5.png)
4
5![Layer 1](https://i.imgur.com/U8tLYCY.png)
diff --git a/keyboards/mnk50/keymaps/via/keymap.c b/keyboards/mnk50/keymaps/via/keymap.c
new file mode 100644
index 000000000..7e8f4f138
--- /dev/null
+++ b/keyboards/mnk50/keymaps/via/keymap.c
@@ -0,0 +1,42 @@
1/* Copyright 2021 Yiancar-Designs
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[0] = LAYOUT_all( /* Base */
20 KC_GESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSPC,
21 KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT,
22 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, MO(1),
23 KC_LGUI, KC_LALT, KC_SPC, KC_SPC, KC_SPC, KC_SPC, KC_SPC, KC_RALT, KC_LCTL),
24
25[1] = LAYOUT_all( /* FN */
26 KC_GRV, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_DEL,
27 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_PSCR, KC_SLCK, KC_PAUS, KC_TRNS,
28 KC_TRNS, KC_VOLD, KC_VOLU, KC_MUTE, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_HOME, KC_PGUP, KC_TRNS,
29 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_END, KC_PGDN),
30
31[2] = LAYOUT_all( /* Empty for dynamic keymaps */
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,
33 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,
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 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS),
36
37[3] = LAYOUT_all( /* Empty for dynamic keymaps */
38 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,
39 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,
40 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,
41 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS)
42};
diff --git a/keyboards/mnk50/keymaps/via/readme.md b/keyboards/mnk50/keymaps/via/readme.md
new file mode 100755
index 000000000..9c61657a7
--- /dev/null
+++ b/keyboards/mnk50/keymaps/via/readme.md
@@ -0,0 +1,5 @@
1# The default keymap for MNK50s. VIA support enabled.
2
3![Layer 0](https://i.imgur.com/8R4AXY5.png)
4
5![Layer 1](https://i.imgur.com/U8tLYCY.png) \ No newline at end of file
diff --git a/keyboards/mnk50/keymaps/via/rules.mk b/keyboards/mnk50/keymaps/via/rules.mk
new file mode 100755
index 000000000..1e5b99807
--- /dev/null
+++ b/keyboards/mnk50/keymaps/via/rules.mk
@@ -0,0 +1 @@
VIA_ENABLE = yes
diff --git a/keyboards/mnk50/mnk50.c b/keyboards/mnk50/mnk50.c
new file mode 100755
index 000000000..0e833dc7b
--- /dev/null
+++ b/keyboards/mnk50/mnk50.c
@@ -0,0 +1,16 @@
1/* Copyright 2021 Yiancar-Designs
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 "mnk50.h"
diff --git a/keyboards/mnk50/mnk50.h b/keyboards/mnk50/mnk50.h
new file mode 100644
index 000000000..23b892907
--- /dev/null
+++ b/keyboards/mnk50/mnk50.h
@@ -0,0 +1,32 @@
1/* Copyright 2021 Yiancar-Designs
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#define XXX KC_NO
19
20#include "quantum.h"
21
22#define LAYOUT_all( \
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, K1D, \
25 K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2D, \
26 K31, K32, K33, K35, K36, K37, K39, K3A, K3B \
27) { \
28 { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D }, \
29 { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, XXX, K1D }, \
30 { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, XXX, K2D }, \
31 { XXX, K31, K32, K33, XXX, K35, K36, K37, XXX, K39, K3A, K3B, XXX, XXX } \
32}
diff --git a/keyboards/mnk50/readme.md b/keyboards/mnk50/readme.md
new file mode 100755
index 000000000..f8484e9d3
--- /dev/null
+++ b/keyboards/mnk50/readme.md
@@ -0,0 +1,32 @@
1# MNK40
2
3This is a 40% keyboard. It supports VIA.
4
5* Keyboard Maintainer: [Yiancar](http://yiancar-designs.com/) and on [GitHub](https://github.com/yiancar)
6* Hardware Supported: A 40% keyboard with STM32F072CB
7* Hardware Availability: https://www.monokei.co
8
9## Instructions
10
11### Build
12
13Make example for this keyboard (after setting up your build environment):
14
15 make mnk50:default
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).
18
19### Reset
20
21- Unplug
22- Hold Escape
23- Plug In
24- Unplug
25- Release Escape
26
27### Flash
28
29- Unplug
30- Hold Escape
31- Plug In
32- Flash using QMK Toolbox or CLI (`make mnk50:<keymap>:flash`)
diff --git a/keyboards/mnk50/rules.mk b/keyboards/mnk50/rules.mk
new file mode 100755
index 000000000..6a7c2ca63
--- /dev/null
+++ b/keyboards/mnk50/rules.mk
@@ -0,0 +1,27 @@
1# MCU name
2MCU = STM32F072
3
4# Bootloader selection
5BOOTLOADER = stm32-dfu
6
7# Do not put the microcontroller into power saving mode
8# when we get USB suspend event. We want it to keep updating
9# backlight effects.
10OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
11
12# Build Options
13# change yes to no to disable
14#
15BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
16MOUSEKEY_ENABLE = yes # Mouse keys
17EXTRAKEY_ENABLE = yes # Audio control and System control
18CONSOLE_ENABLE = no # Console for debug
19COMMAND_ENABLE = no # Commands for debug and configuration
20# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
21SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
22# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
23NKRO_ENABLE = yes # USB Nkey Rollover
24BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
25RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
26BLUETOOTH_ENABLE = no # Enable Bluetooth
27AUDIO_ENABLE = no # Audio output