aboutsummaryrefslogtreecommitdiff
path: root/keyboards/ai03/polaris
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/ai03/polaris')
-rw-r--r--keyboards/ai03/polaris/config.h115
-rw-r--r--keyboards/ai03/polaris/info.json275
-rw-r--r--keyboards/ai03/polaris/keymaps/default/keymap.c39
-rw-r--r--keyboards/ai03/polaris/keymaps/default/readme.md3
-rw-r--r--keyboards/ai03/polaris/keymaps/default_ansi_tsangan/keymap.c38
-rw-r--r--keyboards/ai03/polaris/keymaps/default_ansi_tsangan/readme.md3
-rw-r--r--keyboards/ai03/polaris/keymaps/mekberg/config.h22
-rw-r--r--keyboards/ai03/polaris/keymaps/mekberg/keymap.c97
-rw-r--r--keyboards/ai03/polaris/keymaps/mekberg/readme.md14
-rw-r--r--keyboards/ai03/polaris/keymaps/mekberg/rules.mk2
-rw-r--r--keyboards/ai03/polaris/keymaps/testing/keymap.c39
-rw-r--r--keyboards/ai03/polaris/keymaps/testing/readme.md16
-rw-r--r--keyboards/ai03/polaris/keymaps/via/keymap.c55
-rw-r--r--keyboards/ai03/polaris/keymaps/via/readme.md3
-rw-r--r--keyboards/ai03/polaris/keymaps/via/rules.mk1
-rw-r--r--keyboards/ai03/polaris/polaris.c16
-rw-r--r--keyboards/ai03/polaris/polaris.h86
-rw-r--r--keyboards/ai03/polaris/readme.md15
-rw-r--r--keyboards/ai03/polaris/rules.mk20
19 files changed, 859 insertions, 0 deletions
diff --git a/keyboards/ai03/polaris/config.h b/keyboards/ai03/polaris/config.h
new file mode 100644
index 000000000..0cd6e6f58
--- /dev/null
+++ b/keyboards/ai03/polaris/config.h
@@ -0,0 +1,115 @@
1/*
2Copyright 2019 Ryota Goto
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#pragma once
19
20#include "config_common.h"
21
22/* USB Device descriptor parameter */
23#define VENDOR_ID 0xA103
24#define PRODUCT_ID 0x0002
25#define DEVICE_VER 0x0001
26#define MANUFACTURER ai03 Design Studio
27#define PRODUCT Polaris
28
29/* key matrix size */
30#define MATRIX_ROWS 5
31#define MATRIX_COLS 14
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 { B1, B2, B3, F0, F1 }
44#define MATRIX_COL_PINS { F4, F7, F5, F6, C7, C6, B6, B5, B4, D7, D6, D4, D5, D3 }
45#define UNUSED_PINS
46
47/* COL2ROW, ROW2COL*/
48#define DIODE_DIRECTION COL2ROW
49
50#define BACKLIGHT_PIN B7
51#define BACKLIGHT_BREATHING
52#define BACKLIGHT_LEVELS 5
53
54#define RGB_DI_PIN D2
55#ifdef RGB_DI_PIN
56 #define RGBLED_NUM 14
57 #define RGBLIGHT_HUE_STEP 8
58 #define RGBLIGHT_SAT_STEP 8
59 #define RGBLIGHT_VAL_STEP 8
60 #define RGBLIGHT_LIMIT_VAL 200 /* The maximum brightness level */
61 #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
62/*== all animations enable ==*/
63 #define RGBLIGHT_ANIMATIONS
64// /*== or choose animations ==*/
65// #define RGBLIGHT_EFFECT_BREATHING
66// #define RGBLIGHT_EFFECT_RAINBOW_MOOD
67// #define RGBLIGHT_EFFECT_RAINBOW_SWIRL
68// #define RGBLIGHT_EFFECT_SNAKE
69// #define RGBLIGHT_EFFECT_KNIGHT
70// #define RGBLIGHT_EFFECT_CHRISTMAS
71// #define RGBLIGHT_EFFECT_STATIC_GRADIENT
72// #define RGBLIGHT_EFFECT_RGB_TEST
73// #define RGBLIGHT_EFFECT_ALTERNATING
74// /*== customize breathing effect ==*/
75// /*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/
76// #define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64
77// /*==== use exp() and sin() ====*/
78// #define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7
79// #define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255
80#endif
81
82/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
83#define DEBOUNCE 5
84
85/* define if matrix has ghost (lacks anti-ghosting diodes) */
86//#define MATRIX_HAS_GHOST
87
88/* number of backlight levels */
89
90/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
91#define LOCKING_SUPPORT_ENABLE
92/* Locking resynchronize hack */
93#define LOCKING_RESYNC_ENABLE
94
95/*
96 * Feature disable options
97 * These options are also useful to firmware size reduction.
98 */
99
100/* disable debug print */
101//#define NO_DEBUG
102
103/* disable print */
104//#define NO_PRINT
105
106/* disable action features */
107//#define NO_ACTION_LAYER
108//#define NO_ACTION_TAPPING
109//#define NO_ACTION_ONESHOT
110//#define NO_ACTION_MACRO
111//#define NO_ACTION_FUNCTION
112
113/* Bootmagic Lite key configuration */
114// #define BOOTMAGIC_LITE_ROW 0
115// #define BOOTMAGIC_LITE_COLUMN 0
diff --git a/keyboards/ai03/polaris/info.json b/keyboards/ai03/polaris/info.json
new file mode 100644
index 000000000..99f8ca7a3
--- /dev/null
+++ b/keyboards/ai03/polaris/info.json
@@ -0,0 +1,275 @@
1{
2 "keyboard_name": "Polaris",
3 "url": "https://kb.ai03.me/projects/polaris.html",
4 "maintainer": "ai03",
5 "layouts": {
6 "LAYOUT_all": {
7 "layout": [
8 {"label":"~", "x":0, "y":0},
9 {"label":"!", "x":1, "y":0},
10 {"label":"@", "x":2, "y":0},
11 {"label":"#", "x":3, "y":0},
12 {"label":"$", "x":4, "y":0},
13 {"label":"%", "x":5, "y":0},
14 {"label":"^", "x":6, "y":0},
15 {"label":"&", "x":7, "y":0},
16 {"label":"*", "x":8, "y":0},
17 {"label":"(", "x":9, "y":0},
18 {"label":")", "x":10, "y":0},
19 {"label":"_", "x":11, "y":0},
20 {"label":"+", "x":12, "y":0},
21 {"label":"Backspace", "x":13, "y":0},
22 {"label":"Delete", "x":14, "y":0},
23 {"label":"Tab", "x":0, "y":1, "w":1.5},
24 {"label":"Q", "x":1.5, "y":1},
25 {"label":"W", "x":2.5, "y":1},
26 {"label":"E", "x":3.5, "y":1},
27 {"label":"R", "x":4.5, "y":1},
28 {"label":"T", "x":5.5, "y":1},
29 {"label":"Y", "x":6.5, "y":1},
30 {"label":"U", "x":7.5, "y":1},
31 {"label":"I", "x":8.5, "y":1},
32 {"label":"O", "x":9.5, "y":1},
33 {"label":"P", "x":10.5, "y":1},
34 {"label":"{", "x":11.5, "y":1},
35 {"label":"}", "x":12.5, "y":1},
36 {"label":"|", "x":13.5, "y":1, "w":1.5},
37 {"label":"Caps Lock", "x":0, "y":2, "w":1.75},
38 {"label":"A", "x":1.75, "y":2},
39 {"label":"S", "x":2.75, "y":2},
40 {"label":"D", "x":3.75, "y":2},
41 {"label":"F", "x":4.75, "y":2},
42 {"label":"G", "x":5.75, "y":2},
43 {"label":"H", "x":6.75, "y":2},
44 {"label":"J", "x":7.75, "y":2},
45 {"label":"K", "x":8.75, "y":2},
46 {"label":"L", "x":9.75, "y":2},
47 {"label":":", "x":10.75, "y":2},
48 {"label":"\"", "x":11.75, "y":2},
49 {"label":"Enter", "x":12.75, "y":2, "w":2.25},
50 {"label":"Shift", "x":0, "y":3, "w":1.25},
51 {"label":"|", "x":1.25, "y":3},
52 {"label":"Z", "x":2.25, "y":3},
53 {"label":"X", "x":3.25, "y":3},
54 {"label":"C", "x":4.25, "y":3},
55 {"label":"V", "x":5.25, "y":3},
56 {"label":"B", "x":6.25, "y":3},
57 {"label":"N", "x":7.25, "y":3},
58 {"label":"M", "x":8.25, "y":3},
59 {"label":"<", "x":9.25, "y":3},
60 {"label":">", "x":10.25, "y":3},
61 {"label":"?", "x":11.25, "y":3},
62 {"label":"Shift", "x":12.25, "y":3, "w":1.75},
63 {"label":"Print Screen", "x":14, "y":3},
64 {"label":"Ctrl", "x":0, "y":4, "w":1.25},
65 {"label":"Win", "x":1.25, "y":4, "w":1.25},
66 {"label":"Alt", "x":2.5, "y":4, "w":1.25},
67 {"x":3.75, "y":4, "w":2.25},
68 {"x":6, "y":4, "w":1.25},
69 {"x":7.25, "y":4, "w":2.75},
70 {"label":"Alt", "x":10, "y":4, "w":1.25},
71 {"label":"Win", "x":11.25, "y":4, "w":1.25},
72 {"label":"Menu", "x":12.5, "y":4, "w":1.25},
73 {"label":"Ctrl", "x":13.75, "y":4, "w":1.25}
74 ]
75 },
76 "LAYOUT_60_ansi": {
77 "layout": [
78 {"label":"~", "x":0, "y":0},
79 {"label":"!", "x":1, "y":0},
80 {"label":"@", "x":2, "y":0},
81 {"label":"#", "x":3, "y":0},
82 {"label":"$", "x":4, "y":0},
83 {"label":"%", "x":5, "y":0},
84 {"label":"^", "x":6, "y":0},
85 {"label":"&", "x":7, "y":0},
86 {"label":"*", "x":8, "y":0},
87 {"label":"(", "x":9, "y":0},
88 {"label":")", "x":10, "y":0},
89 {"label":"_", "x":11, "y":0},
90 {"label":"+", "x":12, "y":0},
91 {"label":"Backspace", "x":13, "y":0, "w":2},
92 {"label":"Tab", "x":0, "y":1, "w":1.5},
93 {"label":"Q", "x":1.5, "y":1},
94 {"label":"W", "x":2.5, "y":1},
95 {"label":"E", "x":3.5, "y":1},
96 {"label":"R", "x":4.5, "y":1},
97 {"label":"T", "x":5.5, "y":1},
98 {"label":"Y", "x":6.5, "y":1},
99 {"label":"U", "x":7.5, "y":1},
100 {"label":"I", "x":8.5, "y":1},
101 {"label":"O", "x":9.5, "y":1},
102 {"label":"P", "x":10.5, "y":1},
103 {"label":"{", "x":11.5, "y":1},
104 {"label":"}", "x":12.5, "y":1},
105 {"label":"|", "x":13.5, "y":1, "w":1.5},
106 {"label":"Caps Lock", "x":0, "y":2, "w":1.75},
107 {"label":"A", "x":1.75, "y":2},
108 {"label":"S", "x":2.75, "y":2},
109 {"label":"D", "x":3.75, "y":2},
110 {"label":"F", "x":4.75, "y":2},
111 {"label":"G", "x":5.75, "y":2},
112 {"label":"H", "x":6.75, "y":2},
113 {"label":"J", "x":7.75, "y":2},
114 {"label":"K", "x":8.75, "y":2},
115 {"label":"L", "x":9.75, "y":2},
116 {"label":":", "x":10.75, "y":2},
117 {"label":"\"", "x":11.75, "y":2},
118 {"label":"Enter", "x":12.75, "y":2, "w":2.25},
119 {"label":"Shift", "x":0, "y":3, "w":2.25},
120 {"label":"Z", "x":2.25, "y":3},
121 {"label":"X", "x":3.25, "y":3},
122 {"label":"C", "x":4.25, "y":3},
123 {"label":"V", "x":5.25, "y":3},
124 {"label":"B", "x":6.25, "y":3},
125 {"label":"N", "x":7.25, "y":3},
126 {"label":"M", "x":8.25, "y":3},
127 {"label":"<", "x":9.25, "y":3},
128 {"label":">", "x":10.25, "y":3},
129 {"label":"?", "x":11.25, "y":3},
130 {"label":"Shift", "x":12.25, "y":3, "w":2.75},
131 {"label":"Ctrl", "x":0, "y":4, "w":1.25},
132 {"label":"Win", "x":1.25, "y":4, "w":1.25},
133 {"label":"Alt", "x":2.5, "y":4, "w":1.25},
134 {"x":3.75, "y":4, "w":6.25},
135 {"label":"Alt", "x":10, "y":4, "w":1.25},
136 {"label":"Win", "x":11.25, "y":4, "w":1.25},
137 {"label":"Menu", "x":12.5, "y":4, "w":1.25},
138 {"label":"Ctrl", "x":13.75, "y":4, "w":1.25}
139 ]
140 },
141 "LAYOUT_60_ansi_split_bs_rshift": {
142 "layout": [
143 {"label":"~", "x":0, "y":0},
144 {"label":"!", "x":1, "y":0},
145 {"label":"@", "x":2, "y":0},
146 {"label":"#", "x":3, "y":0},
147 {"label":"$", "x":4, "y":0},
148 {"label":"%", "x":5, "y":0},
149 {"label":"^", "x":6, "y":0},
150 {"label":"&", "x":7, "y":0},
151 {"label":"*", "x":8, "y":0},
152 {"label":"(", "x":9, "y":0},
153 {"label":")", "x":10, "y":0},
154 {"label":"_", "x":11, "y":0},
155 {"label":"+", "x":12, "y":0},
156 {"label":"Backspace", "x":13, "y":0},
157 {"label":"Delete", "x":14, "y":0},
158 {"label":"Tab", "x":0, "y":1, "w":1.5},
159 {"label":"Q", "x":1.5, "y":1},
160 {"label":"W", "x":2.5, "y":1},
161 {"label":"E", "x":3.5, "y":1},
162 {"label":"R", "x":4.5, "y":1},
163 {"label":"T", "x":5.5, "y":1},
164 {"label":"Y", "x":6.5, "y":1},
165 {"label":"U", "x":7.5, "y":1},
166 {"label":"I", "x":8.5, "y":1},
167 {"label":"O", "x":9.5, "y":1},
168 {"label":"P", "x":10.5, "y":1},
169 {"label":"{", "x":11.5, "y":1},
170 {"label":"}", "x":12.5, "y":1},
171 {"label":"|", "x":13.5, "y":1, "w":1.5},
172 {"label":"Caps Lock", "x":0, "y":2, "w":1.75},
173 {"label":"A", "x":1.75, "y":2},
174 {"label":"S", "x":2.75, "y":2},
175 {"label":"D", "x":3.75, "y":2},
176 {"label":"F", "x":4.75, "y":2},
177 {"label":"G", "x":5.75, "y":2},
178 {"label":"H", "x":6.75, "y":2},
179 {"label":"J", "x":7.75, "y":2},
180 {"label":"K", "x":8.75, "y":2},
181 {"label":"L", "x":9.75, "y":2},
182 {"label":":", "x":10.75, "y":2},
183 {"label":"\"", "x":11.75, "y":2},
184 {"label":"Enter", "x":12.75, "y":2, "w":2.25},
185 {"label":"Shift", "x":0, "y":3, "w":2.25},
186 {"label":"Z", "x":2.25, "y":3},
187 {"label":"X", "x":3.25, "y":3},
188 {"label":"C", "x":4.25, "y":3},
189 {"label":"V", "x":5.25, "y":3},
190 {"label":"B", "x":6.25, "y":3},
191 {"label":"N", "x":7.25, "y":3},
192 {"label":"M", "x":8.25, "y":3},
193 {"label":"<", "x":9.25, "y":3},
194 {"label":">", "x":10.25, "y":3},
195 {"label":"?", "x":11.25, "y":3},
196 {"label":"Shift", "x":12.25, "y":3, "w":1.75},
197 {"label":"Print Screen", "x":14, "y":3},
198 {"label":"Ctrl", "x":0, "y":4, "w":1.25},
199 {"label":"Win", "x":1.25, "y":4, "w":1.25},
200 {"label":"Alt", "x":2.5, "y":4, "w":1.25},
201 {"x":3.75, "y":4, "w":6.25},
202 {"label":"Alt", "x":10, "y":4, "w":1.25},
203 {"label":"Win", "x":11.25, "y":4, "w":1.25},
204 {"label":"Menu", "x":12.5, "y":4, "w":1.25},
205 {"label":"Ctrl", "x":13.75, "y":4, "w":1.25}
206 ]
207 },
208 "LAYOUT_60_tsangan_hhkb": {
209 "layout": [
210 {"label":"~", "x":0, "y":0},
211 {"label":"!", "x":1, "y":0},
212 {"label":"@", "x":2, "y":0},
213 {"label":"#", "x":3, "y":0},
214 {"label":"$", "x":4, "y":0},
215 {"label":"%", "x":5, "y":0},
216 {"label":"^", "x":6, "y":0},
217 {"label":"&", "x":7, "y":0},
218 {"label":"*", "x":8, "y":0},
219 {"label":"(", "x":9, "y":0},
220 {"label":")", "x":10, "y":0},
221 {"label":"_", "x":11, "y":0},
222 {"label":"+", "x":12, "y":0},
223 {"label":"Backspace", "x":13, "y":0},
224 {"label":"Delete", "x":14, "y":0},
225 {"label":"Tab", "x":0, "y":1, "w":1.5},
226 {"label":"Q", "x":1.5, "y":1},
227 {"label":"W", "x":2.5, "y":1},
228 {"label":"E", "x":3.5, "y":1},
229 {"label":"R", "x":4.5, "y":1},
230 {"label":"T", "x":5.5, "y":1},
231 {"label":"Y", "x":6.5, "y":1},
232 {"label":"U", "x":7.5, "y":1},
233 {"label":"I", "x":8.5, "y":1},
234 {"label":"O", "x":9.5, "y":1},
235 {"label":"P", "x":10.5, "y":1},
236 {"label":"{", "x":11.5, "y":1},
237 {"label":"}", "x":12.5, "y":1},
238 {"label":"|", "x":13.5, "y":1, "w":1.5},
239 {"label":"Caps Lock", "x":0, "y":2, "w":1.75},
240 {"label":"A", "x":1.75, "y":2},
241 {"label":"S", "x":2.75, "y":2},
242 {"label":"D", "x":3.75, "y":2},
243 {"label":"F", "x":4.75, "y":2},
244 {"label":"G", "x":5.75, "y":2},
245 {"label":"H", "x":6.75, "y":2},
246 {"label":"J", "x":7.75, "y":2},
247 {"label":"K", "x":8.75, "y":2},
248 {"label":"L", "x":9.75, "y":2},
249 {"label":":", "x":10.75, "y":2},
250 {"label":"\"", "x":11.75, "y":2},
251 {"label":"Enter", "x":12.75, "y":2, "w":2.25},
252 {"label":"Shift", "x":0, "y":3, "w":2.25},
253 {"label":"Z", "x":2.25, "y":3},
254 {"label":"X", "x":3.25, "y":3},
255 {"label":"C", "x":4.25, "y":3},
256 {"label":"V", "x":5.25, "y":3},
257 {"label":"B", "x":6.25, "y":3},
258 {"label":"N", "x":7.25, "y":3},
259 {"label":"M", "x":8.25, "y":3},
260 {"label":"<", "x":9.25, "y":3},
261 {"label":">", "x":10.25, "y":3},
262 {"label":"?", "x":11.25, "y":3},
263 {"label":"Shift", "x":12.25, "y":3, "w":1.75},
264 {"label":"Print Screen", "x":14, "y":3},
265 {"label":"Ctrl", "x":0, "y":4, "w":1.5},
266 {"label":"Win", "x":1.5, "y":4},
267 {"label":"Alt", "x":2.5, "y":4, "w":1.5},
268 {"x":4, "y":4, "w":7},
269 {"label":"Alt", "x":11, "y":4, "w":1.5},
270 {"label":"Win", "x":12.5, "y":4},
271 {"label":"Ctrl", "x":13.5, "y":4, "w":1.5}
272 ]
273 }
274 }
275}
diff --git a/keyboards/ai03/polaris/keymaps/default/keymap.c b/keyboards/ai03/polaris/keymaps/default/keymap.c
new file mode 100644
index 000000000..65902ae58
--- /dev/null
+++ b/keyboards/ai03/polaris/keymaps/default/keymap.c
@@ -0,0 +1,39 @@
1/* Copyright 2019 Ryota Goto
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
18enum layer_names {
19 _BASE,
20 _FN
21};
22
23const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
24 [_BASE] = LAYOUT_all( /* Base */
25 KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_DEL,
26 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS,
27 MO(1), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT,
28 KC_LSFT, KC_BSLS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_DEL,
29 KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_SPC, KC_SPC, KC_RALT, KC_RGUI, KC_APP, KC_RCTL
30 ),
31 [_FN] = LAYOUT_all( /* FN */
32 RESET, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_DEL, KC_BSPC,
33 _______, _______, KC_PGUP, _______, _______, _______, _______, _______, KC_UP, _______, KC_MPRV, KC_MPLY, KC_MNXT, BL_STEP,
34 _______, KC_HOME, KC_PGDN, KC_END, _______, KC_VOLD, KC_VOLU, KC_LEFT, KC_DOWN, KC_RGHT, _______, _______, _______,
35 _______, _______, RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, _______, _______, KC_PSCR, _______,
36 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
37 )
38};
39
diff --git a/keyboards/ai03/polaris/keymaps/default/readme.md b/keyboards/ai03/polaris/keymaps/default/readme.md
new file mode 100644
index 000000000..ec7f3154a
--- /dev/null
+++ b/keyboards/ai03/polaris/keymaps/default/readme.md
@@ -0,0 +1,3 @@
1# The default keymap for Polaris
2
3Fits just about everything on two layers. \ No newline at end of file
diff --git a/keyboards/ai03/polaris/keymaps/default_ansi_tsangan/keymap.c b/keyboards/ai03/polaris/keymaps/default_ansi_tsangan/keymap.c
new file mode 100644
index 000000000..410f9b379
--- /dev/null
+++ b/keyboards/ai03/polaris/keymaps/default_ansi_tsangan/keymap.c
@@ -0,0 +1,38 @@
1/* Copyright 2019 Ryota Goto
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
18enum layer_names {
19 _BASE,
20 _FN
21};
22
23const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
24 [_BASE] = LAYOUT_60_tsangan_hhkb( /* Base */
25 KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_DEL,
26 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS,
27 MO(1), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT,
28 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_DEL,
29 KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RGUI, KC_RCTL
30 ),
31 [_FN] = LAYOUT_60_tsangan_hhkb( /* FN */
32 RESET, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_DEL, KC_BSPC,
33 _______, _______, KC_PGUP, _______, _______, _______, _______, _______, KC_UP, _______, KC_MPRV, KC_MPLY, KC_MNXT, BL_STEP,
34 _______, KC_HOME, KC_PGDN, KC_END, _______, KC_VOLD, KC_VOLU, KC_LEFT, KC_DOWN, KC_RGHT, _______, _______, _______,
35 _______, RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, _______, _______, KC_PSCR, _______,
36 _______, _______, _______, _______, _______, _______, _______
37 )
38};
diff --git a/keyboards/ai03/polaris/keymaps/default_ansi_tsangan/readme.md b/keyboards/ai03/polaris/keymaps/default_ansi_tsangan/readme.md
new file mode 100644
index 000000000..a6a85dd52
--- /dev/null
+++ b/keyboards/ai03/polaris/keymaps/default_ansi_tsangan/readme.md
@@ -0,0 +1,3 @@
1# The default_ansi_tsangan keymap for Polaris
2
3Simplified down to the basic ANSI Tsangan layouts for ease of configuration. \ No newline at end of file
diff --git a/keyboards/ai03/polaris/keymaps/mekberg/config.h b/keyboards/ai03/polaris/keymaps/mekberg/config.h
new file mode 100644
index 000000000..ef8caf870
--- /dev/null
+++ b/keyboards/ai03/polaris/keymaps/mekberg/config.h
@@ -0,0 +1,22 @@
1/*
2Copyright 2019 Ryota Goto
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#pragma once
19
20// Define some configuration for modtap behavior
21// #define TAPPING_TERM 150
22#define PERMISSIVE_HOLD
diff --git a/keyboards/ai03/polaris/keymaps/mekberg/keymap.c b/keyboards/ai03/polaris/keymaps/mekberg/keymap.c
new file mode 100644
index 000000000..fce03adfb
--- /dev/null
+++ b/keyboards/ai03/polaris/keymaps/mekberg/keymap.c
@@ -0,0 +1,97 @@
1/* Copyright 2019 Ryota Goto
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
18enum layer_names {
19 _BASE,
20 _NAV,
21 _FN
22};
23
24#define MY_LOCK C(LCMD(KC_L)) // Mac: Custom lock hotkey in BTT (when Alt/Command have been swapped in macOS)
25
26/*
27KBD6x ANSI physical layout
281u == 8chars
29 ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
30 | | | | | | | | | | | | | | | |
31 |─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────|
32 | 1,5u | | | | | | | | | | | | | 1,5u |
33 |─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────|
34 | 1,75u | | | | | | | | | | | | 1,25u |
35 |─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────|
36 | 2,25u | | | | | | | | | | | 1,75u | |
37 └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
38 | | 1,25u | | 1,25u | |
39 └────────────────────────────────────────────────────────────────────────────────────────────────────┘
40*/
41
42const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
43 [_BASE] = LAYOUT_60_tsangan_hhkb(
44// ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
45// | | | | | | | | | | | | | | | |
46 KC_GESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_NUBS, KC_RBRC,
47// |─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────|
48// | 1,5u | | | | | | | | | | | | | 1,5u |
49 LT(_NAV,KC_TAB), KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_NUHS, KC_BSPC,
50// |─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────|
51// | 1,75u | | | | | | | | | | | | 1,25u |
52 KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT,
53// |─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────|
54// | 1,25u | | | | | | | | | | | 1,75u | |
55 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, MO(_FN),
56// └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
57// | | 1,25u | | 1,25u | |
58 XXXXXXX, KC_LGUI, KC_LALT, KC_SPACE, KC_RALT, KC_RGUI, XXXXXXX
59// └────────────────────────────────────────────────────────────────────────────────────────────────────┘
60 ),
61 [_NAV] = LAYOUT_60_tsangan_hhkb(
62// ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
63// | | | | | | | | | | | | | | | |
64 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_INS, KC_BSPC,
65// |─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────|
66// | 1,5u | | | | | | | | | | | | | 1,5u |
67 _______, _______, _______, _______, _______, _______, KC_END, KC_PGDN, KC_UP, KC_PGUP, KC_HOME, _______, _______, KC_DEL,
68// |─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────|
69// | 1,75u | | | | | | | | | | | | 1,25u |
70 _______, _______, _______, _______, _______, _______, _______, KC_LEFT, KC_DOWN, KC_RGHT, _______, _______, _______,
71// |─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────|
72// | 1,25u | | | | | | | | | | | 1,75u | |
73 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
74// └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
75// | | 1,25u | | 1,25u | |
76 XXXXXXX, _______, _______, _______, _______, _______, XXXXXXX
77// └────────────────────────────────────────────────────────────────────────────────────────────────────┘
78 ),
79 [_FN] = LAYOUT_60_tsangan_hhkb(
80// ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
81// | | | | | | | | | | | | | | | |
82 RESET, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______,
83// |─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────|
84// | 1,5u | | | | | | | | | | | | | 1,5u |
85 _______, _______, _______, _______, RGB_TOG, RGB_HUI, RGB_SAI, RGB_VAI, _______, _______, _______, _______, _______, _______,
86// |─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────|
87// | 1,75u | | | | | | | | | | | | 1,25u |
88 KC_RCTL, KC_VOLD, KC_VOLU, KC_MUTE, RGB_MOD, RGB_HUD, RGB_SAD, RGB_VAD, _______, _______, _______, _______, MY_LOCK,
89// |─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────|
90// | 1,25u | | | | | | | | | | | 1,75u | |
91 _______, BL_TOGG, BL_INC, BL_DEC, BL_STEP, _______, _______, _______, KC_MRWD, KC_MFFD, _______, _______, _______,
92// └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
93// | | 1,25u | | 1,25u | |
94 XXXXXXX, _______, _______, KC_MPLY, _______, _______, XXXXXXX
95// └────────────────────────────────────────────────────────────────────────────────────────────────────┘
96 ),
97};
diff --git a/keyboards/ai03/polaris/keymaps/mekberg/readme.md b/keyboards/ai03/polaris/keymaps/mekberg/readme.md
new file mode 100644
index 000000000..b9ae9642f
--- /dev/null
+++ b/keyboards/ai03/polaris/keymaps/mekberg/readme.md
@@ -0,0 +1,14 @@
1# General Information
2
3This is more or less a HHKB base layout, but with completely different Fn layers. I don't use most of the HHKB secondary key positions because, honestly, they make no sense to me at all.
4
5Fn key layer is focused mostly on keyboard firmware features (like RGB) as well as some of the necessary alternate functions. It also hold media controls, F-keys and Reset.
6
7Left Tab-Hold layer is focused on nav cluster functionality, and turns Backspace into Delete (and moves Backspace up into the top right 1u position).
8
9
10# Build instructions
11
12To simply build the firmware file: `make clean && make ai03/polaris:mekberg`
13
14To build and immediately flash: `make clean && make ai03/polaris:mekberg:flash`
diff --git a/keyboards/ai03/polaris/keymaps/mekberg/rules.mk b/keyboards/ai03/polaris/keymaps/mekberg/rules.mk
new file mode 100644
index 000000000..e47bb9e6d
--- /dev/null
+++ b/keyboards/ai03/polaris/keymaps/mekberg/rules.mk
@@ -0,0 +1,2 @@
1BACKLIGHT_ENABLE = no # Disable keyboard backlight functionality
2RGBLIGHT_ENABLE = no # Disable keyboard RGB underglow
diff --git a/keyboards/ai03/polaris/keymaps/testing/keymap.c b/keyboards/ai03/polaris/keymaps/testing/keymap.c
new file mode 100644
index 000000000..c81922510
--- /dev/null
+++ b/keyboards/ai03/polaris/keymaps/testing/keymap.c
@@ -0,0 +1,39 @@
1/* Copyright 2019 Ryota Goto
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
18enum layer_names {
19 _BASE,
20 _FN
21};
22
23const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
24 [_BASE] = LAYOUT_all( /* Base */
25 BL_TOGG, BL_STEP, KC_NO, KC_NO, KC_NO, RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, KC_BSPC, KC_DEL,
26 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS,
27 MO(1), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT,
28 KC_LSFT, KC_BSLS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_DEL,
29 KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_SPC, KC_SPC, KC_RALT, KC_RGUI, KC_APP, KC_RCTL
30 ),
31 [_FN] = LAYOUT_all( /* FN */
32 RESET, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_DEL, KC_BSPC,
33 _______, _______, KC_PGUP, _______, _______, _______, _______, _______, KC_UP, _______, KC_MPRV, KC_MPLY, KC_MNXT, BL_STEP,
34 _______, KC_HOME, KC_PGDN, KC_END, _______, KC_VOLD, KC_VOLU, KC_LEFT, KC_DOWN, KC_RGHT, _______, _______, _______,
35 _______, _______, RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, _______, _______, KC_PSCR, _______,
36 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
37 )
38};
39
diff --git a/keyboards/ai03/polaris/keymaps/testing/readme.md b/keyboards/ai03/polaris/keymaps/testing/readme.md
new file mode 100644
index 000000000..ceefe30e8
--- /dev/null
+++ b/keyboards/ai03/polaris/keymaps/testing/readme.md
@@ -0,0 +1,16 @@
1# The PCB testing keymap for Polaris
2
3LED control keys are placed on the numrow.
4Mainly for factory testing use only.
5
6ESC = Backlight Toggle
71 = Backlight Step
8
95 = RGB Toggle
106 = RGB Mode Cycle
117 = RGB Hue Increase
128 = RGB Hue Decrease
139 = RGB Saturation Increase
140 = RGB Saturation Decrease
15MINS = RGB Value Increase
16EQL = RGB Value Decrease
diff --git a/keyboards/ai03/polaris/keymaps/via/keymap.c b/keyboards/ai03/polaris/keymaps/via/keymap.c
new file mode 100644
index 000000000..67c5cd37e
--- /dev/null
+++ b/keyboards/ai03/polaris/keymaps/via/keymap.c
@@ -0,0 +1,55 @@
1/* Copyright 2019 Ryota Goto
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
18enum layer_names {
19 _BASE,
20 _FN,
21 _EXTRA_ONE,
22 _EXTRA_TWO
23};
24
25const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
26 [_BASE] = LAYOUT_all( /* Base */
27 KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_DEL,
28 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS,
29 MO(1), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT,
30 KC_LSFT, KC_BSLS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_DEL,
31 KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_SPC, KC_SPC, KC_RALT, KC_RALT, KC_RGUI, KC_RCTL
32 ),
33 [_FN] = LAYOUT_all( /* FN */
34 _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_DEL, KC_BSPC,
35 _______, _______, _______, KC_PGUP, _______, _______, _______, _______, KC_UP, _______, _______, _______, _______, BL_STEP,
36 _______, _______, KC_HOME, KC_PGDN, KC_END, _______, _______, KC_LEFT, KC_DOWN, KC_RGHT, _______, _______, _______,
37 _______, _______, KC_VOLD, KC_MUTE, KC_VOLU, _______, _______, KC_MPRV, KC_MPLY, KC_MNXT, _______, _______, KC_PSCR, _______,
38 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
39 ),
40 [_EXTRA_ONE] = LAYOUT_all( /* Layer 3 */
41 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
42 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
43 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
44 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
45 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
46 ),
47 [_EXTRA_TWO] = LAYOUT_all( /* Layer 3 */
48 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
49 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
50 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
51 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
52 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
53 )
54};
55
diff --git a/keyboards/ai03/polaris/keymaps/via/readme.md b/keyboards/ai03/polaris/keymaps/via/readme.md
new file mode 100644
index 000000000..6e4d2c744
--- /dev/null
+++ b/keyboards/ai03/polaris/keymaps/via/readme.md
@@ -0,0 +1,3 @@
1# The via keymap for Polaris
2
3For via configurator use \ No newline at end of file
diff --git a/keyboards/ai03/polaris/keymaps/via/rules.mk b/keyboards/ai03/polaris/keymaps/via/rules.mk
new file mode 100644
index 000000000..036bd6d1c
--- /dev/null
+++ b/keyboards/ai03/polaris/keymaps/via/rules.mk
@@ -0,0 +1 @@
VIA_ENABLE = yes \ No newline at end of file
diff --git a/keyboards/ai03/polaris/polaris.c b/keyboards/ai03/polaris/polaris.c
new file mode 100644
index 000000000..256dcb930
--- /dev/null
+++ b/keyboards/ai03/polaris/polaris.c
@@ -0,0 +1,16 @@
1/* Copyright 2019 Ryota Goto
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 "polaris.h"
diff --git a/keyboards/ai03/polaris/polaris.h b/keyboards/ai03/polaris/polaris.h
new file mode 100644
index 000000000..8e541b2cf
--- /dev/null
+++ b/keyboards/ai03/polaris/polaris.h
@@ -0,0 +1,86 @@
1/* Copyright 2019 Ryota Goto
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_all( \
29 K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K212, \
30 K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, \
31 K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K213, \
32 K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313, \
33 K400, K401, K402, K404, K406, K408, K410, K411, K412, K413 \
34) \
35{ \
36 { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013 }, \
37 { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113 }, \
38 { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213 }, \
39 { K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313 }, \
40 { K400, K401, K402, KC_NO, K404, KC_NO, K406, KC_NO, K408, KC_NO, K410, K411, K412, K413 } \
41}
42
43#define LAYOUT_60_ansi( \
44 K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, \
45 K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, \
46 K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K213, \
47 K300, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, \
48 K400, K401, K402, K406, K410, K411, K412, K413 \
49) \
50{ \
51 { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013 }, \
52 { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113 }, \
53 { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, KC_NO, K213 }, \
54 { K300, KC_NO, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, KC_NO}, \
55 { K400, K401, K402, KC_NO, KC_NO, KC_NO, K406, KC_NO, KC_NO, KC_NO, K410, K411, K412, K413 } \
56}
57
58#define LAYOUT_60_ansi_split_bs_rshift( \
59 K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K212, \
60 K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, \
61 K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K213, \
62 K300, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313, \
63 K400, K401, K402, K406, K410, K411, K412, K413 \
64) \
65{ \
66 { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013 }, \
67 { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113 }, \
68 { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213 }, \
69 { K300, KC_NO, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313 }, \
70 { K400, K401, K402, KC_NO, KC_NO, KC_NO, K406, KC_NO, KC_NO, KC_NO, K410, K411, K412, K413 } \
71}
72
73#define LAYOUT_60_tsangan_hhkb( \
74 K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K212, \
75 K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, \
76 K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K213, \
77 K300, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313, \
78 K400, K401, K402, K406, K411, K412, K413 \
79) \
80{ \
81 { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013 }, \
82 { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113 }, \
83 { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213 }, \
84 { K300, KC_NO, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313 }, \
85 { K400, K401, K402, KC_NO, KC_NO, KC_NO, K406, KC_NO, KC_NO, KC_NO, KC_NO, K411, K412, K413 } \
86}
diff --git a/keyboards/ai03/polaris/readme.md b/keyboards/ai03/polaris/readme.md
new file mode 100644
index 000000000..c9c8e7e22
--- /dev/null
+++ b/keyboards/ai03/polaris/readme.md
@@ -0,0 +1,15 @@
1# Polaris
2
3![Polaris](https://i.imgur.com/bENjPiKh.jpg)
4
5A basic 60% keyboard
6
7* Keyboard Maintainer: [ai03](https://github.com/ai03-2725)
8* Hardware Supported: Polaris PCB/case
9* Hardware Availability: Will be posted [here](https://kb.ai03.me/projects/polaris.html)
10
11Make example for this keyboard (after setting up your build environment):
12
13 make ai03/polaris:default
14
15See 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/polaris/rules.mk b/keyboards/ai03/polaris/rules.mk
new file mode 100644
index 000000000..235f02969
--- /dev/null
+++ b/keyboards/ai03/polaris/rules.mk
@@ -0,0 +1,20 @@
1# MCU name
2MCU = atmega32u4
3
4# Bootloader selection
5BOOTLOADER = atmel-dfu
6
7# Build Options
8# change yes to no to disable
9#
10BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite
11MOUSEKEY_ENABLE = yes # Mouse keys
12EXTRAKEY_ENABLE = yes # Audio control and System control
13CONSOLE_ENABLE = no # Console for debug
14COMMAND_ENABLE = yes # Commands for debug and configuration
15NKRO_ENABLE = yes # Enable N-Key Rollover
16BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
17RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
18AUDIO_ENABLE = no # Audio output
19
20LAYOUTS = 60_ansi 60_ansi_split_bs_rshift 60_tsangan_hhkb