Skip to content

Commit 80f8aae

Browse files
committed
Merge remote-tracking branch 'origin/master' into develop
2 parents 6602ee0 + 3600892 commit 80f8aae

File tree

4 files changed

+103
-0
lines changed

4 files changed

+103
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -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+
}
Original file line numberDiff line numberDiff line change
@@ -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
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ENCODER_MAP_ENABLE = yes
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# The Vector Macropad
2+
3+
![The Vector](https://i.imgur.com/rmy76bp.png)
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

0 commit comments

Comments
 (0)