aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--keyboards/lizard_trick/tenkey_plusplus/config.h159
-rw-r--r--keyboards/lizard_trick/tenkey_plusplus/info.json38
-rw-r--r--keyboards/lizard_trick/tenkey_plusplus/keymaps/default/keymap.c78
-rw-r--r--keyboards/lizard_trick/tenkey_plusplus/keymaps/macro/keymap.c103
-rw-r--r--keyboards/lizard_trick/tenkey_plusplus/readme.md25
-rw-r--r--keyboards/lizard_trick/tenkey_plusplus/rules.mk23
-rw-r--r--keyboards/lizard_trick/tenkey_plusplus/tenkey_plusplus.c18
-rw-r--r--keyboards/lizard_trick/tenkey_plusplus/tenkey_plusplus.h45
8 files changed, 489 insertions, 0 deletions
diff --git a/keyboards/lizard_trick/tenkey_plusplus/config.h b/keyboards/lizard_trick/tenkey_plusplus/config.h
new file mode 100644
index 000000000..d962e67da
--- /dev/null
+++ b/keyboards/lizard_trick/tenkey_plusplus/config.h
@@ -0,0 +1,159 @@
1/*
2Copyright 2020 Jonathon Carstens jonathon@lizardtrick.com
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 Lizard Trick Electronics
27#define PRODUCT Tenkey++
28
29/* key matrix size */
30#define MATRIX_ROWS 6
31#define MATRIX_COLS 4
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
44#define MATRIX_ROW_PINS { B7, D4, B5, B6, C6, C7, }
45#define MATRIX_COL_PINS { D5, D3, D2, F7 }
46#define UNUSED_PINS
47
48#define ENCODERS_PAD_A \
49 { B4, F0, F4 }
50#define ENCODERS_PAD_B \
51 { D7, E6, F1 }
52
53/* COL2ROW, ROW2COL*/
54#define DIODE_DIRECTION COL2ROW
55
56/*
57 * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN.
58 */
59//#define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6
60
61//#define LED_NUM_LOCK_PIN B0
62//#define LED_CAPS_LOCK_PIN B1
63//#define LED_SCROLL_LOCK_PIN B2
64//#define LED_COMPOSE_PIN B3
65//#define LED_KANA_PIN B4
66
67//#define BACKLIGHT_PIN B7
68//#define BACKLIGHT_LEVELS 3
69//#define BACKLIGHT_BREATHING
70
71//#define RGB_DI_PIN E2
72//#ifdef RGB_DI_PIN
73//# define RGBLED_NUM 16
74//# define RGBLIGHT_HUE_STEP 8
75//# define RGBLIGHT_SAT_STEP 8
76//# define RGBLIGHT_VAL_STEP 8
77//# define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
78//# define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
79/*== all animations enable ==*/
80//# define RGBLIGHT_ANIMATIONS
81/*== or choose animations ==*/
82//# define RGBLIGHT_EFFECT_BREATHING
83//# define RGBLIGHT_EFFECT_RAINBOW_MOOD
84//# define RGBLIGHT_EFFECT_RAINBOW_SWIRL
85//# define RGBLIGHT_EFFECT_SNAKE
86//# define RGBLIGHT_EFFECT_KNIGHT
87//# define RGBLIGHT_EFFECT_CHRISTMAS
88//# define RGBLIGHT_EFFECT_STATIC_GRADIENT
89//# define RGBLIGHT_EFFECT_RGB_TEST
90//# define RGBLIGHT_EFFECT_ALTERNATING
91/*== customize breathing effect ==*/
92/*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/
93//# define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64
94/*==== use exp() and sin() ====*/
95//# define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7
96//# define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255
97//#endif
98
99/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
100#define DEBOUNCE 5
101
102/* define if matrix has ghost (lacks anti-ghosting diodes) */
103//#define MATRIX_HAS_GHOST
104
105/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
106#define LOCKING_SUPPORT_ENABLE
107
108/* Locking resynchronize hack */
109#define LOCKING_RESYNC_ENABLE
110
111/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
112 * This is useful for the Windows task manager shortcut (ctrl+shift+esc).
113 */
114//#define GRAVE_ESC_CTRL_OVERRIDE
115
116/*
117 * Force NKRO
118 *
119 * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
120 * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
121 * makefile for this to work.)
122 *
123 * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
124 * until the next keyboard reset.
125 *
126 * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
127 * fully operational during normal computer usage.
128 *
129 * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
130 * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
131 * bootmagic, NKRO mode will always be enabled until it is toggled again during a
132 * power-up.
133 *
134 */
135//#define FORCE_NKRO
136
137/*
138 * Feature disable options
139 * These options are also useful to firmware size reduction.
140 */
141
142/* disable debug print */
143//#define NO_DEBUG
144
145/* disable print */
146//#define NO_PRINT
147
148/* disable action features */
149//#define NO_ACTION_LAYER
150//#define NO_ACTION_TAPPING
151//#define NO_ACTION_ONESHOT
152
153/* disable these deprecated features by default */
154#define NO_ACTION_MACRO
155#define NO_ACTION_FUNCTION
156
157/* Bootmagic Lite key configuration */
158//#define BOOTMAGIC_LITE_ROW 0
159//#define BOOTMAGIC_LITE_COLUMN 0
diff --git a/keyboards/lizard_trick/tenkey_plusplus/info.json b/keyboards/lizard_trick/tenkey_plusplus/info.json
new file mode 100644
index 000000000..b81f83763
--- /dev/null
+++ b/keyboards/lizard_trick/tenkey_plusplus/info.json
@@ -0,0 +1,38 @@
1{
2 "keyboard_name": "tenkey_plusplus",
3 "url": "https://github.com/jonbobcar/tenkey_plusplus",
4 "maintainer": "Jonathon Carstens",
5 "width": 4,
6 "height": 5,
7 "layouts": {
8 "default": {
9 "LAYOUT": [
10 {"label": "Mute", "x": 0, "y": 0, "w": 1.3},
11 {"label": "MDPL", "x": 1.3, "y": 0, "w": 1.4},
12 {"label": "MDNX", "x": 2.7, "y": 0, "w": 1.3},
13
14 {"label": "Num Lock", "x": 0, "y": 1},
15 {"label": "/", "x": 1, "y": 1},
16 {"label": "*", "x": 2, "y": 1},
17 {"label": "-", "x": 3, "y": 1},
18
19 {"label": "7", "x": 0, "y": 2},
20 {"label": "8", "x": 1, "y": 2},
21 {"label": "9", "x": 2, "y": 2},
22 {"label": "+", "x": 3, "y": 2, "h": 2},
23
24 {"label": "4", "x": 0, "y": 3},
25 {"label": "5", "x": 1, "y": 3},
26 {"label": "6", "x": 2, "y": 3},
27
28 {"label": "1", "x": 0, "y": 4},
29 {"label": "2", "x": 1, "y": 4},
30 {"label": "3", "x": 2, "y": 4},
31 {"label": "Enter", "x": 3, "y": 4, "h" :2},
32
33 {"label": "0", "x": 0, "y": 5, "w": 2},
34 {"label": ".", "x": 2, "y": 5}
35 ]
36 }
37 }
38}
diff --git a/keyboards/lizard_trick/tenkey_plusplus/keymaps/default/keymap.c b/keyboards/lizard_trick/tenkey_plusplus/keymaps/default/keymap.c
new file mode 100644
index 000000000..f785ed97f
--- /dev/null
+++ b/keyboards/lizard_trick/tenkey_plusplus/keymaps/default/keymap.c
@@ -0,0 +1,78 @@
1/*
2Copyright 2020 Jonathon Carstens jonathon@lizardtrick.com
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#include QMK_KEYBOARD_H
19
20// Defines names for use in layer keycodes and the keymap
21enum layer_names {
22 _BASE,
23};
24
25const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
26 /*
27 *
28 * Left Middle Right
29 * VolDn PgDn Alt+Tab (Rotary Counterclockwise)
30 * VolUp PgUp Tab (Rotary Clockwise)
31 * Mute Play Next (Rotary Click)
32 *
33 *
34 *
35 * ┌───┬───┬───┬───┐
36 * │TG1│ / │ * │ - │
37 * ├───┼───┼───┼───┤
38 * │ 7 │ 8 │ 9 │   │
39 * ├───┼───┼───┤ + │
40 * │ 4 │ 5 │ 6 │   │
41 * ├───┼───┼───┼───┤
42 * │ 1 │ 2 │ 3 │   │
43 * ├───┴───┼───┤Ent│
44 * │   0   │ . │   │
45 * └───────┴───┴───┘
46 */
47
48 [_BASE] = LAYOUT(
49 KC_MUTE, KC_MPLY, KC_MNXT,
50 KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS,
51 KC_P7, KC_P8, KC_P9, KC_PPLS,
52 KC_P4, KC_P5, KC_P6,
53 KC_P1, KC_P2, KC_P3, KC_PENT,
54 KC_P0, KC_PDOT
55 )
56};
57
58void encoder_update_user(uint8_t index, bool clockwise) {
59 if (index == 0) { /* Left Encoder */
60 if (clockwise) {
61 tap_code16(KC_VOLU);
62 } else {
63 tap_code16(KC_VOLD);
64 }
65 } else if (index == 1) { /* Middle Encoder */
66 if (clockwise) {
67 tap_code16(KC_PGDN);
68 } else {
69 tap_code16(KC_PGUP);
70 }
71 } else if (index == 2) { /* Right Encoder */
72 if (clockwise) {
73 tap_code16(KC_TAB);
74 } else {
75 tap_code16(S(KC_TAB));
76 }
77 }
78}
diff --git a/keyboards/lizard_trick/tenkey_plusplus/keymaps/macro/keymap.c b/keyboards/lizard_trick/tenkey_plusplus/keymaps/macro/keymap.c
new file mode 100644
index 000000000..900bb0a01
--- /dev/null
+++ b/keyboards/lizard_trick/tenkey_plusplus/keymaps/macro/keymap.c
@@ -0,0 +1,103 @@
1/*
2Copyright 2020 Jonathon Carstens jonathon@lizardtrick.com
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#include QMK_KEYBOARD_H
19
20// Defines names for use in layer keycodes and the keymap
21enum layer_names {
22 _BASE,
23 _TG1,
24};
25
26const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
27 /*
28 *
29 * Left Middle Right
30 * VolDn PgDn Alt+Tab (Rotary Counterclockwise)
31 * VolUp PgUp Tab (Rotary Clockwise)
32 * Mute Play Next (Rotary Click)
33 *
34 *
35 *
36 * ┌───┬───┬───┬───┐
37 * │TG1│ / │ * │ - │
38 * ├───┼───┼───┼───┤
39 * │ 7 │ 8 │ 9 │   │
40 * ├───┼───┼───┤ + │
41 * │ 4 │ 5 │ 6 │   │
42 * ├───┼───┼───┼───┤
43 * │ 1 │ 2 │ 3 │   │
44 * ├───┴───┼───┤Ent│
45 * │   0   │ . │   │
46 * └───────┴───┴───┘
47 */
48
49 [_BASE] = LAYOUT(
50 KC_MUTE, KC_MPLY, KC_MNXT,
51 TG(1), KC_SLSH, KC_ASTR, KC_MINS,
52 KC_7, KC_8, KC_9, KC_PLUS,
53 KC_4, KC_5, KC_6,
54 KC_1, KC_2, KC_3, KC_ENT,
55 KC_0, KC_DOT
56 ),
57
58 /*
59 *
60 * ┌─────────┬─────────┬─────────┬─────────┐
61 * │ TG1 │  /  │  *  │  -  │
62 * ├─────────┼─────────┼─────────┼─────────┤
63 * │  Alt 7  │  Alt 8  │  Alt 9  │    │
64 * ├─────────┼─────────┼─────────┤ + │
65 * │  Alt 4  │  Alt 5  │  Alt 6  │    │
66 * ├─────────┼─────────┼─────────┼─────────┤
67 * │  Alt 1  │  Alt 2  │  Alt 3  │    │
68 * ├─────────┴─────────┼─────────┤ Ent │
69 * │ Escape │ Del │    │
70 * └───────────────────┴─────────┴─────────┘
71 */
72
73 [_TG1] = LAYOUT(
74 _______, _______, _______,
75 _______, _______, _______, _______,
76 A(KC_7), A(KC_8), A(KC_9), _______,
77 A(KC_4), A(KC_5), A(KC_6),
78 A(KC_1), A(KC_2), A(KC_3), _______,
79 KC_ESC, KC_DEL
80 )
81};
82
83void encoder_update_user(uint8_t index, bool clockwise) {
84 if (index == 0) { /* Left Encoder */
85 if (clockwise) {
86 tap_code16(KC_VOLU);
87 } else {
88 tap_code16(KC_VOLD);
89 }
90 } else if (index == 1) { /* Middle Encoder */
91 if (clockwise) {
92 tap_code16(KC_PGDN);
93 } else {
94 tap_code16(KC_PGUP);
95 }
96 } else if (index == 2) { /* Right Encoder */
97 if (clockwise) {
98 tap_code16(KC_TAB);
99 } else {
100 tap_code16(S(KC_TAB));
101 }
102 }
103}
diff --git a/keyboards/lizard_trick/tenkey_plusplus/readme.md b/keyboards/lizard_trick/tenkey_plusplus/readme.md
new file mode 100644
index 000000000..9687719dd
--- /dev/null
+++ b/keyboards/lizard_trick/tenkey_plusplus/readme.md
@@ -0,0 +1,25 @@
1# Tenkey++
2
3![TK++](https://i.imgur.com/DOJUgltl.jpg)
4
5Tenkey++ is a USB-C hotswap numpad with the layout of a standard 10-key. Tenkey++ also has three rotary encoders at the top for additional functionality.
6
7* Keyboard Maintainer: [Jonathon Carstens](https://github.com/jonbobcar) :: [jonathon@lizardtrick.com](mailto:jonathon@lizardtrick.com)
8* Hardware Source Files: [Tenkey++ GitHub Repository](https://github.com/jonbobcar/tenkey_plusplus)
9* Hardware Availability: [Tenkey++ on Tindie](https://www.tindie.com/products/lizardtrick/tenkey/)
10
11Make example for default layout (set up QMK build environment first):
12
13 make lizard_trick/tenkey_plusplus:default
14
15Flashing example for this keyboard:
16
17 make lizard_trick/tenkey_plusplus:default:flash
18
19Default Layout:
20
21![TK++_Default](https://i.imgur.com/6L0eQJq.jpg)
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 the [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).
24
25![PCB](https://i.imgur.com/aMii80bl.jpg)
diff --git a/keyboards/lizard_trick/tenkey_plusplus/rules.mk b/keyboards/lizard_trick/tenkey_plusplus/rules.mk
new file mode 100644
index 000000000..fb12719ce
--- /dev/null
+++ b/keyboards/lizard_trick/tenkey_plusplus/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 = no # Enable keyboard RGB underglow
21BLUETOOTH_ENABLE = no # Enable Bluetooth
22AUDIO_ENABLE = no # Audio output
23ENCODER_ENABLE = yes
diff --git a/keyboards/lizard_trick/tenkey_plusplus/tenkey_plusplus.c b/keyboards/lizard_trick/tenkey_plusplus/tenkey_plusplus.c
new file mode 100644
index 000000000..96c0b92df
--- /dev/null
+++ b/keyboards/lizard_trick/tenkey_plusplus/tenkey_plusplus.c
@@ -0,0 +1,18 @@
1/*
2Copyright 2020 Jonathon Carstens jonathon@lizardtrick.com
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#include "tenkey_plusplus.h"
diff --git a/keyboards/lizard_trick/tenkey_plusplus/tenkey_plusplus.h b/keyboards/lizard_trick/tenkey_plusplus/tenkey_plusplus.h
new file mode 100644
index 000000000..72f388065
--- /dev/null
+++ b/keyboards/lizard_trick/tenkey_plusplus/tenkey_plusplus.h
@@ -0,0 +1,45 @@
1/*
2Copyright 2020 Jonathon Carstens jonathon@lizardtrick.com
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 "quantum.h"
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
31#define LAYOUT( \
32 K00, K01, K03, \
33 K10, K11, K12, K13, \
34 K20, K21, K22, K23, \
35 K30, K31, K32, \
36 K40, K41, K42, K43, \
37 K51, K52 \
38) { \
39 { K00, K01, KC_NO, K03 }, \
40 { K10, K11, K12, K13 }, \
41 { K20, K21, K22, K23 }, \
42 { K30, K31, K32, KC_NO }, \
43 { K40, K41, K42, K43 }, \
44 { KC_NO, K51, K52, KC_NO } \
45}