summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--keyboards/ai03/altair/config.h12
-rw-r--r--keyboards/ai03/altair/keyboard.json118
-rw-r--r--keyboards/ai03/altair/keymaps/default/keymap.c24
-rw-r--r--keyboards/ai03/altair/keymaps/via/keymap.c24
-rw-r--r--keyboards/ai03/altair/keymaps/via/rules.mk1
-rw-r--r--keyboards/ai03/altair/readme.md19
-rw-r--r--keyboards/ai03/altair/rules.mk1
7 files changed, 199 insertions, 0 deletions
diff --git a/keyboards/ai03/altair/config.h b/keyboards/ai03/altair/config.h
new file mode 100644
index 0000000000..c54b35498b
--- /dev/null
+++ b/keyboards/ai03/altair/config.h
@@ -0,0 +1,12 @@
1/* Copyright 2024 ai03 Design Studio */
2/* SPDX-License-Identifier: GPL-2.0-or-later */
3
4#pragma once
5
6/* VBUS-routed pin for upstream detection */
7#define USB_VBUS_PIN GP0
8
9/* RP2040- and hardware-specific config */
10#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET
11#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET_TIMEOUT 500U
12#define PICO_XOSC_STARTUP_DELAY_MULTIPLIER 64
diff --git a/keyboards/ai03/altair/keyboard.json b/keyboards/ai03/altair/keyboard.json
new file mode 100644
index 0000000000..9626716cde
--- /dev/null
+++ b/keyboards/ai03/altair/keyboard.json
@@ -0,0 +1,118 @@
1{
2 "manufacturer": "ai03 Design Studio",
3 "keyboard_name": "Altair",
4 "maintainer": "ai03_2725",
5 "bootloader": "rp2040",
6 "build": {
7 "debounce_type": "asym_eager_defer_pk"
8 },
9 "diode_direction": "COL2ROW",
10 "dynamic_keymap": {
11 "layer_count": 6
12 },
13 "features": {
14 "bootmagic": true,
15 "command": false,
16 "console": false,
17 "extrakey": true,
18 "mousekey": true,
19 "nkro": true
20 },
21 "matrix_pins": {
22 "cols": ["GP20", "GP19", "GP18", "GP17", "GP16", "GP21", "GP9"],
23 "rows": ["GP11", "GP26", "GP27", "GP28", "GP10"]
24 },
25 "processor": "RP2040",
26 "split": {
27 "bootmagic": {
28 "matrix": [5, 0]
29 },
30 "enabled": true,
31 "handedness": {
32 "pin": "GP8"
33 },
34 "matrix_pins": {
35 "right": {
36 "cols": ["GP15", "GP21", "GP9", "GP13", "GP10", "GP11", "GP12"],
37 "rows": ["GP5", "GP16", "GP20", "GP28", "GP14"]
38 }
39 },
40 "soft_serial_pin": "GP29"
41 },
42 "url": "https://ai03.com/",
43 "usb": {
44 "device_version": "0.0.1",
45 "pid": "0x0022",
46 "vid": "0xA103"
47 },
48 "layouts": {
49 "LAYOUT": {
50 "layout": [
51 {"matrix": [0, 0], "x": 0, "y": 0.38},
52 {"matrix": [0, 1], "x": 1, "y": 0.38},
53 {"matrix": [0, 2], "x": 2, "y": 0.13},
54 {"matrix": [0, 3], "x": 3, "y": 0},
55 {"matrix": [0, 4], "x": 4, "y": 0.13},
56 {"matrix": [0, 5], "x": 5, "y": 0.25},
57 {"matrix": [0, 6], "x": 6, "y": 0.5},
58 {"matrix": [5, 0], "x": 7.75, "y": 0.5},
59 {"matrix": [5, 1], "x": 8.75, "y": 0.25},
60 {"matrix": [5, 2], "x": 9.75, "y": 0.13},
61 {"matrix": [5, 3], "x": 10.75, "y": 0},
62 {"matrix": [5, 4], "x": 11.75, "y": 0.13},
63 {"matrix": [5, 5], "x": 12.75, "y": 0.38},
64 {"matrix": [5, 6], "x": 13.75, "y": 0.38},
65 {"matrix": [1, 0], "x": 0, "y": 1.38},
66 {"matrix": [1, 1], "x": 1, "y": 1.38},
67 {"matrix": [1, 2], "x": 2, "y": 1.13},
68 {"matrix": [1, 3], "x": 3, "y": 1},
69 {"matrix": [1, 4], "x": 4, "y": 1.13},
70 {"matrix": [1, 5], "x": 5, "y": 1.25},
71 {"matrix": [1, 6], "x": 6, "y": 1.5},
72 {"matrix": [6, 0], "x": 7.75, "y": 1.5},
73 {"matrix": [6, 1], "x": 8.75, "y": 1.25},
74 {"matrix": [6, 2], "x": 9.75, "y": 1.13},
75 {"matrix": [6, 3], "x": 10.75, "y": 1},
76 {"matrix": [6, 4], "x": 11.75, "y": 1.13},
77 {"matrix": [6, 5], "x": 12.75, "y": 1.38},
78 {"matrix": [6, 6], "x": 13.75, "y": 1.38},
79 {"matrix": [2, 0], "x": 0, "y": 2.38},
80 {"matrix": [2, 1], "x": 1, "y": 2.38},
81 {"matrix": [2, 2], "x": 2, "y": 2.13},
82 {"matrix": [2, 3], "x": 3, "y": 2},
83 {"matrix": [2, 4], "x": 4, "y": 2.13},
84 {"matrix": [2, 5], "x": 5, "y": 2.25},
85 {"matrix": [2, 6], "x": 6, "y": 2.5},
86 {"matrix": [7, 0], "x": 7.75, "y": 2.5},
87 {"matrix": [7, 1], "x": 8.75, "y": 2.25},
88 {"matrix": [7, 2], "x": 9.75, "y": 2.13},
89 {"matrix": [7, 3], "x": 10.75, "y": 2},
90 {"matrix": [7, 4], "x": 11.75, "y": 2.13},
91 {"matrix": [7, 5], "x": 12.75, "y": 2.38},
92 {"matrix": [7, 6], "x": 13.75, "y": 2.38},
93 {"matrix": [3, 0], "x": 0, "y": 3.38},
94 {"matrix": [3, 1], "x": 1, "y": 3.38},
95 {"matrix": [3, 2], "x": 2, "y": 3.13},
96 {"matrix": [3, 3], "x": 3, "y": 3},
97 {"matrix": [3, 4], "x": 4, "y": 3.13},
98 {"matrix": [3, 5], "x": 5, "y": 3.25},
99 {"matrix": [3, 6], "x": 6, "y": 3.5},
100 {"matrix": [8, 0], "x": 7.75, "y": 3.5},
101 {"matrix": [8, 1], "x": 8.75, "y": 3.25},
102 {"matrix": [8, 2], "x": 9.75, "y": 3.13},
103 {"matrix": [8, 3], "x": 10.75, "y": 3},
104 {"matrix": [8, 4], "x": 11.75, "y": 3.13},
105 {"matrix": [8, 5], "x": 12.75, "y": 3.38},
106 {"matrix": [8, 6], "x": 13.75, "y": 3.38},
107 {"matrix": [4, 3], "x": 2.71, "y": 4.13},
108 {"matrix": [4, 4], "x": 3.73, "y": 4.16},
109 {"matrix": [4, 5], "x": 4.74, "y": 4.36},
110 {"matrix": [4, 6], "x": 5.75, "y": 4.72},
111 {"matrix": [9, 0], "x": 8, "y": 4.72},
112 {"matrix": [9, 1], "x": 9.02, "y": 4.36},
113 {"matrix": [9, 2], "x": 10.03, "y": 4.18},
114 {"matrix": [9, 3], "x": 11.05, "y": 4.13}
115 ]
116 }
117 }
118}
diff --git a/keyboards/ai03/altair/keymaps/default/keymap.c b/keyboards/ai03/altair/keymaps/default/keymap.c
new file mode 100644
index 0000000000..038b2b823d
--- /dev/null
+++ b/keyboards/ai03/altair/keymaps/default/keymap.c
@@ -0,0 +1,24 @@
1/* Copyright 2024 ai03 Design Studio */
2/* SPDX-License-Identifier: GPL-2.0-or-later */
3
4#include QMK_KEYBOARD_H
5
6const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
7
8 [0] = LAYOUT(
9 KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_MINS, KC_EQL, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC,
10 KC_CAPS, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_LBRC, KC_RBRC, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSLS,
11 KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_LPRN, KC_RPRN, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
12 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_GRV, KC_PSCR, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT,
13 KC_LGUI, KC_LALT, MO(1), KC_SPC, KC_SPC, MO(1), KC_TAB, KC_DEL
14 ),
15
16 [1] = LAYOUT(
17 _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______,
18 _______, _______, _______, KC_PGUP, _______, _______, _______, _______, _______, _______, KC_UP, _______, _______, _______,
19 _______, _______, KC_HOME, KC_PGDN, KC_END, _______, _______, _______, _______, KC_LEFT, KC_DOWN, KC_RGHT, _______, _______,
20 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
21 _______, _______, _______, _______, _______, _______, _______, _______
22 )
23
24};
diff --git a/keyboards/ai03/altair/keymaps/via/keymap.c b/keyboards/ai03/altair/keymaps/via/keymap.c
new file mode 100644
index 0000000000..038b2b823d
--- /dev/null
+++ b/keyboards/ai03/altair/keymaps/via/keymap.c
@@ -0,0 +1,24 @@
1/* Copyright 2024 ai03 Design Studio */
2/* SPDX-License-Identifier: GPL-2.0-or-later */
3
4#include QMK_KEYBOARD_H
5
6const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
7
8 [0] = LAYOUT(
9 KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_MINS, KC_EQL, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC,
10 KC_CAPS, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_LBRC, KC_RBRC, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSLS,
11 KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_LPRN, KC_RPRN, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
12 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_GRV, KC_PSCR, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT,
13 KC_LGUI, KC_LALT, MO(1), KC_SPC, KC_SPC, MO(1), KC_TAB, KC_DEL
14 ),
15
16 [1] = LAYOUT(
17 _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______,
18 _______, _______, _______, KC_PGUP, _______, _______, _______, _______, _______, _______, KC_UP, _______, _______, _______,
19 _______, _______, KC_HOME, KC_PGDN, KC_END, _______, _______, _______, _______, KC_LEFT, KC_DOWN, KC_RGHT, _______, _______,
20 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
21 _______, _______, _______, _______, _______, _______, _______, _______
22 )
23
24};
diff --git a/keyboards/ai03/altair/keymaps/via/rules.mk b/keyboards/ai03/altair/keymaps/via/rules.mk
new file mode 100644
index 0000000000..1e5b99807c
--- /dev/null
+++ b/keyboards/ai03/altair/keymaps/via/rules.mk
@@ -0,0 +1 @@
VIA_ENABLE = yes
diff --git a/keyboards/ai03/altair/readme.md b/keyboards/ai03/altair/readme.md
new file mode 100644
index 0000000000..959759d945
--- /dev/null
+++ b/keyboards/ai03/altair/readme.md
@@ -0,0 +1,19 @@
1# Altair
2
3![altair](https://i.imgur.com/O9UXaCO.png)
4
5ai03's third-generation ergonomic keyboard, 5-row variant
6
7* Keyboard Maintainer: [ai03](https://github.com/ai03-2725)
8* Hardware Supported: Altair keyboard PCB
9* Hardware Availability: Group buy
10
11Make example for this keyboard (after setting up your build environment):
12
13 make ai03/altair:default
14
15Flashing example for this keyboard:
16
17 make ai03/altair: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).
diff --git a/keyboards/ai03/altair/rules.mk b/keyboards/ai03/altair/rules.mk
new file mode 100644
index 0000000000..161ec22b16
--- /dev/null
+++ b/keyboards/ai03/altair/rules.mk
@@ -0,0 +1 @@
SERIAL_DRIVER = vendor