diff options
Diffstat (limited to 'keyboards/shk9')
| -rw-r--r-- | keyboards/shk9/config.h | 51 | ||||
| -rw-r--r-- | keyboards/shk9/info.json | 23 | ||||
| -rw-r--r-- | keyboards/shk9/keymaps/default/keymap.c | 24 | ||||
| -rw-r--r-- | keyboards/shk9/keymaps/via/keymap.c | 39 | ||||
| -rw-r--r-- | keyboards/shk9/keymaps/via/rules.mk | 2 | ||||
| -rw-r--r-- | keyboards/shk9/readme.md | 23 | ||||
| -rw-r--r-- | keyboards/shk9/rules.mk | 24 | ||||
| -rw-r--r-- | keyboards/shk9/shk9.c | 17 | ||||
| -rw-r--r-- | keyboards/shk9/shk9.h | 37 |
9 files changed, 240 insertions, 0 deletions
diff --git a/keyboards/shk9/config.h b/keyboards/shk9/config.h new file mode 100644 index 000000000..a8ddd3f87 --- /dev/null +++ b/keyboards/shk9/config.h | |||
| @@ -0,0 +1,51 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2020 Sam Hudson | ||
| 3 | |||
| 4 | This program is free software: you can redistribute it and/or modify | ||
| 5 | it under the terms of the GNU General Public License as published by | ||
| 6 | the Free Software Foundation, either version 2 of the License, or | ||
| 7 | (at your option) any later version. | ||
| 8 | |||
| 9 | This program is distributed in the hope that it will be useful, | ||
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | GNU General Public License for more details. | ||
| 13 | |||
| 14 | You should have received a copy of the GNU General Public License | ||
| 15 | along 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 0x5348 | ||
| 24 | #define PRODUCT_ID 0x4B39 | ||
| 25 | #define DEVICE_VER 0x0001 | ||
| 26 | #define MANUFACTURER Superhuman | ||
| 27 | #define PRODUCT SHK9 | ||
| 28 | |||
| 29 | /* key matrix size */ | ||
| 30 | #define MATRIX_ROWS 3 | ||
| 31 | #define MATRIX_COLS 3 | ||
| 32 | |||
| 33 | /* Keyboard Matrix Assignments */ | ||
| 34 | #define MATRIX_ROW_PINS { B0, B1, B2 } | ||
| 35 | #define MATRIX_COL_PINS { B3, B4, B5 } | ||
| 36 | #define UNUSED_PINS | ||
| 37 | |||
| 38 | /* COL2ROW, ROW2COL */ | ||
| 39 | #define DIODE_DIRECTION COL2ROW | ||
| 40 | |||
| 41 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 42 | #define DEBOUNCE 5 | ||
| 43 | |||
| 44 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 45 | #define LOCKING_SUPPORT_ENABLE | ||
| 46 | /* Locking resynchronize hack */ | ||
| 47 | #define LOCKING_RESYNC_ENABLE | ||
| 48 | |||
| 49 | /* disable these deprecated features by default */ | ||
| 50 | #define NO_ACTION_MACRO | ||
| 51 | #define NO_ACTION_FUNCTION \ No newline at end of file | ||
diff --git a/keyboards/shk9/info.json b/keyboards/shk9/info.json new file mode 100644 index 000000000..c3122bd1e --- /dev/null +++ b/keyboards/shk9/info.json | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "SHK9", | ||
| 3 | "url": "http://superhuman.website", | ||
| 4 | "maintainer": "Sam Hudson", | ||
| 5 | "width": 3, | ||
| 6 | "height": 3, | ||
| 7 | "lighting": "none", | ||
| 8 | "layouts": { | ||
| 9 | "LAYOUT_ortho_3x3": { | ||
| 10 | "layout": [ | ||
| 11 | {"label":"7", "x":0, "y":0}, | ||
| 12 | {"label":"8", "x":1, "y":0}, | ||
| 13 | {"label":"9", "x":2, "y":0}, | ||
| 14 | {"label":"4", "x":0, "y":1}, | ||
| 15 | {"label":"5", "x":1, "y":1}, | ||
| 16 | {"label":"6", "x":2, "y":1}, | ||
| 17 | {"label":"1", "x":0, "y":2}, | ||
| 18 | {"label":"2", "x":1, "y":2}, | ||
| 19 | {"label":"3", "x":2, "y":2} | ||
| 20 | ] | ||
| 21 | } | ||
| 22 | } | ||
| 23 | } | ||
diff --git a/keyboards/shk9/keymaps/default/keymap.c b/keyboards/shk9/keymaps/default/keymap.c new file mode 100644 index 000000000..cdff8a74b --- /dev/null +++ b/keyboards/shk9/keymaps/default/keymap.c | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | /* Copyright 2020 Sam Hudson | ||
| 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 | [0] = LAYOUT_ortho_3x3( /* Base */ | ||
| 20 | KC_1, KC_2, KC_3, | ||
| 21 | KC_4, KC_5, KC_6, | ||
| 22 | KC_7, KC_8, KC_9 | ||
| 23 | ) | ||
| 24 | }; \ No newline at end of file | ||
diff --git a/keyboards/shk9/keymaps/via/keymap.c b/keyboards/shk9/keymaps/via/keymap.c new file mode 100644 index 000000000..ff780b3cf --- /dev/null +++ b/keyboards/shk9/keymaps/via/keymap.c | |||
| @@ -0,0 +1,39 @@ | |||
| 1 | /* Copyright 2020 Sam Hudson | ||
| 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 | [0] = LAYOUT_ortho_3x3( /* Base */ | ||
| 20 | KC_1, KC_2, KC_3, | ||
| 21 | KC_4, KC_5, KC_6, | ||
| 22 | KC_7, KC_8, KC_9 | ||
| 23 | ), | ||
| 24 | [1] = LAYOUT_ortho_3x3( | ||
| 25 | _______, _______, _______, | ||
| 26 | _______, _______, _______, | ||
| 27 | _______, _______, _______ | ||
| 28 | ), | ||
| 29 | [2] = LAYOUT_ortho_3x3( | ||
| 30 | _______, _______, _______, | ||
| 31 | _______, _______, _______, | ||
| 32 | _______, _______, _______ | ||
| 33 | ), | ||
| 34 | [3] = LAYOUT_ortho_3x3( | ||
| 35 | _______, _______, _______, | ||
| 36 | _______, _______, _______, | ||
| 37 | _______, _______, _______ | ||
| 38 | ), | ||
| 39 | }; \ No newline at end of file | ||
diff --git a/keyboards/shk9/keymaps/via/rules.mk b/keyboards/shk9/keymaps/via/rules.mk new file mode 100644 index 000000000..43061db1d --- /dev/null +++ b/keyboards/shk9/keymaps/via/rules.mk | |||
| @@ -0,0 +1,2 @@ | |||
| 1 | VIA_ENABLE = yes | ||
| 2 | LTO_ENABLE = yes \ No newline at end of file | ||
diff --git a/keyboards/shk9/readme.md b/keyboards/shk9/readme.md new file mode 100644 index 000000000..1fab42a1a --- /dev/null +++ b/keyboards/shk9/readme.md | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | # shk9 | ||
| 2 | |||
| 3 |  | ||
| 4 | |||
| 5 | The SHK9 is a tiny 3x3 macropad! Fully configurable with via. | ||
| 6 | |||
| 7 | * Keyboard Maintainer: [Sam Hudson](https://github.com/samsamm777) | ||
| 8 | * Hardware Supported: SHK9 PCB (ATmega32u4) | ||
| 9 | * Hardware Availability: http://superhuman.website | ||
| 10 | |||
| 11 | Make example for this keyboard (after setting up your build environment): | ||
| 12 | |||
| 13 | make shk9:default | ||
| 14 | |||
| 15 | Flashing example for this keyboard: | ||
| 16 | |||
| 17 | make shk9:default:flash | ||
| 18 | |||
| 19 | ## Bootloader Mode | ||
| 20 | |||
| 21 | To reset the board into bootloader mode, remove the pcb from the case buy removing keycaps, and unscrewing the 3 screws. Then (while plugged in) press the switch on the underside of the PCB for a few seconds. The board is now in bootloader mode. | ||
| 22 | |||
| 23 | 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). \ No newline at end of file | ||
diff --git a/keyboards/shk9/rules.mk b/keyboards/shk9/rules.mk new file mode 100644 index 000000000..8d356cbd1 --- /dev/null +++ b/keyboards/shk9/rules.mk | |||
| @@ -0,0 +1,24 @@ | |||
| 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 = lite # Virtual DIP switch configuration | ||
| 11 | MOUSEKEY_ENABLE = yes # Mouse keys | ||
| 12 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
| 13 | CONSOLE_ENABLE = no # Console for debug | ||
| 14 | COMMAND_ENABLE = yes # 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 | BLUETOOTH_ENABLE = no # Enable Bluetooth | ||
| 22 | AUDIO_ENABLE = no # Audio output | ||
| 23 | |||
| 24 | LAYOUTS = ortho_3x3 \ No newline at end of file | ||
diff --git a/keyboards/shk9/shk9.c b/keyboards/shk9/shk9.c new file mode 100644 index 000000000..7608dcd42 --- /dev/null +++ b/keyboards/shk9/shk9.c | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | /* Copyright 2020 Sam Hudson | ||
| 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 "shk9.h" | ||
diff --git a/keyboards/shk9/shk9.h b/keyboards/shk9/shk9.h new file mode 100644 index 000000000..d2c63a49c --- /dev/null +++ b/keyboards/shk9/shk9.h | |||
| @@ -0,0 +1,37 @@ | |||
| 1 | /* Copyright 2020 Sam Hudson | ||
| 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 | /* This is a shortcut to help you visually see your layout. | ||
| 22 | * | ||
| 23 | * The first section contains all of the arguments representing the physical | ||
| 24 | * layout of the board and position of the keys. | ||
| 25 | * | ||
| 26 | * The second converts the arguments into a two-dimensional array which | ||
| 27 | * represents the switch matrix. | ||
| 28 | */ | ||
| 29 | #define LAYOUT_ortho_3x3( \ | ||
| 30 | K00, K01, K02, \ | ||
| 31 | K10, K11, K12, \ | ||
| 32 | K20, K21, K22 \ | ||
| 33 | ) { \ | ||
| 34 | { K00, K01, K02 }, \ | ||
| 35 | { K10, K11, K12 }, \ | ||
| 36 | { K20, K21, K22 } \ | ||
| 37 | } | ||
