diff options
| author | Logan Butler <8854426+MatchstickWorks@users.noreply.github.com> | 2021-08-13 11:29:59 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-13 11:29:59 -0700 |
| commit | f00e56eb0b4e8ab220d52a30f89f3a9213d431fa (patch) | |
| tree | f891e3bc44f448d410648f85fdcba710d7cd2e95 /keyboards/matchstickworks | |
| parent | 8392729d7410246ab3228d47df272da5b0c72c99 (diff) | |
| download | qmk_firmware-f00e56eb0b4e8ab220d52a30f89f3a9213d431fa.tar.gz qmk_firmware-f00e56eb0b4e8ab220d52a30f89f3a9213d431fa.zip | |
[Keyboard] Add Southpad Keyboard (#13964)
Co-authored-by: Drashna Jaelre <drashna@live.com>
Co-authored-by: Ryan <fauxpark@gmail.com>
Diffstat (limited to 'keyboards/matchstickworks')
| -rw-r--r-- | keyboards/matchstickworks/southpad/config.h | 100 | ||||
| -rw-r--r-- | keyboards/matchstickworks/southpad/info.json | 34 | ||||
| -rw-r--r-- | keyboards/matchstickworks/southpad/keymaps/default/keymap.c | 27 | ||||
| -rw-r--r-- | keyboards/matchstickworks/southpad/readme.md | 23 | ||||
| -rw-r--r-- | keyboards/matchstickworks/southpad/rules.mk | 22 | ||||
| -rw-r--r-- | keyboards/matchstickworks/southpad/southpad.c | 16 | ||||
| -rw-r--r-- | keyboards/matchstickworks/southpad/southpad.h | 44 |
7 files changed, 266 insertions, 0 deletions
diff --git a/keyboards/matchstickworks/southpad/config.h b/keyboards/matchstickworks/southpad/config.h new file mode 100644 index 000000000..247084a86 --- /dev/null +++ b/keyboards/matchstickworks/southpad/config.h | |||
| @@ -0,0 +1,100 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2021 Logan Butler | ||
| 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 0xFEED | ||
| 24 | #define PRODUCT_ID 0x6060 | ||
| 25 | #define DEVICE_VER 0x0001 | ||
| 26 | #define MANUFACTURER MatchstickWorks | ||
| 27 | #define PRODUCT SouthPad | ||
| 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 | #define MATRIX_ROW_PINS { B3, B5, B6, B7, C7, C6 } | ||
| 44 | #define MATRIX_COL_PINS { B0, B1, B2, B4 } | ||
| 45 | #define UNUSED_PINS | ||
| 46 | |||
| 47 | /* COL2ROW, ROW2COL */ | ||
| 48 | #define DIODE_DIRECTION COL2ROW | ||
| 49 | |||
| 50 | |||
| 51 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 52 | #define DEBOUNCE 5 | ||
| 53 | |||
| 54 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | ||
| 55 | //#define MATRIX_HAS_GHOST | ||
| 56 | |||
| 57 | |||
| 58 | /* | ||
| 59 | * Force NKRO | ||
| 60 | * | ||
| 61 | * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved | ||
| 62 | * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the | ||
| 63 | * makefile for this to work.) | ||
| 64 | * | ||
| 65 | * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N) | ||
| 66 | * until the next keyboard reset. | ||
| 67 | * | ||
| 68 | * NKRO may prevent your keystrokes from being detected in the BIOS, but it is | ||
| 69 | * fully operational during normal computer usage. | ||
| 70 | * | ||
| 71 | * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N) | ||
| 72 | * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by | ||
| 73 | * bootmagic, NKRO mode will always be enabled until it is toggled again during a | ||
| 74 | * power-up. | ||
| 75 | * | ||
| 76 | */ | ||
| 77 | //#define FORCE_NKRO | ||
| 78 | |||
| 79 | |||
| 80 | /* | ||
| 81 | * Feature disable options | ||
| 82 | * These options are also useful to firmware size reduction. | ||
| 83 | */ | ||
| 84 | |||
| 85 | /* disable debug print */ | ||
| 86 | //#define NO_DEBUG | ||
| 87 | |||
| 88 | /* disable print */ | ||
| 89 | //#define NO_PRINT | ||
| 90 | |||
| 91 | /* disable action features */ | ||
| 92 | //#define NO_ACTION_LAYER | ||
| 93 | //#define NO_ACTION_TAPPING | ||
| 94 | //#define NO_ACTION_ONESHOT | ||
| 95 | //#define NO_ACTION_MACRO | ||
| 96 | //#define NO_ACTION_FUNCTION | ||
| 97 | |||
| 98 | /* Bootmagic Lite key configuration */ | ||
| 99 | // #define BOOTMAGIC_LITE_ROW 0 | ||
| 100 | // #define BOOTMAGIC_LITE_COLUMN 0 | ||
diff --git a/keyboards/matchstickworks/southpad/info.json b/keyboards/matchstickworks/southpad/info.json new file mode 100644 index 000000000..a2a509fce --- /dev/null +++ b/keyboards/matchstickworks/southpad/info.json | |||
| @@ -0,0 +1,34 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "SouthPad", | ||
| 3 | "url": "", | ||
| 4 | "maintainer": "MatchstickWorks", | ||
| 5 | "width": 4, | ||
| 6 | "height": 6, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT": { | ||
| 9 | "layout": [ | ||
| 10 | {"label":"K00 (B3,B0)", "x":0, "y":0}, | ||
| 11 | {"label":"K01 (B3,B1)", "x":1, "y":0}, | ||
| 12 | {"label":"K02 (B3,B2)", "x":2, "y":0}, | ||
| 13 | {"label":"K03 (B3,B4)", "x":3, "y":0}, | ||
| 14 | {"label":"K10 (B5,B0)", "x":0, "y":1}, | ||
| 15 | {"label":"K11 (B5,B1)", "x":1, "y":1}, | ||
| 16 | {"label":"K12 (B5,B2)", "x":2, "y":1}, | ||
| 17 | {"label":"K13 (B5,B4)", "x":3, "y":1}, | ||
| 18 | {"label":"K30 (B7,B0)", "x":0, "y":2, "h":2}, | ||
| 19 | {"label":"K21 (B6,B1)", "x":1, "y":2}, | ||
| 20 | {"label":"K22 (B6,B2)", "x":2, "y":2}, | ||
| 21 | {"label":"K23 (B6,B4)", "x":3, "y":2}, | ||
| 22 | {"label":"K31 (B7,B1)", "x":1, "y":3}, | ||
| 23 | {"label":"K32 (B7,B2)", "x":2, "y":3}, | ||
| 24 | {"label":"K33 (B7,B4)", "x":3, "y":3}, | ||
| 25 | {"label":"K50 (C6,B0)", "x":0, "y":4, "h":2}, | ||
| 26 | {"label":"K41 (C7,B1)", "x":1, "y":4}, | ||
| 27 | {"label":"K42 (C7,B2)", "x":2, "y":4}, | ||
| 28 | {"label":"K43 (C7,B4)", "x":3, "y":4}, | ||
| 29 | {"label":"K51 (C6,B1)", "x":1, "y":5}, | ||
| 30 | {"label":"K53 (C6,B4)", "x":2, "y":5, "w":2} | ||
| 31 | ] | ||
| 32 | } | ||
| 33 | } | ||
| 34 | } \ No newline at end of file | ||
diff --git a/keyboards/matchstickworks/southpad/keymaps/default/keymap.c b/keyboards/matchstickworks/southpad/keymaps/default/keymap.c new file mode 100644 index 000000000..0d196551a --- /dev/null +++ b/keyboards/matchstickworks/southpad/keymaps/default/keymap.c | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | /* Copyright 2021 Logan Butler | ||
| 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_numpad_6x4_southpaw( /* Base */ | ||
| 20 | KC_BSPC, KC_EQL, KC_LPRN, KC_RPRN, | ||
| 21 | KC_PMNS, KC_PAST, KC_PSLS, KC_NLCK, | ||
| 22 | KC_P9, KC_P8, KC_P7, | ||
| 23 | KC_PPLS, KC_P6, KC_P5, KC_P4, | ||
| 24 | KC_P3, KC_P2, KC_P1, | ||
| 25 | KC_PENT, KC_PDOT, KC_P0 | ||
| 26 | ), | ||
| 27 | }; | ||
diff --git a/keyboards/matchstickworks/southpad/readme.md b/keyboards/matchstickworks/southpad/readme.md new file mode 100644 index 000000000..8c8007c2e --- /dev/null +++ b/keyboards/matchstickworks/southpad/readme.md | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | # SouthPad | ||
| 2 | |||
| 3 |  | ||
| 4 | |||
| 5 | This is a left-handed (or mirrored) numberpad with USB-C connections. | ||
| 6 | |||
| 7 | Default layout is such: | ||
| 8 | |||
| 9 |  | ||
| 10 | |||
| 11 | * Keyboard Maintainer: [Logan Butler](https://github.com/MatchstickWorks) | ||
| 12 | * Hardware Supported: SouthPad PCB | ||
| 13 | * Hardware Availability: Either via [my Etsy Store](https://www.etsy.com/shop/MatchstickWorksShop) or by messaging directly | ||
| 14 | |||
| 15 | Getting the board into bootloader mode: | ||
| 16 | |||
| 17 | In order to flash the firmware to this board, simply press the Reset button on the back of the PCB. You should head a USB disconnect and reconnect sound shortly following. | ||
| 18 | |||
| 19 | Make example for this keyboard (after setting up your build environment): | ||
| 20 | |||
| 21 | make matchstickworks/southpad:default | ||
| 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). | ||
diff --git a/keyboards/matchstickworks/southpad/rules.mk b/keyboards/matchstickworks/southpad/rules.mk new file mode 100644 index 000000000..2641e3d33 --- /dev/null +++ b/keyboards/matchstickworks/southpad/rules.mk | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = atmega32u2 | ||
| 3 | |||
| 4 | # Bootloader selection | ||
| 5 | BOOTLOADER = bootloadHID | ||
| 6 | |||
| 7 | # Build Options | ||
| 8 | # change yes to no to disable | ||
| 9 | # | ||
| 10 | BOOTMAGIC_ENABLE = no # 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 = 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 = no # 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 | ||
diff --git a/keyboards/matchstickworks/southpad/southpad.c b/keyboards/matchstickworks/southpad/southpad.c new file mode 100644 index 000000000..52c9c1e6b --- /dev/null +++ b/keyboards/matchstickworks/southpad/southpad.c | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | /* Copyright 2021 Logan Butler | ||
| 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 "southpad.h" | ||
diff --git a/keyboards/matchstickworks/southpad/southpad.h b/keyboards/matchstickworks/southpad/southpad.h new file mode 100644 index 000000000..0847c680d --- /dev/null +++ b/keyboards/matchstickworks/southpad/southpad.h | |||
| @@ -0,0 +1,44 @@ | |||
| 1 | /* Copyright 2021 Logan Butler | ||
| 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 | /* This a shortcut to help you visually see your layout. | ||
| 21 | * | ||
| 22 | * The first section contains all of the arguments representing the physical | ||
| 23 | * layout of the board and position of the keys. | ||
| 24 | * | ||
| 25 | * The second converts the arguments into a two-dimensional array which | ||
| 26 | * represents the switch matrix. | ||
| 27 | */ | ||
| 28 | #define LAYOUT_numpad_6x4_southpaw( \ | ||
| 29 | k00, k01, k02, k03, \ | ||
| 30 | k10, k11, k12, k13, \ | ||
| 31 | k21, k22, k23, \ | ||
| 32 | k20, k31, k32, k33, \ | ||
| 33 | k41, k42, k43, \ | ||
| 34 | k40, k51, k53 \ | ||
| 35 | ) \ | ||
| 36 | { \ | ||
| 37 | { k00, k01, k02, k03 }, \ | ||
| 38 | { k10, k11, k12, k13 }, \ | ||
| 39 | { k20, k21, k22, k23 }, \ | ||
| 40 | { KC_NO, k31, k32, k33 }, \ | ||
| 41 | { k40, k41, k42, k43 }, \ | ||
| 42 | { KC_NO, k51, KC_NO, k53 } \ | ||
| 43 | } | ||
| 44 | |||
