diff options
| author | ai03 <admin@ai03.com> | 2021-10-03 00:06:37 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-02 08:06:37 -0700 |
| commit | 875bbd31dc46d14a3a87d633081d1ba9c1225923 (patch) | |
| tree | 7c0b1abac5f7ce12774e5e8d67e5c5424fc8a647 | |
| parent | 0eaefb2a6c35fdf15b067181529eacb7335fd562 (diff) | |
| download | qmk_firmware-875bbd31dc46d14a3a87d633081d1ba9c1225923.tar.gz qmk_firmware-875bbd31dc46d14a3a87d633081d1ba9c1225923.zip | |
[Keyboard] Add JP60 keyboard (#14219)
Co-authored-by: Drashna Jaelre <drashna@live.com>
Co-authored-by: Ryan <fauxpark@gmail.com>
| -rw-r--r-- | keyboards/ai03/jp60/config.h | 109 | ||||
| -rw-r--r-- | keyboards/ai03/jp60/info.json | 342 | ||||
| -rw-r--r-- | keyboards/ai03/jp60/jp60.c | 17 | ||||
| -rw-r--r-- | keyboards/ai03/jp60/jp60.h | 42 | ||||
| -rw-r--r-- | keyboards/ai03/jp60/keymaps/default/config.h | 21 | ||||
| -rw-r--r-- | keyboards/ai03/jp60/keymaps/default/keymap.c | 40 | ||||
| -rw-r--r-- | keyboards/ai03/jp60/keymaps/default/readme.md | 3 | ||||
| -rw-r--r-- | keyboards/ai03/jp60/keymaps/default/rules.mk | 1 | ||||
| -rw-r--r-- | keyboards/ai03/jp60/keymaps/via/config.h | 21 | ||||
| -rw-r--r-- | keyboards/ai03/jp60/keymaps/via/keymap.c | 57 | ||||
| -rw-r--r-- | keyboards/ai03/jp60/keymaps/via/readme.md | 3 | ||||
| -rw-r--r-- | keyboards/ai03/jp60/keymaps/via/rules.mk | 2 | ||||
| -rw-r--r-- | keyboards/ai03/jp60/readme.md | 27 | ||||
| -rw-r--r-- | keyboards/ai03/jp60/rules.mk | 22 |
14 files changed, 707 insertions, 0 deletions
diff --git a/keyboards/ai03/jp60/config.h b/keyboards/ai03/jp60/config.h new file mode 100644 index 000000000..a06d75c8e --- /dev/null +++ b/keyboards/ai03/jp60/config.h | |||
| @@ -0,0 +1,109 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2021 ai03 | ||
| 3 | |||
| 4 | This program is free software: you can redistribute it and/or modify | ||
| 5 | it under the terms of the GNU General Public License as published by | ||
| 6 | the Free Software Foundation, either version 2 of the License, or | ||
| 7 | (at your option) any later version. | ||
| 8 | |||
| 9 | This program is distributed in the hope that it will be useful, | ||
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | GNU General Public License for more details. | ||
| 13 | |||
| 14 | You should have received a copy of the GNU General Public License | ||
| 15 | along 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 0x0024 | ||
| 25 | #define DEVICE_VER 0x0001 | ||
| 26 | #define MANUFACTURER ai03 Design Studio | ||
| 27 | #define PRODUCT JP60 | ||
| 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 { B6, B5, B4, D7, E6 } | ||
| 44 | #define MATRIX_COL_PINS { D2, D1, D3, D5, D4, D6, C6, F0, F1, F4, F5, F6, F7, C7 } | ||
| 45 | #define UNUSED_PINS | ||
| 46 | |||
| 47 | /* COL2ROW, ROW2COL */ | ||
| 48 | #define DIODE_DIRECTION COL2ROW | ||
| 49 | |||
| 50 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 51 | #define DEBOUNCE 5 | ||
| 52 | |||
| 53 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | ||
| 54 | //#define MATRIX_HAS_GHOST | ||
| 55 | |||
| 56 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 57 | #define LOCKING_SUPPORT_ENABLE | ||
| 58 | /* Locking resynchronize hack */ | ||
| 59 | #define LOCKING_RESYNC_ENABLE | ||
| 60 | |||
| 61 | /* If defined, GRAVE_ESC will always act as ESC when CTRL is held. | ||
| 62 | * This is useful for the Windows task manager shortcut (ctrl+shift+esc). | ||
| 63 | */ | ||
| 64 | //#define GRAVE_ESC_CTRL_OVERRIDE | ||
| 65 | |||
| 66 | /* | ||
| 67 | * Force NKRO | ||
| 68 | * | ||
| 69 | * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved | ||
| 70 | * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the | ||
| 71 | * makefile for this to work.) | ||
| 72 | * | ||
| 73 | * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N) | ||
| 74 | * until the next keyboard reset. | ||
| 75 | * | ||
| 76 | * NKRO may prevent your keystrokes from being detected in the BIOS, but it is | ||
| 77 | * fully operational during normal computer usage. | ||
| 78 | * | ||
| 79 | * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N) | ||
| 80 | * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by | ||
| 81 | * bootmagic, NKRO mode will always be enabled until it is toggled again during a | ||
| 82 | * power-up. | ||
| 83 | * | ||
| 84 | */ | ||
| 85 | //#define FORCE_NKRO | ||
| 86 | |||
| 87 | /* | ||
| 88 | * Feature disable options | ||
| 89 | * These options are also useful to firmware size reduction. | ||
| 90 | */ | ||
| 91 | |||
| 92 | /* disable debug print */ | ||
| 93 | //#define NO_DEBUG | ||
| 94 | |||
| 95 | /* disable print */ | ||
| 96 | //#define NO_PRINT | ||
| 97 | |||
| 98 | /* disable action features */ | ||
| 99 | //#define NO_ACTION_LAYER | ||
| 100 | //#define NO_ACTION_TAPPING | ||
| 101 | //#define NO_ACTION_ONESHOT | ||
| 102 | |||
| 103 | /* disable these deprecated features by default */ | ||
| 104 | #define NO_ACTION_MACRO | ||
| 105 | #define NO_ACTION_FUNCTION | ||
| 106 | |||
| 107 | /* Bootmagic Lite key configuration */ | ||
| 108 | //#define BOOTMAGIC_LITE_ROW 0 | ||
| 109 | //#define BOOTMAGIC_LITE_COLUMN 0 | ||
diff --git a/keyboards/ai03/jp60/info.json b/keyboards/ai03/jp60/info.json new file mode 100644 index 000000000..d5453de73 --- /dev/null +++ b/keyboards/ai03/jp60/info.json | |||
| @@ -0,0 +1,342 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "JP60", | ||
| 3 | "url": "https://github.com/ai03-2725/JP60", | ||
| 4 | "maintainer": "ai03", | ||
| 5 | "layouts": { | ||
| 6 | "LAYOUT": { | ||
| 7 | "layout": [ | ||
| 8 | { | ||
| 9 | "label": "Esc", | ||
| 10 | "x": 0, | ||
| 11 | "y": 0 | ||
| 12 | }, | ||
| 13 | { | ||
| 14 | "label": "!", | ||
| 15 | "x": 1, | ||
| 16 | "y": 0 | ||
| 17 | }, | ||
| 18 | { | ||
| 19 | "label": "\"", | ||
| 20 | "x": 2, | ||
| 21 | "y": 0 | ||
| 22 | }, | ||
| 23 | { | ||
| 24 | "label": "#", | ||
| 25 | "x": 3, | ||
| 26 | "y": 0 | ||
| 27 | }, | ||
| 28 | { | ||
| 29 | "label": "$", | ||
| 30 | "x": 4, | ||
| 31 | "y": 0 | ||
| 32 | }, | ||
| 33 | { | ||
| 34 | "label": "%", | ||
| 35 | "x": 5, | ||
| 36 | "y": 0 | ||
| 37 | }, | ||
| 38 | { | ||
| 39 | "label": "&", | ||
| 40 | "x": 6, | ||
| 41 | "y": 0 | ||
| 42 | }, | ||
| 43 | { | ||
| 44 | "label": "'", | ||
| 45 | "x": 7, | ||
| 46 | "y": 0 | ||
| 47 | }, | ||
| 48 | { | ||
| 49 | "label": "(", | ||
| 50 | "x": 8, | ||
| 51 | "y": 0 | ||
| 52 | }, | ||
| 53 | { | ||
| 54 | "label": ")", | ||
| 55 | "x": 9, | ||
| 56 | "y": 0 | ||
| 57 | }, | ||
| 58 | { | ||
| 59 | "label": "", | ||
| 60 | "x": 10, | ||
| 61 | "y": 0 | ||
| 62 | }, | ||
| 63 | { | ||
| 64 | "label": "=", | ||
| 65 | "x": 11, | ||
| 66 | "y": 0 | ||
| 67 | }, | ||
| 68 | { | ||
| 69 | "label": "~", | ||
| 70 | "x": 12, | ||
| 71 | "y": 0 | ||
| 72 | }, | ||
| 73 | { | ||
| 74 | "label": "|", | ||
| 75 | "x": 13, | ||
| 76 | "y": 0 | ||
| 77 | }, | ||
| 78 | { | ||
| 79 | "label": "Back Space", | ||
| 80 | "x": 14, | ||
| 81 | "y": 0 | ||
| 82 | }, | ||
| 83 | { | ||
| 84 | "label": "Tab", | ||
| 85 | "x": 0, | ||
| 86 | "y": 1, | ||
| 87 | "w": 1.5 | ||
| 88 | }, | ||
| 89 | { | ||
| 90 | "label": "Q", | ||
| 91 | "x": 1.5, | ||
| 92 | "y": 1 | ||
| 93 | }, | ||
| 94 | { | ||
| 95 | "label": "W", | ||
| 96 | "x": 2.5, | ||
| 97 | "y": 1 | ||
| 98 | }, | ||
| 99 | { | ||
| 100 | "label": "E", | ||
| 101 | "x": 3.5, | ||
| 102 | "y": 1 | ||
| 103 | }, | ||
| 104 | { | ||
| 105 | "label": "R", | ||
| 106 | "x": 4.5, | ||
| 107 | "y": 1 | ||
| 108 | }, | ||
| 109 | { | ||
| 110 | "label": "T", | ||
| 111 | "x": 5.5, | ||
| 112 | "y": 1 | ||
| 113 | }, | ||
| 114 | { | ||
| 115 | "label": "Y", | ||
| 116 | "x": 6.5, | ||
| 117 | "y": 1 | ||
| 118 | }, | ||
| 119 | { | ||
| 120 | "label": "U", | ||
| 121 | "x": 7.5, | ||
| 122 | "y": 1 | ||
| 123 | }, | ||
| 124 | { | ||
| 125 | "label": "I", | ||
| 126 | "x": 8.5, | ||
| 127 | "y": 1 | ||
| 128 | }, | ||
| 129 | { | ||
| 130 | "label": "O", | ||
| 131 | "x": 9.5, | ||
| 132 | "y": 1 | ||
| 133 | }, | ||
| 134 | { | ||
| 135 | "label": "P", | ||
| 136 | "x": 10.5, | ||
| 137 | "y": 1 | ||
| 138 | }, | ||
| 139 | { | ||
| 140 | "label": "`", | ||
| 141 | "x": 11.5, | ||
| 142 | "y": 1 | ||
| 143 | }, | ||
| 144 | { | ||
| 145 | "label": "{", | ||
| 146 | "x": 12.5, | ||
| 147 | "y": 1 | ||
| 148 | }, | ||
| 149 | { | ||
| 150 | "label": "Enter", | ||
| 151 | "x": 13.75, | ||
| 152 | "y": 1, | ||
| 153 | "w": 1.25, | ||
| 154 | "h": 2 | ||
| 155 | }, | ||
| 156 | { | ||
| 157 | "label": "Fn", | ||
| 158 | "x": 0, | ||
| 159 | "y": 2, | ||
| 160 | "w": 1.75 | ||
| 161 | }, | ||
| 162 | { | ||
| 163 | "label": "A", | ||
| 164 | "x": 1.75, | ||
| 165 | "y": 2 | ||
| 166 | }, | ||
| 167 | { | ||
| 168 | "label": "S", | ||
| 169 | "x": 2.75, | ||
| 170 | "y": 2 | ||
| 171 | }, | ||
| 172 | { | ||
| 173 | "label": "D", | ||
| 174 | "x": 3.75, | ||
| 175 | "y": 2 | ||
| 176 | }, | ||
| 177 | { | ||
| 178 | "label": "F", | ||
| 179 | "x": 4.75, | ||
| 180 | "y": 2 | ||
| 181 | }, | ||
| 182 | { | ||
| 183 | "label": "G", | ||
| 184 | "x": 5.75, | ||
| 185 | "y": 2 | ||
| 186 | }, | ||
| 187 | { | ||
| 188 | "label": "H", | ||
| 189 | "x": 6.75, | ||
| 190 | "y": 2 | ||
| 191 | }, | ||
| 192 | { | ||
| 193 | "label": "J", | ||
| 194 | "x": 7.75, | ||
| 195 | "y": 2 | ||
| 196 | }, | ||
| 197 | { | ||
| 198 | "label": "K", | ||
| 199 | "x": 8.75, | ||
| 200 | "y": 2 | ||
| 201 | }, | ||
| 202 | { | ||
| 203 | "label": "L", | ||
| 204 | "x": 9.75, | ||
| 205 | "y": 2 | ||
| 206 | }, | ||
| 207 | { | ||
| 208 | "label": "+", | ||
| 209 | "x": 10.75, | ||
| 210 | "y": 2 | ||
| 211 | }, | ||
| 212 | { | ||
| 213 | "label": "*", | ||
| 214 | "x": 11.75, | ||
| 215 | "y": 2 | ||
| 216 | }, | ||
| 217 | { | ||
| 218 | "label": "}", | ||
| 219 | "x": 12.75, | ||
| 220 | "y": 2 | ||
| 221 | }, | ||
| 222 | { | ||
| 223 | "label": "Shift", | ||
| 224 | "x": 0, | ||
| 225 | "y": 3, | ||
| 226 | "w": 2.25 | ||
| 227 | }, | ||
| 228 | { | ||
| 229 | "label": "Z", | ||
| 230 | "x": 2.25, | ||
| 231 | "y": 3 | ||
| 232 | }, | ||
| 233 | { | ||
| 234 | "label": "X", | ||
| 235 | "x": 3.25, | ||
| 236 | "y": 3 | ||
| 237 | }, | ||
| 238 | { | ||
| 239 | "label": "C", | ||
| 240 | "x": 4.25, | ||
| 241 | "y": 3 | ||
| 242 | }, | ||
| 243 | { | ||
| 244 | "label": "V", | ||
| 245 | "x": 5.25, | ||
| 246 | "y": 3 | ||
| 247 | }, | ||
| 248 | { | ||
| 249 | "label": "B", | ||
| 250 | "x": 6.25, | ||
| 251 | "y": 3 | ||
| 252 | }, | ||
| 253 | { | ||
| 254 | "label": "N", | ||
| 255 | "x": 7.25, | ||
| 256 | "y": 3 | ||
| 257 | }, | ||
| 258 | { | ||
| 259 | "label": "M", | ||
| 260 | "x": 8.25, | ||
| 261 | "y": 3 | ||
| 262 | }, | ||
| 263 | { | ||
| 264 | "label": "<", | ||
| 265 | "x": 9.25, | ||
| 266 | "y": 3 | ||
| 267 | }, | ||
| 268 | { | ||
| 269 | "label": ">", | ||
| 270 | "x": 10.25, | ||
| 271 | "y": 3 | ||
| 272 | }, | ||
| 273 | { | ||
| 274 | "label": "?", | ||
| 275 | "x": 11.25, | ||
| 276 | "y": 3 | ||
| 277 | }, | ||
| 278 | { | ||
| 279 | "label": "_", | ||
| 280 | "x": 12.25, | ||
| 281 | "y": 3 | ||
| 282 | }, | ||
| 283 | { | ||
| 284 | "label": "Shift", | ||
| 285 | "x": 13.25, | ||
| 286 | "y": 3, | ||
| 287 | "w": 1.75 | ||
| 288 | }, | ||
| 289 | { | ||
| 290 | "label": "Ctrl", | ||
| 291 | "x": 0, | ||
| 292 | "y": 4, | ||
| 293 | "w": 1.25 | ||
| 294 | }, | ||
| 295 | { | ||
| 296 | "label": "Win", | ||
| 297 | "x": 1.25, | ||
| 298 | "y": 4 | ||
| 299 | }, | ||
| 300 | { | ||
| 301 | "label": "Alt", | ||
| 302 | "x": 2.25, | ||
| 303 | "y": 4 | ||
| 304 | }, | ||
| 305 | { | ||
| 306 | "label": "\u7121\u5909\u63db", | ||
| 307 | "x": 3.25, | ||
| 308 | "y": 4, | ||
| 309 | "w": 1.25 | ||
| 310 | }, | ||
| 311 | { | ||
| 312 | "label": "", | ||
| 313 | "x": 4.5, | ||
| 314 | "y": 4, | ||
| 315 | "w": 6 | ||
| 316 | }, | ||
| 317 | { | ||
| 318 | "label": "\u5909\u63db", | ||
| 319 | "x": 10.5, | ||
| 320 | "y": 4, | ||
| 321 | "w": 1.25 | ||
| 322 | }, | ||
| 323 | { | ||
| 324 | "label": "\u304b\u306a", | ||
| 325 | "x": 11.75, | ||
| 326 | "y": 4 | ||
| 327 | }, | ||
| 328 | { | ||
| 329 | "label": "\u534a\u89d2 \u5168\u89d2 \u6f22\u5b57", | ||
| 330 | "x": 12.75, | ||
| 331 | "y": 4 | ||
| 332 | }, | ||
| 333 | { | ||
| 334 | "label": "Caps Lock", | ||
| 335 | "x": 13.75, | ||
| 336 | "y": 4, | ||
| 337 | "w": 1.25 | ||
| 338 | } | ||
| 339 | ] | ||
| 340 | } | ||
| 341 | } | ||
| 342 | } \ No newline at end of file | ||
diff --git a/keyboards/ai03/jp60/jp60.c b/keyboards/ai03/jp60/jp60.c new file mode 100644 index 000000000..c18a99c6a --- /dev/null +++ b/keyboards/ai03/jp60/jp60.c | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | /* Copyright 2021 ai03 | ||
| 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 "jp60.h" | ||
diff --git a/keyboards/ai03/jp60/jp60.h b/keyboards/ai03/jp60/jp60.h new file mode 100644 index 000000000..9635e2f3c --- /dev/null +++ b/keyboards/ai03/jp60/jp60.h | |||
| @@ -0,0 +1,42 @@ | |||
| 1 | /* Copyright 2021 ai03 | ||
| 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 | /* This is a shortcut to help you visually see your layout. | ||
| 22 | * | ||
| 23 | * The first section contains all of the arguments representing the physical | ||
| 24 | * layout of the board and position of the keys. | ||
| 25 | * | ||
| 26 | * The second converts the arguments into a two-dimensional array which | ||
| 27 | * represents the switch matrix. | ||
| 28 | */ | ||
| 29 | #define LAYOUT( \ | ||
| 30 | K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K212, \ | ||
| 31 | K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, \ | ||
| 32 | K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K113, K213, \ | ||
| 33 | K300, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313, \ | ||
| 34 | K400, K401, K402, K403, K407, K410, K411, K412, K413 \ | ||
| 35 | ) \ | ||
| 36 | { \ | ||
| 37 | { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013 }, \ | ||
| 38 | { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113 }, \ | ||
| 39 | { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213 }, \ | ||
| 40 | { K300, KC_NO, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313 }, \ | ||
| 41 | { K400, K401, K402, K403, KC_NO, KC_NO, KC_NO, K407, KC_NO, KC_NO, K410, K411, K412, K413 } \ | ||
| 42 | } | ||
diff --git a/keyboards/ai03/jp60/keymaps/default/config.h b/keyboards/ai03/jp60/keymaps/default/config.h new file mode 100644 index 000000000..ee63d9fee --- /dev/null +++ b/keyboards/ai03/jp60/keymaps/default/config.h | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | /* Copyright 2021 ai03 | ||
| 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 | /* Increase polling rates and scan quantity for improved performance */ | ||
| 20 | #define USB_POLLING_INTERVAL_MS 1 | ||
| 21 | #define QMK_KEYS_PER_SCAN 12 | ||
diff --git a/keyboards/ai03/jp60/keymaps/default/keymap.c b/keyboards/ai03/jp60/keymaps/default/keymap.c new file mode 100644 index 000000000..f26c2a908 --- /dev/null +++ b/keyboards/ai03/jp60/keymaps/default/keymap.c | |||
| @@ -0,0 +1,40 @@ | |||
| 1 | /* Copyright 2021 ai03 | ||
| 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 | #include "keymap_jp.h" | ||
| 18 | |||
| 19 | // Defines names for use in layer keycodes and the keymap | ||
| 20 | enum layer_names { | ||
| 21 | _BASE, | ||
| 22 | _FN | ||
| 23 | }; | ||
| 24 | |||
| 25 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 26 | [_BASE] = LAYOUT( /* Base */ | ||
| 27 | KC_ESC, JP_1, JP_2, JP_3, JP_4, JP_5, JP_6, JP_7, JP_8, JP_9, JP_0, JP_MINS, JP_CIRC, JP_YEN, KC_DEL, | ||
| 28 | KC_TAB, JP_Q, JP_W, JP_E, JP_R, JP_T, JP_Y, JP_U, JP_I, JP_O, JP_P, JP_AT, JP_LBRC, | ||
| 29 | MO(1), JP_A, JP_S, JP_D, JP_F, JP_G, JP_H, JP_J, JP_K, JP_L, JP_SCLN, JP_COLN, JP_RBRC, KC_ENT, | ||
| 30 | KC_LSFT, JP_Z, JP_X, JP_C, JP_V, JP_B, JP_N, JP_M, JP_COMM, JP_DOT, JP_SLSH, JP_BSLS, KC_RSFT, | ||
| 31 | KC_LCTL, KC_LGUI, KC_LALT, JP_MHEN, KC_SPC, JP_HENK, JP_KANA, JP_ZKHK, JP_EISU | ||
| 32 | ), | ||
| 33 | [_FN] = LAYOUT( /* FN */ | ||
| 34 | 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, _______, _______, | ||
| 35 | _______, _______, KC_PGUP, _______, _______, _______, _______, _______, KC_UP, _______, _______, _______, _______, | ||
| 36 | _______, KC_HOME, KC_PGDN, KC_END, _______, _______, _______, KC_LEFT, KC_DOWN, KC_RGHT, _______, _______, _______, _______, | ||
| 37 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 38 | _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 39 | ) | ||
| 40 | }; | ||
diff --git a/keyboards/ai03/jp60/keymaps/default/readme.md b/keyboards/ai03/jp60/keymaps/default/readme.md new file mode 100644 index 000000000..a240bd905 --- /dev/null +++ b/keyboards/ai03/jp60/keymaps/default/readme.md | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | # The default keymap for JP60 | ||
| 2 | |||
| 3 | Configured for JIS input. \ No newline at end of file | ||
diff --git a/keyboards/ai03/jp60/keymaps/default/rules.mk b/keyboards/ai03/jp60/keymaps/default/rules.mk new file mode 100644 index 000000000..edac26d08 --- /dev/null +++ b/keyboards/ai03/jp60/keymaps/default/rules.mk | |||
| @@ -0,0 +1 @@ | |||
| DEBOUNCE_TYPE = asym_eager_defer_pk # Specify per-key debounce for improved responsiveness \ No newline at end of file | |||
diff --git a/keyboards/ai03/jp60/keymaps/via/config.h b/keyboards/ai03/jp60/keymaps/via/config.h new file mode 100644 index 000000000..ee63d9fee --- /dev/null +++ b/keyboards/ai03/jp60/keymaps/via/config.h | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | /* Copyright 2021 ai03 | ||
| 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 | /* Increase polling rates and scan quantity for improved performance */ | ||
| 20 | #define USB_POLLING_INTERVAL_MS 1 | ||
| 21 | #define QMK_KEYS_PER_SCAN 12 | ||
diff --git a/keyboards/ai03/jp60/keymaps/via/keymap.c b/keyboards/ai03/jp60/keymaps/via/keymap.c new file mode 100644 index 000000000..5c8f9ecf6 --- /dev/null +++ b/keyboards/ai03/jp60/keymaps/via/keymap.c | |||
| @@ -0,0 +1,57 @@ | |||
| 1 | /* Copyright 2021 ai03 | ||
| 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 | #include "keymap_jp.h" | ||
| 18 | |||
| 19 | // Defines names for use in layer keycodes and the keymap | ||
| 20 | enum layer_names { | ||
| 21 | _BASE, | ||
| 22 | _FN1, | ||
| 23 | _FN2, | ||
| 24 | _FN3 | ||
| 25 | }; | ||
| 26 | |||
| 27 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 28 | [_BASE] = LAYOUT( /* Base */ | ||
| 29 | 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_JYEN, KC_DEL, | ||
| 30 | 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, | ||
| 31 | 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_NUHS, KC_ENT, | ||
| 32 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RO, KC_RSFT, | ||
| 33 | KC_LCTL, KC_LGUI, KC_LALT, KC_MHEN, KC_SPC, KC_HENK, KC_KANA, KC_GRV, KC_CAPS | ||
| 34 | ), | ||
| 35 | [_FN1] = LAYOUT( /* FN1 */ | ||
| 36 | 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, _______, _______, | ||
| 37 | _______, _______, KC_PGUP, _______, _______, _______, _______, _______, KC_UP, _______, _______, _______, _______, | ||
| 38 | _______, KC_HOME, KC_PGDN, KC_END, _______, _______, _______, KC_LEFT, KC_DOWN, KC_RGHT, _______, _______, _______, _______, | ||
| 39 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 40 | _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 41 | ), | ||
| 42 | [_FN2] = LAYOUT( /* FN2 */ | ||
| 43 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 44 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 45 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 46 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 47 | _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 48 | ), | ||
| 49 | [_FN3] = LAYOUT( /* FN3 */ | ||
| 50 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 51 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 52 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 53 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 54 | _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 55 | ), | ||
| 56 | |||
| 57 | }; | ||
diff --git a/keyboards/ai03/jp60/keymaps/via/readme.md b/keyboards/ai03/jp60/keymaps/via/readme.md new file mode 100644 index 000000000..f6e9c3d8c --- /dev/null +++ b/keyboards/ai03/jp60/keymaps/via/readme.md | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | # The via keymap for JP60 | ||
| 2 | |||
| 3 | For use with VIA configurator and compatible keymap editors. \ No newline at end of file | ||
diff --git a/keyboards/ai03/jp60/keymaps/via/rules.mk b/keyboards/ai03/jp60/keymaps/via/rules.mk new file mode 100644 index 000000000..4956961be --- /dev/null +++ b/keyboards/ai03/jp60/keymaps/via/rules.mk | |||
| @@ -0,0 +1,2 @@ | |||
| 1 | VIA_ENABLE = yes # Enable compatibility with VIA-protocol configurators | ||
| 2 | DEBOUNCE_TYPE = asym_eager_defer_pk # Specify per-key debounce for improved responsiveness \ No newline at end of file | ||
diff --git a/keyboards/ai03/jp60/readme.md b/keyboards/ai03/jp60/readme.md new file mode 100644 index 000000000..25a3b1641 --- /dev/null +++ b/keyboards/ai03/jp60/readme.md | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | # JP60 | ||
| 2 | |||
| 3 |  | ||
| 4 | |||
| 5 | GH60-compatible JIS-like hotswap keyboard PCB | ||
| 6 | |||
| 7 | * Keyboard Maintainer: [ai03](https://github.com/ai03-2725) | ||
| 8 | * Hardware Supported: [JP60 PCB](https://github.com/ai03-2725/JP60) | ||
| 9 | * Hardware Availability: To be made available in JP market soon; will be listed in the repo above | ||
| 10 | |||
| 11 | Make example for this keyboard (after setting up your build environment): | ||
| 12 | |||
| 13 | make ai03/jp60:default | ||
| 14 | |||
| 15 | Flashing example for this keyboard: | ||
| 16 | |||
| 17 | make ai03/jp60:default:flash | ||
| 18 | |||
| 19 | See 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 | |||
| 23 | Enter 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/ai03/jp60/rules.mk b/keyboards/ai03/jp60/rules.mk new file mode 100644 index 000000000..2dcf0bf77 --- /dev/null +++ b/keyboards/ai03/jp60/rules.mk | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = atmega32u4 | ||
| 3 | |||
| 4 | # Bootloader selection | ||
| 5 | BOOTLOADER = atmel-dfu | ||
| 6 | |||
| 7 | # Build Options | ||
| 8 | # change yes to no to disable | ||
| 9 | # | ||
| 10 | BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite | ||
| 11 | MOUSEKEY_ENABLE = yes # Mouse keys | ||
| 12 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
| 13 | CONSOLE_ENABLE = no # Console for debug | ||
| 14 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
| 15 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 16 | SLEEP_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 | ||
| 18 | NKRO_ENABLE = yes # USB Nkey Rollover | ||
| 19 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 20 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
| 21 | AUDIO_ENABLE = no # Audio output | ||
| 22 | LTO_ENABLE = yes # Optimize firmware at link time \ No newline at end of file | ||
