diff options
| author | Brandon Schlack <brandonschlack@gmail.com> | 2020-03-18 10:45:13 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-18 10:45:13 -0700 |
| commit | 0dff26b5509e91f6b6f5a9eed2762513d69ce567 (patch) | |
| tree | 949119b79a8a5cb39d13ceed941fe2c2db57c65b | |
| parent | 76d8558b1a11e93193dec7d444f4d783ab97f1a5 (diff) | |
| download | qmk_firmware-0dff26b5509e91f6b6f5a9eed2762513d69ce567.tar.gz qmk_firmware-0dff26b5509e91f6b6f5a9eed2762513d69ce567.zip | |
[Keyboard] Add more community layout support to Polaris (#8468)
- Add 60_ansi, 60_ansi_split_bs_rshift layouts
| -rw-r--r-- | keyboards/ai03/polaris/info.json | 142 | ||||
| -rw-r--r-- | keyboards/ai03/polaris/polaris.h | 30 | ||||
| -rw-r--r-- | keyboards/ai03/polaris/rules.mk | 2 |
3 files changed, 168 insertions, 6 deletions
diff --git a/keyboards/ai03/polaris/info.json b/keyboards/ai03/polaris/info.json index 59a24e2e5..13b7e8de4 100644 --- a/keyboards/ai03/polaris/info.json +++ b/keyboards/ai03/polaris/info.json | |||
| @@ -1,9 +1,9 @@ | |||
| 1 | { | 1 | { |
| 2 | "keyboard_name": "Polaris", | 2 | "keyboard_name": "Polaris", |
| 3 | "url": "https://kb.ai03.me/projects/polaris.html", | 3 | "url": "https://kb.ai03.me/projects/polaris.html", |
| 4 | "maintainer": "ai03", | 4 | "maintainer": "ai03", |
| 5 | "width": 15, | 5 | "width": 15, |
| 6 | "height": 5, | 6 | "height": 5, |
| 7 | "layouts": { | 7 | "layouts": { |
| 8 | "LAYOUT_all": { | 8 | "LAYOUT_all": { |
| 9 | "layout": [ | 9 | "layout": [ |
| @@ -75,6 +75,138 @@ | |||
| 75 | {"label":"Ctrl", "x":13.75, "y":4, "w":1.25} | 75 | {"label":"Ctrl", "x":13.75, "y":4, "w":1.25} |
| 76 | ] | 76 | ] |
| 77 | }, | 77 | }, |
| 78 | "LAYOUT_60_ansi": { | ||
| 79 | "layout": [ | ||
| 80 | {"label":"~", "x":0, "y":0}, | ||
| 81 | {"label":"!", "x":1, "y":0}, | ||
| 82 | {"label":"@", "x":2, "y":0}, | ||
| 83 | {"label":"#", "x":3, "y":0}, | ||
| 84 | {"label":"$", "x":4, "y":0}, | ||
| 85 | {"label":"%", "x":5, "y":0}, | ||
| 86 | {"label":"^", "x":6, "y":0}, | ||
| 87 | {"label":"&", "x":7, "y":0}, | ||
| 88 | {"label":"*", "x":8, "y":0}, | ||
| 89 | {"label":"(", "x":9, "y":0}, | ||
| 90 | {"label":")", "x":10, "y":0}, | ||
| 91 | {"label":"_", "x":11, "y":0}, | ||
| 92 | {"label":"+", "x":12, "y":0}, | ||
| 93 | {"label":"Backspace", "x":13, "y":0, "w":2}, | ||
| 94 | {"label":"Tab", "x":0, "y":1, "w":1.5}, | ||
| 95 | {"label":"Q", "x":1.5, "y":1}, | ||
| 96 | {"label":"W", "x":2.5, "y":1}, | ||
| 97 | {"label":"E", "x":3.5, "y":1}, | ||
| 98 | {"label":"R", "x":4.5, "y":1}, | ||
| 99 | {"label":"T", "x":5.5, "y":1}, | ||
| 100 | {"label":"Y", "x":6.5, "y":1}, | ||
| 101 | {"label":"U", "x":7.5, "y":1}, | ||
| 102 | {"label":"I", "x":8.5, "y":1}, | ||
| 103 | {"label":"O", "x":9.5, "y":1}, | ||
| 104 | {"label":"P", "x":10.5, "y":1}, | ||
| 105 | {"label":"{", "x":11.5, "y":1}, | ||
| 106 | {"label":"}", "x":12.5, "y":1}, | ||
| 107 | {"label":"|", "x":13.5, "y":1, "w":1.5}, | ||
| 108 | {"label":"Caps Lock", "x":0, "y":2, "w":1.75}, | ||
| 109 | {"label":"A", "x":1.75, "y":2}, | ||
| 110 | {"label":"S", "x":2.75, "y":2}, | ||
| 111 | {"label":"D", "x":3.75, "y":2}, | ||
| 112 | {"label":"F", "x":4.75, "y":2}, | ||
| 113 | {"label":"G", "x":5.75, "y":2}, | ||
| 114 | {"label":"H", "x":6.75, "y":2}, | ||
| 115 | {"label":"J", "x":7.75, "y":2}, | ||
| 116 | {"label":"K", "x":8.75, "y":2}, | ||
| 117 | {"label":"L", "x":9.75, "y":2}, | ||
| 118 | {"label":":", "x":10.75, "y":2}, | ||
| 119 | {"label":"\"", "x":11.75, "y":2}, | ||
| 120 | {"label":"Enter", "x":12.75, "y":2, "w":2.25}, | ||
| 121 | {"label":"Shift", "x":0, "y":3, "w":2.25}, | ||
| 122 | {"label":"Z", "x":2.25, "y":3}, | ||
| 123 | {"label":"X", "x":3.25, "y":3}, | ||
| 124 | {"label":"C", "x":4.25, "y":3}, | ||
| 125 | {"label":"V", "x":5.25, "y":3}, | ||
| 126 | {"label":"B", "x":6.25, "y":3}, | ||
| 127 | {"label":"N", "x":7.25, "y":3}, | ||
| 128 | {"label":"M", "x":8.25, "y":3}, | ||
| 129 | {"label":"<", "x":9.25, "y":3}, | ||
| 130 | {"label":">", "x":10.25, "y":3}, | ||
| 131 | {"label":"?", "x":11.25, "y":3}, | ||
| 132 | {"label":"Shift", "x":12.25, "y":3, "w":2.75}, | ||
| 133 | {"label":"Ctrl", "x":0, "y":4, "w":1.25}, | ||
| 134 | {"label":"Win", "x":1.25, "y":4, "w":1.25}, | ||
| 135 | {"label":"Alt", "x":2.5, "y":4, "w":1.25}, | ||
| 136 | {"x":3.75, "y":4, "w":6.25}, | ||
| 137 | {"label":"Alt", "x":10, "y":4, "w":1.25}, | ||
| 138 | {"label":"Win", "x":11.25, "y":4, "w":1.25}, | ||
| 139 | {"label":"Menu", "x":12.5, "y":4, "w":1.25}, | ||
| 140 | {"label":"Ctrl", "x":13.75, "y":4, "w":1.25} | ||
| 141 | ] | ||
| 142 | }, | ||
| 143 | "LAYOUT_60_ansi_split_bs_rshift": { | ||
| 144 | "layout": [ | ||
| 145 | {"label":"~", "x":0, "y":0}, | ||
| 146 | {"label":"!", "x":1, "y":0}, | ||
| 147 | {"label":"@", "x":2, "y":0}, | ||
| 148 | {"label":"#", "x":3, "y":0}, | ||
| 149 | {"label":"$", "x":4, "y":0}, | ||
| 150 | {"label":"%", "x":5, "y":0}, | ||
| 151 | {"label":"^", "x":6, "y":0}, | ||
| 152 | {"label":"&", "x":7, "y":0}, | ||
| 153 | {"label":"*", "x":8, "y":0}, | ||
| 154 | {"label":"(", "x":9, "y":0}, | ||
| 155 | {"label":")", "x":10, "y":0}, | ||
| 156 | {"label":"_", "x":11, "y":0}, | ||
| 157 | {"label":"+", "x":12, "y":0}, | ||
| 158 | {"label":"Backspace", "x":13, "y":0}, | ||
| 159 | {"label":"Delete", "x":14, "y":0}, | ||
| 160 | {"label":"Tab", "x":0, "y":1, "w":1.5}, | ||
| 161 | {"label":"Q", "x":1.5, "y":1}, | ||
| 162 | {"label":"W", "x":2.5, "y":1}, | ||
| 163 | {"label":"E", "x":3.5, "y":1}, | ||
| 164 | {"label":"R", "x":4.5, "y":1}, | ||
| 165 | {"label":"T", "x":5.5, "y":1}, | ||
| 166 | {"label":"Y", "x":6.5, "y":1}, | ||
| 167 | {"label":"U", "x":7.5, "y":1}, | ||
| 168 | {"label":"I", "x":8.5, "y":1}, | ||
| 169 | {"label":"O", "x":9.5, "y":1}, | ||
| 170 | {"label":"P", "x":10.5, "y":1}, | ||
| 171 | {"label":"{", "x":11.5, "y":1}, | ||
| 172 | {"label":"}", "x":12.5, "y":1}, | ||
| 173 | {"label":"|", "x":13.5, "y":1, "w":1.5}, | ||
| 174 | {"label":"Caps Lock", "x":0, "y":2, "w":1.75}, | ||
| 175 | {"label":"A", "x":1.75, "y":2}, | ||
| 176 | {"label":"S", "x":2.75, "y":2}, | ||
| 177 | {"label":"D", "x":3.75, "y":2}, | ||
| 178 | {"label":"F", "x":4.75, "y":2}, | ||
| 179 | {"label":"G", "x":5.75, "y":2}, | ||
| 180 | {"label":"H", "x":6.75, "y":2}, | ||
| 181 | {"label":"J", "x":7.75, "y":2}, | ||
| 182 | {"label":"K", "x":8.75, "y":2}, | ||
| 183 | {"label":"L", "x":9.75, "y":2}, | ||
| 184 | {"label":":", "x":10.75, "y":2}, | ||
| 185 | {"label":"\"", "x":11.75, "y":2}, | ||
| 186 | {"label":"Enter", "x":12.75, "y":2, "w":2.25}, | ||
| 187 | {"label":"Shift", "x":0, "y":3, "w":2.25}, | ||
| 188 | {"label":"Z", "x":2.25, "y":3}, | ||
| 189 | {"label":"X", "x":3.25, "y":3}, | ||
| 190 | {"label":"C", "x":4.25, "y":3}, | ||
| 191 | {"label":"V", "x":5.25, "y":3}, | ||
| 192 | {"label":"B", "x":6.25, "y":3}, | ||
| 193 | {"label":"N", "x":7.25, "y":3}, | ||
| 194 | {"label":"M", "x":8.25, "y":3}, | ||
| 195 | {"label":"<", "x":9.25, "y":3}, | ||
| 196 | {"label":">", "x":10.25, "y":3}, | ||
| 197 | {"label":"?", "x":11.25, "y":3}, | ||
| 198 | {"label":"Shift", "x":12.25, "y":3, "w":1.75}, | ||
| 199 | {"label":"Print Screen", "x":14, "y":3}, | ||
| 200 | {"label":"Ctrl", "x":0, "y":4, "w":1.25}, | ||
| 201 | {"label":"Win", "x":1.25, "y":4, "w":1.25}, | ||
| 202 | {"label":"Alt", "x":2.5, "y":4, "w":1.25}, | ||
| 203 | {"x":3.75, "y":4, "w":6.25}, | ||
| 204 | {"label":"Alt", "x":10, "y":4, "w":1.25}, | ||
| 205 | {"label":"Win", "x":11.25, "y":4, "w":1.25}, | ||
| 206 | {"label":"Menu", "x":12.5, "y":4, "w":1.25}, | ||
| 207 | {"label":"Ctrl", "x":13.75, "y":4, "w":1.25} | ||
| 208 | ] | ||
| 209 | }, | ||
| 78 | "LAYOUT_60_tsangan_hhkb": { | 210 | "LAYOUT_60_tsangan_hhkb": { |
| 79 | "layout": [ | 211 | "layout": [ |
| 80 | {"label":"~", "x":0, "y":0}, | 212 | {"label":"~", "x":0, "y":0}, |
diff --git a/keyboards/ai03/polaris/polaris.h b/keyboards/ai03/polaris/polaris.h index 2bd65806f..8e541b2cf 100644 --- a/keyboards/ai03/polaris/polaris.h +++ b/keyboards/ai03/polaris/polaris.h | |||
| @@ -40,6 +40,36 @@ | |||
| 40 | { K400, K401, K402, KC_NO, K404, KC_NO, K406, KC_NO, K408, KC_NO, K410, K411, K412, K413 } \ | 40 | { K400, K401, K402, KC_NO, K404, KC_NO, K406, KC_NO, K408, KC_NO, K410, K411, K412, K413 } \ |
| 41 | } | 41 | } |
| 42 | 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 | |||
| 43 | #define LAYOUT_60_tsangan_hhkb( \ | 73 | #define LAYOUT_60_tsangan_hhkb( \ |
| 44 | K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K212, \ | 74 | K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K212, \ |
| 45 | K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, \ | 75 | K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, \ |
diff --git a/keyboards/ai03/polaris/rules.mk b/keyboards/ai03/polaris/rules.mk index 150199cbe..8f94582a8 100644 --- a/keyboards/ai03/polaris/rules.mk +++ b/keyboards/ai03/polaris/rules.mk | |||
| @@ -31,4 +31,4 @@ AUDIO_ENABLE = no # Audio output on port C6 | |||
| 31 | FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches | 31 | FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches |
| 32 | HD44780_ENABLE = no # Enable support for HD44780 based LCDs | 32 | HD44780_ENABLE = no # Enable support for HD44780 based LCDs |
| 33 | 33 | ||
| 34 | LAYOUTS = 60_tsangan_hhkb | 34 | LAYOUTS = 60_ansi 60_ansi_split_bs_rshift 60_tsangan_hhkb |
