diff options
author | Moritz <moritz.plattner@gmx.net> | 2021-11-10 15:22:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-10 06:22:53 -0800 |
commit | 40ac8d1536321b251246fd74d19ec0c72648ec69 (patch) | |
tree | 405b048af180be53dcb41d1dcb7058c3a139efa8 /keyboards/teleport | |
parent | 83ab7d41efc8b400ad2870be7f46e5435b8fd550 (diff) | |
download | qmk_firmware-40ac8d1536321b251246fd74d19ec0c72648ec69.tar.gz qmk_firmware-40ac8d1536321b251246fd74d19ec0c72648ec69.zip |
[Keyboard] Teleport numpad (#14905)
Co-authored-by: Drashna Jaelre <drashna@live.com>
Co-authored-by: Ryan <fauxpark@gmail.com>
Diffstat (limited to 'keyboards/teleport')
-rw-r--r-- | keyboards/teleport/numpad/config.h | 39 | ||||
-rw-r--r-- | keyboards/teleport/numpad/info.json | 27 | ||||
-rw-r--r-- | keyboards/teleport/numpad/keymaps/default/keymap.c | 34 | ||||
-rw-r--r-- | keyboards/teleport/numpad/keymaps/via/keymap.c | 35 | ||||
-rw-r--r-- | keyboards/teleport/numpad/keymaps/via/rules.mk | 1 | ||||
-rw-r--r-- | keyboards/teleport/numpad/numpad.c | 16 | ||||
-rw-r--r-- | keyboards/teleport/numpad/numpad.h | 33 | ||||
-rw-r--r-- | keyboards/teleport/numpad/readme.md | 20 | ||||
-rw-r--r-- | keyboards/teleport/numpad/rules.mk | 22 |
9 files changed, 227 insertions, 0 deletions
diff --git a/keyboards/teleport/numpad/config.h b/keyboards/teleport/numpad/config.h new file mode 100644 index 000000000..f3573483b --- /dev/null +++ b/keyboards/teleport/numpad/config.h | |||
@@ -0,0 +1,39 @@ | |||
1 | /* | ||
2 | Copyright 2021 Moritz Plattner | ||
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 | This program is distributed in the hope that it will be useful, | ||
8 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
9 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
10 | GNU General Public License for more details. | ||
11 | You should have received a copy of the GNU General Public License | ||
12 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
13 | */ | ||
14 | |||
15 | #pragma once | ||
16 | |||
17 | #include "config_common.h" | ||
18 | |||
19 | /* USB Device descriptor parameter */ | ||
20 | #define VENDOR_ID 0x7470 //"tp" | ||
21 | #define PRODUCT_ID 0x0001 | ||
22 | #define DEVICE_VER 0x0001 | ||
23 | #define MANUFACTURER tlprt | ||
24 | #define PRODUCT NumPad | ||
25 | |||
26 | /* key matrix size */ | ||
27 | #define MATRIX_ROWS 5 | ||
28 | #define MATRIX_COLS 4 | ||
29 | |||
30 | /* Keyboard Matrix Assignments */ | ||
31 | #define MATRIX_ROW_PINS { D7, D4, D6, B4, B5 } | ||
32 | #define MATRIX_COL_PINS { F6, F5, F7, F4 } | ||
33 | #define UNUSED_PINS { B0, B1, B2, B3, B6, B7, D0, D1, D2, D3, D5, F0, F1, E6, C6, C7 } | ||
34 | |||
35 | /* COL2ROW, ROW2COL*/ | ||
36 | #define DIODE_DIRECTION COL2ROW | ||
37 | |||
38 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
39 | #define DEBOUNCE 5 | ||
diff --git a/keyboards/teleport/numpad/info.json b/keyboards/teleport/numpad/info.json new file mode 100644 index 000000000..a05b7440b --- /dev/null +++ b/keyboards/teleport/numpad/info.json | |||
@@ -0,0 +1,27 @@ | |||
1 | { | ||
2 | "keyboard_name": "tlprt_NumPad", | ||
3 | "maintainer": "ebastler", | ||
4 | "layouts": { | ||
5 | "LAYOUT_numpad_5x4": { | ||
6 | "layout": [ | ||
7 | {"label":"Num Lock", "x":0, "y":0}, | ||
8 | {"label":"/", "x":1, "y":0}, | ||
9 | {"label":"*", "x":2, "y":0}, | ||
10 | {"label":"-", "x":3, "y":0}, | ||
11 | {"label":"7", "x":0, "y":1}, | ||
12 | {"label":"8", "x":1, "y":1}, | ||
13 | {"label":"9", "x":2, "y":1}, | ||
14 | {"label":"4", "x":0, "y":2}, | ||
15 | {"label":"5", "x":1, "y":2}, | ||
16 | {"label":"6", "x":2, "y":2}, | ||
17 | {"label":"+", "x":3, "y":1, "h":2}, | ||
18 | {"label":"1", "x":0, "y":3}, | ||
19 | {"label":"2", "x":1, "y":3}, | ||
20 | {"label":"3", "x":2, "y":3}, | ||
21 | {"label":"0", "x":0, "y":4, "w":2}, | ||
22 | {"label":",", "x":2, "y":4}, | ||
23 | {"label":"Enter", "x":3, "y":3, "h":2} | ||
24 | ] | ||
25 | } | ||
26 | } | ||
27 | } | ||
diff --git a/keyboards/teleport/numpad/keymaps/default/keymap.c b/keyboards/teleport/numpad/keymaps/default/keymap.c new file mode 100644 index 000000000..64f805f5d --- /dev/null +++ b/keyboards/teleport/numpad/keymaps/default/keymap.c | |||
@@ -0,0 +1,34 @@ | |||
1 | /* Copyright 2021 Moritz Plattner | ||
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 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
19 | |||
20 | [0] = LAYOUT_numpad_5x4( | ||
21 | LT(1, KC_NLCK), KC_PSLS, KC_PAST, KC_PMNS, | ||
22 | KC_P7, KC_P8, KC_P9, | ||
23 | KC_P4, KC_P5, KC_P6, KC_PPLS, | ||
24 | KC_P1, KC_P2, KC_P3, | ||
25 | KC_P0, KC_PDOT, KC_PENT | ||
26 | ), | ||
27 | |||
28 | [1] = LAYOUT_numpad_5x4( | ||
29 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
30 | KC_TRNS, KC_TRNS, KC_TRNS, | ||
31 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
32 | KC_TRNS, KC_TRNS, KC_TRNS, | ||
33 | KC_TRNS, KC_TRNS, RESET | ||
34 | ), | ||
diff --git a/keyboards/teleport/numpad/keymaps/via/keymap.c b/keyboards/teleport/numpad/keymaps/via/keymap.c new file mode 100644 index 000000000..28271c9d5 --- /dev/null +++ b/keyboards/teleport/numpad/keymaps/via/keymap.c | |||
@@ -0,0 +1,35 @@ | |||
1 | /* Copyright 2021 Moritz Plattner | ||
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 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
19 | |||
20 | [0] = LAYOUT_numpad_5x4( | ||
21 | LT(1, KC_NLCK), KC_PSLS, KC_PAST, KC_PMNS, | ||
22 | KC_P7, KC_P8, KC_P9, | ||
23 | KC_P4, KC_P5, KC_P6, KC_PPLS, | ||
24 | KC_P1, KC_P2, KC_P3, | ||
25 | KC_P0, KC_PDOT, KC_PENT | ||
26 | ), | ||
27 | |||
28 | [1] = LAYOUT_numpad_5x4( | ||
29 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
30 | KC_TRNS, KC_TRNS, KC_TRNS, | ||
31 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
32 | KC_TRNS, KC_TRNS, KC_TRNS, | ||
33 | KC_TRNS, KC_TRNS, RESET | ||
34 | ), | ||
35 | }; | ||
diff --git a/keyboards/teleport/numpad/keymaps/via/rules.mk b/keyboards/teleport/numpad/keymaps/via/rules.mk new file mode 100644 index 000000000..036bd6d1c --- /dev/null +++ b/keyboards/teleport/numpad/keymaps/via/rules.mk | |||
@@ -0,0 +1 @@ | |||
VIA_ENABLE = yes \ No newline at end of file | |||
diff --git a/keyboards/teleport/numpad/numpad.c b/keyboards/teleport/numpad/numpad.c new file mode 100644 index 000000000..375e24058 --- /dev/null +++ b/keyboards/teleport/numpad/numpad.c | |||
@@ -0,0 +1,16 @@ | |||
1 | /* Copyright 2021 Moritz Plattner | ||
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 "numpad.h" | ||
diff --git a/keyboards/teleport/numpad/numpad.h b/keyboards/teleport/numpad/numpad.h new file mode 100644 index 000000000..9c7413cd8 --- /dev/null +++ b/keyboards/teleport/numpad/numpad.h | |||
@@ -0,0 +1,33 @@ | |||
1 | /* Copyright 2021 Moritz Plattner | ||
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, K13, \ | ||
25 | K30, K31, K32, \ | ||
26 | K40, K41, K42 \ | ||
27 | ) { \ | ||
28 | { K00, K01, K02, K03 }, \ | ||
29 | { K10, K11, K12, K13 }, \ | ||
30 | { K20, K21, K22, KC_NO }, \ | ||
31 | { K30, K31, K32, KC_NO }, \ | ||
32 | { K40, K41, K42, KC_NO }, \ | ||
33 | } | ||
diff --git a/keyboards/teleport/numpad/readme.md b/keyboards/teleport/numpad/readme.md new file mode 100644 index 000000000..aebde6f16 --- /dev/null +++ b/keyboards/teleport/numpad/readme.md | |||
@@ -0,0 +1,20 @@ | |||
1 | # The Teleport NumPad | ||
2 | |||
3 | * Keyboard Maintainer: [ebastler](https://github.com/ebastler) | ||
4 | * Hardware Supported: Teleport NumPad | ||
5 | * Hardware Availability: [TheTeleport.de](https://www.theteleport.de/) | ||
6 | |||
7 | Make example for this keyboard (after setting up your build environment): | ||
8 | |||
9 | make teleport/numpad:default | ||
10 | |||
11 | Flash example for this keyboard: | ||
12 | |||
13 | make teleport/numpad:default:flash | ||
14 | |||
15 | See 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). | ||
16 | |||
17 | ## Bootloader Enter the bootloader in 3 ways: | ||
18 | * **Bootmagic reset**: Hold down the key at (0,0) in the matrix (In this case NumLock) and plug in the keyboard | ||
19 | * **Physical reset button**: Briefly press the button on the back of the PCB | ||
20 | * **Keycode in layout**: Press the key mapped to `RESET` (With the default keymap, hold NumLock, then press Enter) \ No newline at end of file | ||
diff --git a/keyboards/teleport/numpad/rules.mk b/keyboards/teleport/numpad/rules.mk new file mode 100644 index 000000000..d13c9980f --- /dev/null +++ b/keyboards/teleport/numpad/rules.mk | |||
@@ -0,0 +1,22 @@ | |||
1 | # MCU name | ||
2 | MCU = atmega32u4 | ||
3 | |||
4 | # Bootloader selection | ||
5 | BOOTLOADER = atmel-dfu | ||
6 | |||
7 | # Build Options | ||
8 | # change yes to no to disable | ||
9 | # | ||
10 | BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite | ||
11 | MOUSEKEY_ENABLE = no # Mouse keys | ||
12 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
13 | CONSOLE_ENABLE = no # Console for debug | ||
14 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
15 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
16 | SLEEP_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 | ||
18 | NKRO_ENABLE = yes # USB Nkey Rollover | ||
19 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
20 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
21 | |||
22 | LAYOUTS = numpad_5x4 | ||