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 | |
parent | ea116b785bc85d7d7a6248589bbef731539f762c (diff) |
[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')
-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 0000000000..c9d7d05251 --- /dev/null +++ b/keyboards/evancookaudio/tenpad/config.h @@ -0,0 +1,44 @@ +/* Copyright 2022 evan cook <evan@evancook.audio> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. +*/ + +#pragma once + +#include "config_common.h" + +/* USB Device descriptor parameter */ +#define VENDOR_ID 0x636F +#define PRODUCT_ID 0x0001 +#define DEVICE_VER 0x0000 +#define MANUFACTURER evancook.audio +#define PRODUCT tenpad + +/* COL2ROW or ROW2COL */ +#define DIODE_DIRECTION COL2ROW + +/* Set 0 if debouncing isn't needed */ +#define DEBOUNCE 5 + +/* key matrix size */ +#define MATRIX_ROWS 2 +#define MATRIX_COLS 5 + +/* key matrix pins */ + +#define MATRIX_ROW_PINS {D0, D1} +#define MATRIX_COL_PINS {F4, F5, F6, F7, B1} + +#define UNUSED_PINS {B3, B2, B6, B7, D5, C7, F1, F0, B4, E6, D7, C6, D4 } + diff --git a/keyboards/evancookaudio/tenpad/info.json b/keyboards/evancookaudio/tenpad/info.json new file mode 100644 index 0000000000..52c62775dc --- /dev/null +++ b/keyboards/evancookaudio/tenpad/info.json @@ -0,0 +1,24 @@ +{ + "keyboard_name": "evancook.audio tenpad", + "url": "https://evancook.audio/", + "maintainer": "evanmcook", + "layouts": { + + "LAYOUT_ortho_2x5": { + "layout": [ + { "label": "K01", "x": 0, "y": 0 }, + { "label": "K02", "x": 1, "y": 0 }, + { "label": "K03", "x": 2, "y": 0 }, + { "label": "K04", "x": 3, "y": 0 }, + { "label": "K05", "x": 4, "y": 0 }, + + { "label": "K06", "x": 0, "y": 1 }, + { "label": "K07", "x": 1, "y": 1 }, + { "label": "K08", "x": 2, "y": 1 }, + { "label": "K09", "x": 3, "y": 1 }, + { "label": "K10", "x": 4, "y": 1 } + + ] + } + } +} diff --git a/keyboards/evancookaudio/tenpad/keymaps/default/keymap.c b/keyboards/evancookaudio/tenpad/keymaps/default/keymap.c new file mode 100644 index 0000000000..2238a238d3 --- /dev/null +++ b/keyboards/evancookaudio/tenpad/keymaps/default/keymap.c @@ -0,0 +1,33 @@ +/* Copyright 2022 evan cook <evan@evancook.audio> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. +*/ +#include QMK_KEYBOARD_H + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + +/* LAYER 0 + * ,---------------------------------------. + * | Q | W | E | R | T | + * |-------+-------+-------|-------|-------| + * | A | S | D | F | G | + * ,---------------------------------------. + * + * + */ +[0] = LAYOUT_ortho_2x5( + KC_Q, KC_W, KC_E, KC_R, KC_T, + KC_A, KC_S, KC_D, KC_F, KC_G +) +}; diff --git a/keyboards/evancookaudio/tenpad/readme.md b/keyboards/evancookaudio/tenpad/readme.md new file mode 100644 index 0000000000..0bcb7a7bce --- /dev/null +++ b/keyboards/evancookaudio/tenpad/readme.md @@ -0,0 +1,17 @@ +# tenpad macropad + +A 2x5 macropad designed by Evan Cook, with the design goal of being compact in the Z axis +[Default Layout](https://raw.githubusercontent.com/evanmcook/tenpad/main/keyboard-layout.jpg) + +* Keyboard Maintainer: [Evan Cook](https://github.com/evanmcook/) +* Hardware Supported: tenpad Macropad PCB +* Hardware Availability: [tenpad Github](https://github.com/evanmcook/tenpad) + +Make example for this keyboard (after setting up your build environment): + + make evancookaudio/tenpad:default + +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). + +## Enter the bootloader: +* **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 0000000000..6cf6d9358b --- /dev/null +++ b/keyboards/evancookaudio/tenpad/rules.mk @@ -0,0 +1,18 @@ +# MCU name +MCU = atmega32u4 + +# Bootloader selection +BOOTLOADER = caterina + +# Build Options +# change yes to no to disable +# +BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite +MOUSEKEY_ENABLE = no # Mouse keys +EXTRAKEY_ENABLE = no # Audio control and System control +CONSOLE_ENABLE = yes # Console for debug +COMMAND_ENABLE = yes # Commands for debug and configuration +NKRO_ENABLE = no # Enable N-Key Rollover +BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality +RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow +AUDIO_ENABLE = no # Audio output diff --git a/keyboards/evancookaudio/tenpad/tenpad.c b/keyboards/evancookaudio/tenpad/tenpad.c new file mode 100644 index 0000000000..abd852baf2 --- /dev/null +++ b/keyboards/evancookaudio/tenpad/tenpad.c @@ -0,0 +1,17 @@ +/* Copyright 2022 evan cook <evan@evancook.audio> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * +*/ +#include "tenpad.h" diff --git a/keyboards/evancookaudio/tenpad/tenpad.h b/keyboards/evancookaudio/tenpad/tenpad.h new file mode 100644 index 0000000000..c9d6fa62c9 --- /dev/null +++ b/keyboards/evancookaudio/tenpad/tenpad.h @@ -0,0 +1,26 @@ +/* Copyright 2022 evan cook <evan@evancook.audio> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. +*/ +#pragma once + +#include "quantum.h" + +#define LAYOUT_ortho_2x5(\ + k00, k01, k02, k03, k04, \ + k05, k06, k07, k08, k09 \ + ) { \ + {k00, k01, k02, k03, k04},\ + {k05, k06, k07, k08, k09},\ + } |