aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUy Bui <uybv.cntt@gmail.com>2021-09-10 02:02:45 +0900
committerGitHub <noreply@github.com>2021-09-09 10:02:45 -0700
commit22499636871ae8f0b8f2da90f801f9290fb1d186 (patch)
treec37c4947b734ed476120fe272f1017ce3a9af390
parentd6dd2e0d516a67bdc9bde2b6d1680a00c48675e4 (diff)
downloadqmk_firmware-22499636871ae8f0b8f2da90f801f9290fb1d186.tar.gz
qmk_firmware-22499636871ae8f0b8f2da90f801f9290fb1d186.zip
[Keyboard] Add custom pcb for Polaris (#14347)
* [Keyboard] pcb for Polaris * [Keyboard] pcb for Polaris: update layout * Update keyboards/wekey/polaris/info.json Co-authored-by: Ryan <fauxpark@gmail.com> Co-authored-by: Ryan <fauxpark@gmail.com>
-rw-r--r--keyboards/wekey/polaris/config.h152
-rw-r--r--keyboards/wekey/polaris/info.json275
-rw-r--r--keyboards/wekey/polaris/keymaps/default/keymap.c39
-rw-r--r--keyboards/wekey/polaris/keymaps/default/readme.md3
-rw-r--r--keyboards/wekey/polaris/keymaps/via/keymap.c55
-rw-r--r--keyboards/wekey/polaris/keymaps/via/readme.md3
-rw-r--r--keyboards/wekey/polaris/keymaps/via/rules.mk1
-rw-r--r--keyboards/wekey/polaris/polaris.c17
-rw-r--r--keyboards/wekey/polaris/polaris.h109
-rw-r--r--keyboards/wekey/polaris/readme.md27
-rw-r--r--keyboards/wekey/polaris/rules.mk25
11 files changed, 706 insertions, 0 deletions
diff --git a/keyboards/wekey/polaris/config.h b/keyboards/wekey/polaris/config.h
new file mode 100644
index 000000000..621d30df5
--- /dev/null
+++ b/keyboards/wekey/polaris/config.h
@@ -0,0 +1,152 @@
1/*
2Copyright 2021 @wekey
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 0x5559
24#define PRODUCT_ID 0x0002
25#define DEVICE_VER 0x0001
26#define MANUFACTURER @wekey
27#define PRODUCT Polaris
28
29/* key matrix size */
30#define MATRIX_ROWS 10
31#define MATRIX_COLS 8
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 { F4, F1, F0, B7, F7, D5, C6, C7, F5, F6 }
44#define MATRIX_COL_PINS { E6, B4, B5, B6, D0, D1, D2, D3 }
45#define UNUSED_PINS
46
47/* COL2ROW, ROW2COL */
48#define DIODE_DIRECTION COL2ROW
49
50/*
51 * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN.
52 */
53// #define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6
54
55//#define LED_NUM_LOCK_PIN B0
56//#define LED_CAPS_LOCK_PIN B1
57//#define LED_SCROLL_LOCK_PIN B2
58//#define LED_COMPOSE_PIN B3
59//#define LED_KANA_PIN B4
60
61//#define BACKLIGHT_PIN B7
62//#define BACKLIGHT_LEVELS 3
63//#define BACKLIGHT_BREATHING
64
65//#define RGB_DI_PIN E2
66//#ifdef RGB_DI_PIN
67//# define RGBLED_NUM 16
68//# define RGBLIGHT_HUE_STEP 8
69//# define RGBLIGHT_SAT_STEP 8
70//# define RGBLIGHT_VAL_STEP 8
71//# define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
72//# define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
73/*== all animations enable ==*/
74//# define RGBLIGHT_ANIMATIONS
75/*== or choose animations ==*/
76//# define RGBLIGHT_EFFECT_BREATHING
77//# define RGBLIGHT_EFFECT_RAINBOW_MOOD
78//# define RGBLIGHT_EFFECT_RAINBOW_SWIRL
79//# define RGBLIGHT_EFFECT_SNAKE
80//# define RGBLIGHT_EFFECT_KNIGHT
81//# define RGBLIGHT_EFFECT_CHRISTMAS
82//# define RGBLIGHT_EFFECT_STATIC_GRADIENT
83//# define RGBLIGHT_EFFECT_RGB_TEST
84//# define RGBLIGHT_EFFECT_ALTERNATING
85/*== customize breathing effect ==*/
86/*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/
87//# define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64
88/*==== use exp() and sin() ====*/
89//# define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7
90//# define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255
91//#endif
92
93/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
94#define DEBOUNCE 5
95
96/* define if matrix has ghost (lacks anti-ghosting diodes) */
97//#define MATRIX_HAS_GHOST
98
99/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
100#define LOCKING_SUPPORT_ENABLE
101/* Locking resynchronize hack */
102#define LOCKING_RESYNC_ENABLE
103
104/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
105 * This is useful for the Windows task manager shortcut (ctrl+shift+esc).
106 */
107//#define GRAVE_ESC_CTRL_OVERRIDE
108
109/*
110 * Force NKRO
111 *
112 * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
113 * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
114 * makefile for this to work.)
115 *
116 * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
117 * until the next keyboard reset.
118 *
119 * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
120 * fully operational during normal computer usage.
121 *
122 * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
123 * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
124 * bootmagic, NKRO mode will always be enabled until it is toggled again during a
125 * power-up.
126 *
127 */
128//#define FORCE_NKRO
129
130/*
131 * Feature disable options
132 * These options are also useful to firmware size reduction.
133 */
134
135/* disable debug print */
136//#define NO_DEBUG
137
138/* disable print */
139//#define NO_PRINT
140
141/* disable action features */
142//#define NO_ACTION_LAYER
143//#define NO_ACTION_TAPPING
144//#define NO_ACTION_ONESHOT
145
146/* disable these deprecated features by default */
147#define NO_ACTION_MACRO
148#define NO_ACTION_FUNCTION
149
150/* Bootmagic Lite key configuration */
151//#define BOOTMAGIC_LITE_ROW 0
152//#define BOOTMAGIC_LITE_COLUMN 0
diff --git a/keyboards/wekey/polaris/info.json b/keyboards/wekey/polaris/info.json
new file mode 100644
index 000000000..01626101c
--- /dev/null
+++ b/keyboards/wekey/polaris/info.json
@@ -0,0 +1,275 @@
1{
2 "keyboard_name": "Polaris",
3 "url": "",
4 "maintainer": "@wekey.dev",
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/wekey/polaris/keymaps/default/keymap.c b/keyboards/wekey/polaris/keymaps/default/keymap.c
new file mode 100644
index 000000000..65902ae58
--- /dev/null
+++ b/keyboards/wekey/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/wekey/polaris/keymaps/default/readme.md b/keyboards/wekey/polaris/keymaps/default/readme.md
new file mode 100644
index 000000000..ec7f3154a
--- /dev/null
+++ b/keyboards/wekey/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/wekey/polaris/keymaps/via/keymap.c b/keyboards/wekey/polaris/keymaps/via/keymap.c
new file mode 100644
index 000000000..67c5cd37e
--- /dev/null
+++ b/keyboards/wekey/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/wekey/polaris/keymaps/via/readme.md b/keyboards/wekey/polaris/keymaps/via/readme.md
new file mode 100644
index 000000000..6e4d2c744
--- /dev/null
+++ b/keyboards/wekey/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/wekey/polaris/keymaps/via/rules.mk b/keyboards/wekey/polaris/keymaps/via/rules.mk
new file mode 100644
index 000000000..036bd6d1c
--- /dev/null
+++ b/keyboards/wekey/polaris/keymaps/via/rules.mk
@@ -0,0 +1 @@
VIA_ENABLE = yes \ No newline at end of file
diff --git a/keyboards/wekey/polaris/polaris.c b/keyboards/wekey/polaris/polaris.c
new file mode 100644
index 000000000..413c56460
--- /dev/null
+++ b/keyboards/wekey/polaris/polaris.c
@@ -0,0 +1,17 @@
1/* Copyright 2021 @wekey
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
17#include "polaris.h"
diff --git a/keyboards/wekey/polaris/polaris.h b/keyboards/wekey/polaris/polaris.h
new file mode 100644
index 000000000..88968607f
--- /dev/null
+++ b/keyboards/wekey/polaris/polaris.h
@@ -0,0 +1,109 @@
1/* Copyright 2021 @wekey
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
17#pragma once
18
19#include "quantum.h"
20
21#define ___ KC_NO
22
23/* This is a shortcut to help you visually see your layout.
24 *
25 * The first section contains all of the arguments representing the physical
26 * layout of the board and position of the keys.
27 *
28 * The second converts the arguments into a two-dimensional array which
29 * represents the switch matrix.
30 */
31#define LAYOUT_all( \
32 K00, K10, K01, K11, K02, K12, K03, K13, K04, K14, K05, K15, K06, K16, K07, \
33 K20, K21, K31, K22, K32, K23, K33, K24, K34, K25, K35, K26, K36, K27, \
34 K40, K41, K51, K42, K52, K43, K53, K44, K54, K45, K55, K46, K56, \
35 K60, K70, K61, K71, K62, K72, K63, K73, K64, K74, K65, K75, K66, K76, \
36 K80, K90, K81, K82, K83, K84, K85, K95, K86, K96 \
37) \
38{ \
39 { K00, K01, K02, K03, K04, K05, K06, K07 }, \
40 { K10, K11, K12, K13, K14, K15, K16, ___ }, \
41 { K20, K21, K22, K23, K24, K25, K26, K27 }, \
42 { ___, K31, K32, K33, K34, K35, K36, ___ }, \
43 { K40, K41, K42, K43, K44, K45, K46, ___ }, \
44 { ___, K51, K52, K53, K54, K55, K56, ___ }, \
45 { K60, K61, K62, K63, K64, K65, K66, ___ }, \
46 { K70, K71, K72, K73, K74, K75, K76, ___ }, \
47 { K80, K81, K82, K83, K84, K85, K86, ___ }, \
48 { K90, ___, ___, ___, ___, K95, K96, ___ } \
49}
50
51#define LAYOUT_60_ansi( \
52 K00, K10, K01, K11, K02, K12, K03, K13, K04, K14, K05, K15, K06, K16, \
53 K20, K21, K31, K22, K32, K23, K33, K24, K34, K25, K35, K26, K36, K27, \
54 K40, K41, K51, K42, K52, K43, K53, K44, K54, K45, K55, K46, K56, \
55 K60, K61, K71, K62, K72, K63, K73, K64, K74, K65, K75, K66, \
56 K80, K90, K81, K83, K85, K95, K86, K96 \
57) \
58{ \
59 { K00, K01, K02, K03, K04, K05, K06, ___ }, \
60 { K10, K11, K12, K13, K14, K15, K16, ___ }, \
61 { K20, K21, K22, K23, K24, K25, K26, K27 }, \
62 { ___, K31, K32, K33, K34, K35, K36, ___ }, \
63 { K40, K41, K42, K43, K44, K45, K46, ___ }, \
64 { ___, K51, K52, K53, K54, K55, K56, ___ }, \
65 { K60, K61, K62, K63, K64, K65, K66, ___ }, \
66 { ___, K71, K72, K73, K74, K75, ___, ___ }, \
67 { K80, K81, ___, K83, ___, K85, K86, ___ }, \
68 { K90, ___, ___, ___, ___, K95, K96, ___ } \
69}
70
71#define LAYOUT_60_ansi_split_bs_rshift( \
72 K00, K10, K01, K11, K02, K12, K03, K13, K04, K14, K05, K15, K06, K16, K07, \
73 K20, K21, K31, K22, K32, K23, K33, K24, K34, K25, K35, K26, K36, K27, \
74 K40, K41, K51, K42, K52, K43, K53, K44, K54, K45, K55, K46, K56, \
75 K60, K61, K71, K62, K72, K63, K73, K64, K74, K65, K75, K66, K76, \
76 K80, K90, K81, K83, K85, K95, K86, K96 \
77) \
78{ \
79 { K00, K01, K02, K03, K04, K05, K06, K07 }, \
80 { K10, K11, K12, K13, K14, K15, K16, ___ }, \
81 { K20, K21, K22, K23, K24, K25, K26, K27 }, \
82 { ___, K31, K32, K33, K34, K35, K36, ___ }, \
83 { K40, K41, K42, K43, K44, K45, K46, ___ }, \
84 { ___, K51, K52, K53, K54, K55, K56, ___ }, \
85 { K60, K61, K62, K63, K64, K65, K66, ___ }, \
86 { ___, K71, K72, K73, K74, K75, K76, ___ }, \
87 { K80, K81, ___, K83, ___, K85, K86, ___ }, \
88 { K90, ___, ___, ___, ___, K95, K96, ___ } \
89}
90
91#define LAYOUT_60_tsangan_hhkb( \
92 K00, K10, K01, K11, K02, K12, K03, K13, K04, K14, K05, K15, K06, K16, K07, \
93 K20, K21, K31, K22, K32, K23, K33, K24, K34, K25, K35, K26, K36, K27, \
94 K40, K41, K51, K42, K52, K43, K53, K44, K54, K45, K55, K46, K56, \
95 K60, K61, K71, K62, K72, K63, K73, K64, K74, K65, K75, K66, K76, \
96 K80, K90, K81, K83, K95, K86, K96 \
97) \
98{ \
99 { K00, K01, K02, K03, K04, K05, K06, K07 }, \
100 { K10, K11, K12, K13, K14, K15, K16, ___ }, \
101 { K20, K21, K22, K23, K24, K25, K26, K27 }, \
102 { ___, K31, K32, K33, K34, K35, K36, ___ }, \
103 { K40, K41, K42, K43, K44, K45, K46, ___ }, \
104 { ___, K51, K52, K53, K54, K55, K56, ___ }, \
105 { K60, K61, K62, K63, K64, K65, K66, ___ }, \
106 { ___, K71, K72, K73, K74, K75, K76, ___ }, \
107 { K80, K81, ___, K83, ___, ___, K86, ___ }, \
108 { K90, ___, ___, ___, ___, K95, K96, ___ } \
109}
diff --git a/keyboards/wekey/polaris/readme.md b/keyboards/wekey/polaris/readme.md
new file mode 100644
index 000000000..40fcf65bb
--- /dev/null
+++ b/keyboards/wekey/polaris/readme.md
@@ -0,0 +1,27 @@
1# polaris
2
3![polaris](https://i.imgur.com/bENjPiKh.jpg)
4
5A customizable pcb for Polaris.
6
7* Keyboard Maintainer: [@wekey](https://github.com/wekey-dev)
8* Hardware Supported: Polaris case
9* Hardware Availability: custom pcb group buys
10
11Make example for this keyboard (after setting up your build environment):
12
13 make polaris:default
14
15Flashing example for this keyboard:
16
17 make polaris: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 3 ways:
24
25* **Bootmagic reset**: Hold down the key at (0,0) in the matrix (usually the top left key or Escape) and plug in the keyboard
26* **Physical reset button**: Briefly press the button on the back of the PCB - some may have pads you must short instead
27* **Keycode in layout**: Press the key mapped to `RESET` if it is available
diff --git a/keyboards/wekey/polaris/rules.mk b/keyboards/wekey/polaris/rules.mk
new file mode 100644
index 000000000..a9c4bdbce
--- /dev/null
+++ b/keyboards/wekey/polaris/rules.mk
@@ -0,0 +1,25 @@
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 = no # Commands for debug and configuration
15# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
16SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
17# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
18NKRO_ENABLE = yes # USB Nkey Rollover
19BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
20RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
21BLUETOOTH_ENABLE = no # Enable Bluetooth
22AUDIO_ENABLE = no # Audio output
23
24DEBOUNCE_TYPE = sym_defer_pk
25LAYOUTS = 60_ansi 60_ansi_split_bs_rshift 60_tsangan_hhkb