aboutsummaryrefslogtreecommitdiff
path: root/keyboards/mini_ten_key_plus
diff options
context:
space:
mode:
authorminibois <themrminimario@gmail.com>2021-12-25 02:27:16 +0100
committerGitHub <noreply@github.com>2021-12-24 17:27:16 -0800
commit17c87710002c3993ce86f8dc6a96c940dedc1da8 (patch)
treef768eb55c417726b10c8a7dd3a76dafc6af16027 /keyboards/mini_ten_key_plus
parent57a1d04d381e9c71bbd19b21f408cee1a756c1ca (diff)
downloadqmk_firmware-17c87710002c3993ce86f8dc6a96c940dedc1da8.tar.gz
qmk_firmware-17c87710002c3993ce86f8dc6a96c940dedc1da8.zip
[Keyboard] Add mini_ten_key_plus (#15568)
Co-authored-by: Drashna Jaelre <drashna@live.com> Co-authored-by: Ryan <fauxpark@gmail.com>
Diffstat (limited to 'keyboards/mini_ten_key_plus')
-rw-r--r--keyboards/mini_ten_key_plus/config.h110
-rw-r--r--keyboards/mini_ten_key_plus/info.json25
-rw-r--r--keyboards/mini_ten_key_plus/keymaps/default/keymap.c32
-rw-r--r--keyboards/mini_ten_key_plus/keymaps/default/readme.md2
-rw-r--r--keyboards/mini_ten_key_plus/keymaps/standard_numpad/keymap.c32
-rw-r--r--keyboards/mini_ten_key_plus/keymaps/standard_numpad/readme.md2
-rw-r--r--keyboards/mini_ten_key_plus/mini_ten_key_plus.c15
-rw-r--r--keyboards/mini_ten_key_plus/mini_ten_key_plus.h78
-rw-r--r--keyboards/mini_ten_key_plus/readme.md24
-rw-r--r--keyboards/mini_ten_key_plus/rules.mk19
10 files changed, 339 insertions, 0 deletions
diff --git a/keyboards/mini_ten_key_plus/config.h b/keyboards/mini_ten_key_plus/config.h
new file mode 100644
index 000000000..92ac355fe
--- /dev/null
+++ b/keyboards/mini_ten_key_plus/config.h
@@ -0,0 +1,110 @@
1/*
2Copyright 2021 minibois
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 minibois
27#define PRODUCT mini_ten_key_plus
28
29/* key matrix size */
30#define MATRIX_ROWS 5
31#define MATRIX_COLS 5
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 { D4, B1, B5, B4, E6 }
44#define MATRIX_COL_PINS { F5, F4, B6, D7, C6 }
45#define ENCODERS_PAD_A { F7 }
46#define ENCODERS_PAD_B { F6 }
47#define UNUSED_PINS
48
49/* COL2ROW, ROW2COL */
50#define DIODE_DIRECTION COL2ROW
51
52/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
53#define DEBOUNCE 5
54
55/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
56#define LOCKING_SUPPORT_ENABLE
57/* Locking resynchronize hack */
58#define LOCKING_RESYNC_ENABLE
59
60/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
61 * This is useful for the Windows task manager shortcut (ctrl+shift+esc).
62 */
63//#define GRAVE_ESC_CTRL_OVERRIDE
64
65/*
66 * Force NKRO
67 *
68 * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
69 * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
70 * makefile for this to work.)
71 *
72 * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
73 * until the next keyboard reset.
74 *
75 * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
76 * fully operational during normal computer usage.
77 *
78 * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
79 * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
80 * bootmagic, NKRO mode will always be enabled until it is toggled again during a
81 * power-up.
82 *
83 */
84//#define FORCE_NKRO
85
86/*
87 * Feature disable options
88 * These options are also useful to firmware size reduction.
89 */
90
91/* disable debug print */
92//#define NO_DEBUG
93
94/* disable print */
95//#define NO_PRINT
96
97/* disable action features */
98//#define NO_ACTION_LAYER
99//#define NO_ACTION_TAPPING
100//#define NO_ACTION_ONESHOT
101
102/* disable these deprecated features by default */
103#define NO_ACTION_MACRO
104#define NO_ACTION_FUNCTION
105
106/* Bootmagic Lite key configuration */
107//#define BOOTMAGIC_LITE_ROW 0
108//#define BOOTMAGIC_LITE_COLUMN 0
109
110#define ENCODER_RESOLUTION 2
diff --git a/keyboards/mini_ten_key_plus/info.json b/keyboards/mini_ten_key_plus/info.json
new file mode 100644
index 000000000..c300a0bcf
--- /dev/null
+++ b/keyboards/mini_ten_key_plus/info.json
@@ -0,0 +1,25 @@
1{
2 "keyboard_name": "mini_ten_key_plus",
3 "url": "https://github.com/minibois/ten-key-plus",
4 "maintainer": "minibois",
5 "layouts": {
6 "LAYOUT_all": {
7 "layout":[
8 {"label":"Esc", "x":0, "y":0} ,{"label":"Calculator", "x":1, "y":0},{"label":"/", "x":2, "y":0},{"label":"*", "x":3, "y":0},{"label":"-", "x":4, "y":0},
9 {"label":"Backspace", "x":0, "y":1},{"label":"7", "x":1, "y":1} ,{"label":"8", "x":2, "y":1},{"label":"9", "x":3, "y":1},{"label":"+", "x":4, "y":1},
10 {"label":"(", "x":0, "y":2} ,{"label":"4", "x":1, "y":2} ,{"label":"5", "x":2, "y":2},{"label":"6", "x":3, "y":2},{"label":"+", "x":4, "y":2},
11 {"label":")", "x":0, "y":3} ,{"label":"1", "x":1, "y":3} ,{"label":"2", "x":2, "y":3},{"label":"3", "x":3, "y":3},{"label":"Enter", "x":4, "y":3},
12 {"label":"y", "x":0, "y":4} ,{"label":"00", "x":1, "y":4} ,{"label":"0", "x":2, "y":4},{"label":".", "x":3, "y":4},{"label":"Enter", "x":4, "y":4},
13 ]
14 },
15 "LAYOUT_standard_numpad": {
16 "layout":[
17 {"label":"Esc", "x":0, "y":0} ,{"label":"Calculator", "x":1, "y":0},{"label":"/", "x":2, "y":0},{"label":"*", "x":3, "y":0},{"label":"-", "x":4, "y":0},
18 {"label":"Backspace", "x":0, "y":1},{"label":"7", "x":1, "y":1} ,{"label":"8", "x":2, "y":1},{"label":"9", "x":3, "y":1},
19 {"label":"(", "x":0, "y":2} ,{"label":"4", "x":1, "y":2} ,{"label":"5", "x":2, "y":2},{"label":"6", "x":3, "y":2},{"label":"+", "x":4, "y":2, "h":2},
20 {"label":")", "x":0, "y":3} ,{"label":"1", "x":1, "y":3} ,{"label":"2", "x":2, "y":3},{"label":"3", "x":3, "y":3},
21 {"label":"y", "x":0, "y":4} ,{"label":"0", "x":1, "y":4 ,"w":2} ,{"label":".", "x":3, "y":4},{"label":"Enter", "x":4, "y":3, "h":2},
22 ]
23 }
24 }
25}
diff --git a/keyboards/mini_ten_key_plus/keymaps/default/keymap.c b/keyboards/mini_ten_key_plus/keymaps/default/keymap.c
new file mode 100644
index 000000000..dee77629a
--- /dev/null
+++ b/keyboards/mini_ten_key_plus/keymaps/default/keymap.c
@@ -0,0 +1,32 @@
1// Copyright 2021 minibois (@minibois)
2// SPDX-License-Identifier: GPL-2.0-or-later
3
4#include QMK_KEYBOARD_H
5
6// Defines names for use in layer keycodes and the keymap
7enum layer_names {
8 _BASE
9};
10
11const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
12 /* Keymap _BASE: (Base Layer) Default Layer
13 * ,-------------------.
14 * |Esc|Cal| / | * | - |
15 * |--------------------
16 * | BS| 7 | 8 | 9 | + |
17 * |--------------------
18 * | ( | 4 | 5 | 6 | + |
19 * |--------------------
20 * | ) | 1 | 2 | 3 |Ent|
21 * |--------------------
22 * | Y | 00| 0 | . |Ent|
23 * `-------------------'
24 */
25 [_BASE] = LAYOUT_all(
26 KC_ESC, KC_CALC, KC_PSLS, KC_PAST, KC_PMNS,
27 KC_BSPC, KC_P7, KC_P8, KC_P9, KC_PPLS,
28 KC_LEFT_PAREN, KC_P4, KC_P5, KC_P6, KC_PPLS,
29 KC_RIGHT_PAREN, KC_P1, KC_P2, KC_P3, KC_PENT,
30 KC_Y, KC_P0, KC_P0, KC_PDOT, KC_PENT
31 )
32};
diff --git a/keyboards/mini_ten_key_plus/keymaps/default/readme.md b/keyboards/mini_ten_key_plus/keymaps/default/readme.md
new file mode 100644
index 000000000..a8f697f2c
--- /dev/null
+++ b/keyboards/mini_ten_key_plus/keymaps/default/readme.md
@@ -0,0 +1,2 @@
1# The default 1u keymap for mini_ten_key_plus
2![mini_ten_key_plus](https://imgur.com/VuSTwfC.png) \ No newline at end of file
diff --git a/keyboards/mini_ten_key_plus/keymaps/standard_numpad/keymap.c b/keyboards/mini_ten_key_plus/keymaps/standard_numpad/keymap.c
new file mode 100644
index 000000000..cc3fa03da
--- /dev/null
+++ b/keyboards/mini_ten_key_plus/keymaps/standard_numpad/keymap.c
@@ -0,0 +1,32 @@
1// Copyright 2021 minibois (@minibois)
2// SPDX-License-Identifier: GPL-2.0-or-later
3
4#include QMK_KEYBOARD_H
5
6// Defines names for use in layer keycodes and the keymap
7enum layer_names {
8 _BASE
9};
10
11const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
12 /* Keymap _BASE: (Base Layer) Default Layer
13 * ,-------------------.
14 * |Esc|Cal| / | * | - |
15 * |--------------------
16 * | BS| 7 | 8 | 9 | + |
17 * |---------------- |
18 * | ( | 4 | 5 | 6 | |
19 * |--------------------
20 * | ) | 1 | 2 | 3 |Ent|
21 * |---------------- |
22 * | Y | 0 | . | |
23 * `-------------------'
24 */
25 [_BASE] = LAYOUT_standard_numpad(
26 KC_ESC, KC_CALC, KC_PSLS, KC_PAST, KC_PMNS,
27 KC_BSPC, KC_P7, KC_P8, KC_P9,
28 KC_LEFT_PAREN, KC_P4, KC_P5, KC_P6, KC_PPLS,
29 KC_RIGHT_PAREN, KC_P1, KC_P2, KC_P3,
30 KC_Y, KC_P0, KC_PDOT, KC_PENT
31 )
32};
diff --git a/keyboards/mini_ten_key_plus/keymaps/standard_numpad/readme.md b/keyboards/mini_ten_key_plus/keymaps/standard_numpad/readme.md
new file mode 100644
index 000000000..2cb470bef
--- /dev/null
+++ b/keyboards/mini_ten_key_plus/keymaps/standard_numpad/readme.md
@@ -0,0 +1,2 @@
1# The standard numpad keymap for mini_ten_key_plus
2![mini_ten_key_plus](https://imgur.com/x2BUc9J.png) \ No newline at end of file
diff --git a/keyboards/mini_ten_key_plus/mini_ten_key_plus.c b/keyboards/mini_ten_key_plus/mini_ten_key_plus.c
new file mode 100644
index 000000000..b2b7456b5
--- /dev/null
+++ b/keyboards/mini_ten_key_plus/mini_ten_key_plus.c
@@ -0,0 +1,15 @@
1// Copyright 2021 minibois (@minibois)
2// SPDX-License-Identifier: GPL-2.0-or-later
3
4#include "mini_ten_key_plus.h"
5
6/* Rotary Encoder's function (currently volume up/down) */
7bool encoder_update_kb(uint8_t index, bool clockwise) {
8 if (!encoder_update_user(index, clockwise)) { return false; }
9 if (clockwise) {
10 tap_code16(KC_RIGHT_PAREN);
11 } else {
12 tap_code16(KC_LEFT_PAREN);
13 }
14 return true;
15} \ No newline at end of file
diff --git a/keyboards/mini_ten_key_plus/mini_ten_key_plus.h b/keyboards/mini_ten_key_plus/mini_ten_key_plus.h
new file mode 100644
index 000000000..fef3b6a8c
--- /dev/null
+++ b/keyboards/mini_ten_key_plus/mini_ten_key_plus.h
@@ -0,0 +1,78 @@
1/* Copyright 2021 minibois
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// readability
22#define ___ KC_NO
23
24/* Default
25 * ,-------------------.
26 * |00 |01 |02 |03 |04 |
27 * |-------------------|
28 * |10 |11 |12 |13 |14 |
29 * |-------------------|
30 * |20 |21 |22 |23 |24 |
31 * |-------------------|
32 * |30 |31 |32 |33 |34 |
33 * |-------------------|
34 * |40 |41 |42 |43 |44 |
35 * `-------------------'
36*/
37#define LAYOUT_all( \
38 k00, k01, k02, k03, k04 , \
39 k10, k11, k12, k13, k14 , \
40 k20, k21, k22, k23, k24 , \
41 k30, k31, k32, k33, k34 , \
42 k40, k41, k42, k43, k44 \
43) \
44{ \
45 { k00, k01, k02, k03, k04, }, \
46 { k10, k11, k12, k13, k14, }, \
47 { k20, k21, k22, k23, k24, }, \
48 { k30, k31, k32, k33, k34, }, \
49 { k40, k41, k42, k43, k44, } \
50}
51
52/* Standard Numpad
53 * ,-------------------.
54 * |00 |01 |02 |03 |04 |
55 * |-------------------|
56 * |10 |11 |12 |13 | |
57 * |---------------|14 |
58 * |20 |21 |22 |23 | |
59 * |-------------------|
60 * |30 |31 |32 |33 | |
61 * |---------------|34 |
62 * |40 | 41 |43 | |
63 * `-------------------'
64*/
65#define LAYOUT_standard_numpad( \
66 k00, k01, k02, k03, k04 , \
67 k10, k11, k12, k13, \
68 k20, k21, k22, k23, k24 , \
69 k30, k31, k32, k33, \
70 k40, k42, k43, k44 \
71) \
72{ \
73 { k00, k01, k02, k03, k04, }, \
74 { k10, k11, k12, k13, ___, }, \
75 { k20, k21, k22, k23, k24, }, \
76 { k30, k31, k32, k33, ___, }, \
77 { k40, ___, k42, k43, k44, } \
78}
diff --git a/keyboards/mini_ten_key_plus/readme.md b/keyboards/mini_ten_key_plus/readme.md
new file mode 100644
index 000000000..12afcc4f1
--- /dev/null
+++ b/keyboards/mini_ten_key_plus/readme.md
@@ -0,0 +1,24 @@
1# mini_ten_key_plus
2
3![mini_ten_key_plus](https://imgur.com/QtFFONgl.jpg)
4
5A 5x5 numpad/macropad, with support for a rotary encoder running on a Pro Micro.
6
7* Keyboard Maintainer: [minibois](https://github.com/minibois)
8* Hardware Supported: mini_ten_key_plus PCB, Pro Micro (or equivalent), 3D printed case, 22 - 25 MX (like) switches, PCB mount stabilizers
9* Hardware Availability: https://github.com/minibois/ten-key-plus
10
11Make example for this keyboard (after setting up your build environment):
12
13 make mini_ten_key_plus:default
14
15Flashing example for this keyboard:
16
17 make mini_ten_key_plus: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).
20
21## Bootloader
22
23Enter the bootloader:
24* **Physical reset button**: Briefly press the button on the back of the PCB
diff --git a/keyboards/mini_ten_key_plus/rules.mk b/keyboards/mini_ten_key_plus/rules.mk
new file mode 100644
index 000000000..77d9fdb41
--- /dev/null
+++ b/keyboards/mini_ten_key_plus/rules.mk
@@ -0,0 +1,19 @@
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 = yes # Enable Bootmagic Lite
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
15NKRO_ENABLE = no # Enable N-Key Rollover
16BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
17RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
18AUDIO_ENABLE = no # Audio output
19ENCODER_ENABLE = yes