diff options
| author | David Doan <daviddoan1995@gmail.com> | 2024-10-17 09:06:17 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-17 10:06:17 -0600 |
| commit | 36008922f8456694d45d2c36500dfba3c4271b09 (patch) | |
| tree | 8d5a514a1bdc5093366325088d7e1f9f219861a0 /keyboards/arrayperipherals | |
| parent | 2ad13037aba7e03ed9e869c1500da4474543d8b6 (diff) | |
add vector macropad (#24487)
Co-authored-by: Joel Challis <git@zvecr.com>
Co-authored-by: jack <jack@pngu.org>
Co-authored-by: Ryan <fauxpark@gmail.com>
Diffstat (limited to 'keyboards/arrayperipherals')
4 files changed, 103 insertions, 0 deletions
diff --git a/keyboards/arrayperipherals/vector/keyboard.json b/keyboards/arrayperipherals/vector/keyboard.json new file mode 100644 index 0000000000..505199831d --- /dev/null +++ b/keyboards/arrayperipherals/vector/keyboard.json | |||
| @@ -0,0 +1,40 @@ | |||
| 1 | { | ||
| 2 | "manufacturer": "Array Peripherals", | ||
| 3 | "keyboard_name": "The Vector", | ||
| 4 | "maintainer": "daviddoan", | ||
| 5 | "bootloader": "atmel-dfu", | ||
| 6 | "encoder": { | ||
| 7 | "rotary": [ | ||
| 8 | {"pin_a": "F0", "pin_b": "F1"} | ||
| 9 | ] | ||
| 10 | }, | ||
| 11 | "features": { | ||
| 12 | "bootmagic": true, | ||
| 13 | "encoder": true, | ||
| 14 | "extrakey": true, | ||
| 15 | "mousekey": true | ||
| 16 | }, | ||
| 17 | "matrix_pins": { | ||
| 18 | "direct": [ | ||
| 19 | ["D4", "C6", "D7", "E6", "F7"] | ||
| 20 | ] | ||
| 21 | }, | ||
| 22 | "processor": "atmega32u4", | ||
| 23 | "url": "https://arrayperipherals.com", | ||
| 24 | "usb": { | ||
| 25 | "device_version": "1.0.0", | ||
| 26 | "pid": "0x4F47", | ||
| 27 | "vid": "0x4152" | ||
| 28 | }, | ||
| 29 | "layouts": { | ||
| 30 | "LAYOUT": { | ||
| 31 | "layout": [ | ||
| 32 | {"label": "k01", "matrix": [0, 0], "x": 0, "y": 0}, | ||
| 33 | {"label": "k02", "matrix": [0, 1], "x": 1, "y": 0}, | ||
| 34 | {"label": "k03", "matrix": [0, 2], "x": 2, "y": 0}, | ||
| 35 | {"label": "k04", "matrix": [0, 3], "x": 3, "y": 0}, | ||
| 36 | {"label": "k05", "matrix": [0, 4], "x": 4.25, "y": 0} | ||
| 37 | ] | ||
| 38 | } | ||
| 39 | } | ||
| 40 | } | ||
diff --git a/keyboards/arrayperipherals/vector/keymaps/default/keymap.c b/keyboards/arrayperipherals/vector/keymaps/default/keymap.c new file mode 100644 index 0000000000..e290e37076 --- /dev/null +++ b/keyboards/arrayperipherals/vector/keymaps/default/keymap.c | |||
| @@ -0,0 +1,36 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2024 David Doan <daviddoan1995@gmail.com> | ||
| 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 | #include QMK_KEYBOARD_H | ||
| 19 | |||
| 20 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 21 | |||
| 22 | [0] = LAYOUT( | ||
| 23 | KC_MPRV, KC_MPLY, KC_MNXT, KC_MUTE, TG(1) | ||
| 24 | ), | ||
| 25 | |||
| 26 | [1] = LAYOUT( | ||
| 27 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, TG(1) | ||
| 28 | ), | ||
| 29 | }; | ||
| 30 | |||
| 31 | #if defined(ENCODER_MAP_ENABLE) | ||
| 32 | const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = { | ||
| 33 | [0] = {ENCODER_CCW_CW(KC_VOLD, KC_VOLU)}, | ||
| 34 | [1] = {ENCODER_CCW_CW(KC_TRNS, KC_TRNS)}, | ||
| 35 | }; | ||
| 36 | #endif // ENCODER_MAP_ENABLE \ No newline at end of file | ||
diff --git a/keyboards/arrayperipherals/vector/keymaps/default/rules.mk b/keyboards/arrayperipherals/vector/keymaps/default/rules.mk new file mode 100644 index 0000000000..a40474b4d5 --- /dev/null +++ b/keyboards/arrayperipherals/vector/keymaps/default/rules.mk | |||
| @@ -0,0 +1 @@ | |||
| ENCODER_MAP_ENABLE = yes \ No newline at end of file | |||
diff --git a/keyboards/arrayperipherals/vector/readme.md b/keyboards/arrayperipherals/vector/readme.md new file mode 100644 index 0000000000..dee7dc8f9a --- /dev/null +++ b/keyboards/arrayperipherals/vector/readme.md | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | # The Vector Macropad | ||
| 2 | |||
| 3 |  | ||
| 4 | |||
| 5 | A small (1x4) macropad with a rotary. [More info at arrayperipherals.com](https://www.arrayperipherals.com/) | ||
| 6 | |||
| 7 | * Keyboard Maintainer: [David Doan](https://github.com/daviddoan) | ||
| 8 | * Hardware Supported: Custom PCB with Atmega32u4 processor | ||
| 9 | * Hardware Availability: [arrayperipherals.com](https://www.arrayperipherals.com/) | ||
| 10 | |||
| 11 | Make example for this keyboard (after setting up your build environment): | ||
| 12 | |||
| 13 | make arrayperipherals/vector:default | ||
| 14 | |||
| 15 | Flashing example for this keyboard: | ||
| 16 | |||
| 17 | make arrayperipherals/vector:default:flash | ||
| 18 | |||
| 19 | 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). | ||
| 20 | |||
| 21 | ## Bootloader | ||
| 22 | |||
| 23 | Enter the bootloader in 2 ways: | ||
| 24 | |||
| 25 | * **Bootmagic reset**: Hold down the key at (0,0) in the matrix (left most from the rotary) | ||
| 26 | * **Physical reset button**: Briefly double press the button on the back of the PCB \ No newline at end of file | ||
