diff options
| author | evanmcook <42785294+evanmcook@users.noreply.github.com> | 2022-02-06 10:56:36 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-06 07:56:36 -0800 |
| commit | 4c9c7b9963ac0b7ee0c2285166678eac7f0b3c14 (patch) | |
| tree | 74aa97e444bc6f95e484f7c3bebbb4ae08374723 /keyboards/evancookaudio | |
| parent | ea116b785bc85d7d7a6248589bbef731539f762c (diff) | |
| download | qmk_firmware-4c9c7b9963ac0b7ee0c2285166678eac7f0b3c14.tar.gz qmk_firmware-4c9c7b9963ac0b7ee0c2285166678eac7f0b3c14.zip | |
[Keyboard] added evancook.audio tenpad macropad (#16189)
Co-authored-by: Drashna Jaelre <drashna@live.com>
Co-authored-by: Ryan <fauxpark@gmail.com>
Diffstat (limited to 'keyboards/evancookaudio')
| -rw-r--r-- | keyboards/evancookaudio/tenpad/config.h | 44 | ||||
| -rw-r--r-- | keyboards/evancookaudio/tenpad/info.json | 24 | ||||
| -rw-r--r-- | keyboards/evancookaudio/tenpad/keymaps/default/keymap.c | 33 | ||||
| -rw-r--r-- | keyboards/evancookaudio/tenpad/readme.md | 17 | ||||
| -rw-r--r-- | keyboards/evancookaudio/tenpad/rules.mk | 18 | ||||
| -rw-r--r-- | keyboards/evancookaudio/tenpad/tenpad.c | 17 | ||||
| -rw-r--r-- | keyboards/evancookaudio/tenpad/tenpad.h | 26 |
7 files changed, 179 insertions, 0 deletions
diff --git a/keyboards/evancookaudio/tenpad/config.h b/keyboards/evancookaudio/tenpad/config.h new file mode 100644 index 000000000..c9d7d0525 --- /dev/null +++ b/keyboards/evancookaudio/tenpad/config.h | |||
| @@ -0,0 +1,44 @@ | |||
| 1 | /* Copyright 2022 evan cook <evan@evancook.audio> | ||
| 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 "config_common.h" | ||
| 20 | |||
| 21 | /* USB Device descriptor parameter */ | ||
| 22 | #define VENDOR_ID 0x636F | ||
| 23 | #define PRODUCT_ID 0x0001 | ||
| 24 | #define DEVICE_VER 0x0000 | ||
| 25 | #define MANUFACTURER evancook.audio | ||
| 26 | #define PRODUCT tenpad | ||
| 27 | |||
| 28 | /* COL2ROW or ROW2COL */ | ||
| 29 | #define DIODE_DIRECTION COL2ROW | ||
| 30 | |||
| 31 | /* Set 0 if debouncing isn't needed */ | ||
| 32 | #define DEBOUNCE 5 | ||
| 33 | |||
| 34 | /* key matrix size */ | ||
| 35 | #define MATRIX_ROWS 2 | ||
| 36 | #define MATRIX_COLS 5 | ||
| 37 | |||
| 38 | /* key matrix pins */ | ||
| 39 | |||
| 40 | #define MATRIX_ROW_PINS {D0, D1} | ||
| 41 | #define MATRIX_COL_PINS {F4, F5, F6, F7, B1} | ||
| 42 | |||
| 43 | #define UNUSED_PINS {B3, B2, B6, B7, D5, C7, F1, F0, B4, E6, D7, C6, D4 } | ||
| 44 | |||
diff --git a/keyboards/evancookaudio/tenpad/info.json b/keyboards/evancookaudio/tenpad/info.json new file mode 100644 index 000000000..52c62775d --- /dev/null +++ b/keyboards/evancookaudio/tenpad/info.json | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "evancook.audio tenpad", | ||
| 3 | "url": "https://evancook.audio/", | ||
| 4 | "maintainer": "evanmcook", | ||
| 5 | "layouts": { | ||
| 6 | |||
| 7 | "LAYOUT_ortho_2x5": { | ||
| 8 | "layout": [ | ||
| 9 | { "label": "K01", "x": 0, "y": 0 }, | ||
| 10 | { "label": "K02", "x": 1, "y": 0 }, | ||
| 11 | { "label": "K03", "x": 2, "y": 0 }, | ||
| 12 | { "label": "K04", "x": 3, "y": 0 }, | ||
| 13 | { "label": "K05", "x": 4, "y": 0 }, | ||
| 14 | |||
| 15 | { "label": "K06", "x": 0, "y": 1 }, | ||
| 16 | { "label": "K07", "x": 1, "y": 1 }, | ||
| 17 | { "label": "K08", "x": 2, "y": 1 }, | ||
| 18 | { "label": "K09", "x": 3, "y": 1 }, | ||
| 19 | { "label": "K10", "x": 4, "y": 1 } | ||
| 20 | |||
| 21 | ] | ||
| 22 | } | ||
| 23 | } | ||
| 24 | } | ||
diff --git a/keyboards/evancookaudio/tenpad/keymaps/default/keymap.c b/keyboards/evancookaudio/tenpad/keymaps/default/keymap.c new file mode 100644 index 000000000..2238a238d --- /dev/null +++ b/keyboards/evancookaudio/tenpad/keymaps/default/keymap.c | |||
| @@ -0,0 +1,33 @@ | |||
| 1 | /* Copyright 2022 evan cook <evan@evancook.audio> | ||
| 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 | /* LAYER 0 | ||
| 21 | * ,---------------------------------------. | ||
| 22 | * | Q | W | E | R | T | | ||
| 23 | * |-------+-------+-------|-------|-------| | ||
| 24 | * | A | S | D | F | G | | ||
| 25 | * ,---------------------------------------. | ||
| 26 | * | ||
| 27 | * | ||
| 28 | */ | ||
| 29 | [0] = LAYOUT_ortho_2x5( | ||
| 30 | KC_Q, KC_W, KC_E, KC_R, KC_T, | ||
| 31 | KC_A, KC_S, KC_D, KC_F, KC_G | ||
| 32 | ) | ||
| 33 | }; | ||
diff --git a/keyboards/evancookaudio/tenpad/readme.md b/keyboards/evancookaudio/tenpad/readme.md new file mode 100644 index 000000000..0bcb7a7bc --- /dev/null +++ b/keyboards/evancookaudio/tenpad/readme.md | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | # tenpad macropad | ||
| 2 | |||
| 3 | A 2x5 macropad designed by Evan Cook, with the design goal of being compact in the Z axis | ||
| 4 | [Default Layout](https://raw.githubusercontent.com/evanmcook/tenpad/main/keyboard-layout.jpg) | ||
| 5 | |||
| 6 | * Keyboard Maintainer: [Evan Cook](https://github.com/evanmcook/) | ||
| 7 | * Hardware Supported: tenpad Macropad PCB | ||
| 8 | * Hardware Availability: [tenpad Github](https://github.com/evanmcook/tenpad) | ||
| 9 | |||
| 10 | Make example for this keyboard (after setting up your build environment): | ||
| 11 | |||
| 12 | make evancookaudio/tenpad:default | ||
| 13 | |||
| 14 | 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). | ||
| 15 | |||
| 16 | ## Enter the bootloader: | ||
| 17 | * **Physical reset button**: Briefly short the pair of pins marked "reset" on the top right corner of the bottom PCB of the keyboard. \ No newline at end of file | ||
diff --git a/keyboards/evancookaudio/tenpad/rules.mk b/keyboards/evancookaudio/tenpad/rules.mk new file mode 100644 index 000000000..6cf6d9358 --- /dev/null +++ b/keyboards/evancookaudio/tenpad/rules.mk | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = atmega32u4 | ||
| 3 | |||
| 4 | # Bootloader selection | ||
| 5 | BOOTLOADER = caterina | ||
| 6 | |||
| 7 | # Build Options | ||
| 8 | # change yes to no to disable | ||
| 9 | # | ||
| 10 | BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite | ||
| 11 | MOUSEKEY_ENABLE = no # Mouse keys | ||
| 12 | EXTRAKEY_ENABLE = no # Audio control and System control | ||
| 13 | CONSOLE_ENABLE = yes # Console for debug | ||
| 14 | COMMAND_ENABLE = yes # Commands for debug and configuration | ||
| 15 | NKRO_ENABLE = no # Enable N-Key Rollover | ||
| 16 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 17 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
| 18 | AUDIO_ENABLE = no # Audio output | ||
diff --git a/keyboards/evancookaudio/tenpad/tenpad.c b/keyboards/evancookaudio/tenpad/tenpad.c new file mode 100644 index 000000000..abd852baf --- /dev/null +++ b/keyboards/evancookaudio/tenpad/tenpad.c | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | /* Copyright 2022 evan cook <evan@evancook.audio> | ||
| 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 "tenpad.h" | ||
diff --git a/keyboards/evancookaudio/tenpad/tenpad.h b/keyboards/evancookaudio/tenpad/tenpad.h new file mode 100644 index 000000000..c9d6fa62c --- /dev/null +++ b/keyboards/evancookaudio/tenpad/tenpad.h | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | /* Copyright 2022 evan cook <evan@evancook.audio> | ||
| 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_2x5(\ | ||
| 21 | k00, k01, k02, k03, k04, \ | ||
| 22 | k05, k06, k07, k08, k09 \ | ||
| 23 | ) { \ | ||
| 24 | {k00, k01, k02, k03, k04},\ | ||
| 25 | {k05, k06, k07, k08, k09},\ | ||
| 26 | } | ||
