summaryrefslogtreecommitdiff
path: root/keyboards/arrayperipherals
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/arrayperipherals')
-rw-r--r--keyboards/arrayperipherals/1x4p1/keyboard.json42
-rw-r--r--keyboards/arrayperipherals/1x4p1/keymaps/default/keymap.c40
-rw-r--r--keyboards/arrayperipherals/1x4p1/keymaps/default/readme.md5
-rw-r--r--keyboards/arrayperipherals/1x4p1/readme.md16
-rw-r--r--keyboards/arrayperipherals/readme.md5
-rw-r--r--keyboards/arrayperipherals/vector/keyboard.json40
-rw-r--r--keyboards/arrayperipherals/vector/keymaps/default/keymap.c36
-rw-r--r--keyboards/arrayperipherals/vector/keymaps/default/rules.mk1
-rw-r--r--keyboards/arrayperipherals/vector/readme.md26
9 files changed, 211 insertions, 0 deletions
diff --git a/keyboards/arrayperipherals/1x4p1/keyboard.json b/keyboards/arrayperipherals/1x4p1/keyboard.json
new file mode 100644
index 0000000000..4a0f1b9cfd
--- /dev/null
+++ b/keyboards/arrayperipherals/1x4p1/keyboard.json
@@ -0,0 +1,42 @@
1{
2 "keyboard_name": "[1x4] + 1 Macropad",
3 "manufacturer": "Array Peripherals",
4 "url": "https://github.com/daviddoan",
5 "maintainer": "David Doan",
6 "usb": {
7 "vid": "0x4152",
8 "pid": "0x4F46",
9 "device_version": "0.0.1"
10 },
11 "encoder": {
12 "rotary": [
13 {"pin_a": "F0", "pin_b": "F1"}
14 ]
15 },
16 "processor": "atmega32u4",
17 "bootloader": "caterina",
18 "features": {
19 "bootmagic": true,
20 "encoder": true,
21 "extrakey": true,
22 "mousekey": true,
23 "nkro": true,
24 "unicode": true
25 },
26 "matrix_pins": {
27 "direct": [
28 ["C7", "B7", "D6", "F5", "F7"]
29 ]
30 },
31 "layouts": {
32 "LAYOUT_ortho_1x5": {
33 "layout": [
34 {"x": 0, "y": 0, "matrix": [0, 0]},
35 {"x": 1, "y": 0, "matrix": [0, 1]},
36 {"x": 2, "y": 0, "matrix": [0, 2]},
37 {"x": 3, "y": 0, "matrix": [0, 3]},
38 {"x": 4, "y": 0, "matrix": [0, 4]}
39 ]
40 }
41 }
42}
diff --git a/keyboards/arrayperipherals/1x4p1/keymaps/default/keymap.c b/keyboards/arrayperipherals/1x4p1/keymaps/default/keymap.c
new file mode 100644
index 0000000000..dc4e21127a
--- /dev/null
+++ b/keyboards/arrayperipherals/1x4p1/keymaps/default/keymap.c
@@ -0,0 +1,40 @@
1/*
2Copyright 2020 David Doan
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 2 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/
17
18#include QMK_KEYBOARD_H
19
20bool encoder_update_user(uint8_t index, bool clockwise) {
21 if (index == 0) { /* First encoder */
22 if (clockwise) {
23 tap_code(MS_WHLU);
24 } else {
25 tap_code(MS_WHLD);
26 }
27 }
28 return true;
29}
30
31//
32const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { //button closest to usb is first
33 [0] = LAYOUT_ortho_1x5(
34 KC_ESC, KC_TAB, KC_LSFT, KC_LCTL, TG(1)
35 ),
36
37 [1] = LAYOUT_ortho_1x5(
38 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, TG(0)
39 )
40};
diff --git a/keyboards/arrayperipherals/1x4p1/keymaps/default/readme.md b/keyboards/arrayperipherals/1x4p1/keymaps/default/readme.md
new file mode 100644
index 0000000000..ba50c6bd2e
--- /dev/null
+++ b/keyboards/arrayperipherals/1x4p1/keymaps/default/readme.md
@@ -0,0 +1,5 @@
1![[1x4] + 1 Macropad Layout](https://i.imgur.com/ZdXuIwb.png)
2
3# Default [1x4] + 1 Macropad Layout
4
5This is the default layout that comes flashed on every [1x4] + 1 Macropad. The right most key (red) is the rotary and the key is binded to layer switching. The second layer is left blank for the user. \ No newline at end of file
diff --git a/keyboards/arrayperipherals/1x4p1/readme.md b/keyboards/arrayperipherals/1x4p1/readme.md
new file mode 100644
index 0000000000..c9374cb7a8
--- /dev/null
+++ b/keyboards/arrayperipherals/1x4p1/readme.md
@@ -0,0 +1,16 @@
1# [1x4] + 1 Macropad
2
3![[1x4] + 1 Macropad](https://images.squarespace-cdn.com/content/v1/5f5e7d5dc43c166c56c0ae39/1606977576841-KIT0TOI6L3FO8FTS4ZHB/ke17ZwdGBToddI8pDm48kDk1dm1oSR9gCa1mX4KqzjN7gQa3H78H3Y0txjaiv_0fDoOvxcdMmMKkDsyUqMSsMWxHk725yiiHCCLfrh8O1z4YTzHvnKhyp6Da-NYroOW3ZGjoBKy3azqku80C789l0luj0xCD0oh5KMc0gpox0u-wQWxfQHg04OxgQwaUq2yiAcNt5Kg2tE9yEtYfM4xwaw/DSC_0116.jpg)
4
5A macropad with a 1x4 matrix array with an additional rotary that also functions as a button. [More info at arrayperipherals.com](https://www.arrayperipherals.com/)
6
7* Keyboard Maintainer: [David Doan](https://github.com/daviddoan)
8* Hardware Supported: Adafruit ItsyBitsy 32u4
9* Hardware Availability: [arrayperipherals.com](https://www.arrayperipherals.com/)
10
11See 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).
12
13## Resetting macropad into bootloader mode.
14
15The stock version of the macropad has bootmagic lite enabled. To trigger the bootloader, the first key (key furthest way from the rotary) needs to be held down when plugging the keyboard in.
16NOTE: Using bootmagic lite will always reset the EEPROM, so you will lose any settings that have been saved.
diff --git a/keyboards/arrayperipherals/readme.md b/keyboards/arrayperipherals/readme.md
new file mode 100644
index 0000000000..3c6aba591f
--- /dev/null
+++ b/keyboards/arrayperipherals/readme.md
@@ -0,0 +1,5 @@
1# Array Peripherals
2
3Array Peripherals is a small company operating out of an apartment by two brothers located in Northern California.
4
5Website: [Array Peripherals](www.arrayperipherals.com)
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/*
2Copyright 2024 David Doan <daviddoan1995@gmail.com>
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 2 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/
17
18#include QMK_KEYBOARD_H
19
20const 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)
32const 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![The Vector](https://i.imgur.com/rmy76bp.png)
4
5A 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
11Make example for this keyboard (after setting up your build environment):
12
13 make arrayperipherals/vector:default
14
15Flashing example for this keyboard:
16
17 make arrayperipherals/vector:default:flash
18
19See 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
23Enter 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