diff options
| author | Jumail Mundekkat <mundekkat@hotmail.com> | 2021-06-19 11:52:29 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-18 18:52:29 -0700 |
| commit | dfcefc2d5d05272c63ed8d5d0e7627c2ff5eacec (patch) | |
| tree | b29c53e3de299d4d70eb83d2d9adc3f97d376c05 | |
| parent | 8de028f1889da418de52bdc1da138687c4944378 (diff) | |
| download | qmk_firmware-dfcefc2d5d05272c63ed8d5d0e7627c2ff5eacec.tar.gz qmk_firmware-dfcefc2d5d05272c63ed8d5d0e7627c2ff5eacec.zip | |
[Keyboard] Add Switchplate 910 keyboard (#13235)
Co-authored-by: Ryan <fauxpark@gmail.com>
10 files changed, 581 insertions, 0 deletions
diff --git a/keyboards/switchplate/switchplate910/config.h b/keyboards/switchplate/switchplate910/config.h new file mode 100644 index 000000000..81f825470 --- /dev/null +++ b/keyboards/switchplate/switchplate910/config.h | |||
| @@ -0,0 +1,87 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2021 Stefan Karsch | ||
| 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 0x54F3 | ||
| 24 | #define PRODUCT_ID 0x2065 | ||
| 25 | #define DEVICE_VER 0x0001 | ||
| 26 | #define MANUFACTURER Switchplate Peripherals | ||
| 27 | #define PRODUCT 910 | ||
| 28 | |||
| 29 | /* key matrix size */ | ||
| 30 | #define MATRIX_ROWS 5 | ||
| 31 | #define MATRIX_COLS 15 | ||
| 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, F5, F6, F7, D1 } | ||
| 44 | #define MATRIX_COL_PINS { D2, D3, D5, D4, D6, D7, B4, B5, B6, C6, C7, B3, B2, B0, B1 } | ||
| 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 3 | ||
| 53 | |||
| 54 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 55 | #define DEBOUNCE 5 | ||
| 56 | |||
| 57 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | ||
| 58 | //#define MATRIX_HAS_GHOST | ||
| 59 | |||
| 60 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 61 | #define LOCKING_SUPPORT_ENABLE | ||
| 62 | /* Locking resynchronize hack */ | ||
| 63 | #define LOCKING_RESYNC_ENABLE | ||
| 64 | |||
| 65 | /* | ||
| 66 | * Feature disable options | ||
| 67 | * These options are also useful to firmware size reduction. | ||
| 68 | */ | ||
| 69 | |||
| 70 | /* disable debug print */ | ||
| 71 | //#define NO_DEBUG | ||
| 72 | |||
| 73 | /* disable print */ | ||
| 74 | //#define NO_PRINT | ||
| 75 | |||
| 76 | /* disable action features */ | ||
| 77 | //#define NO_ACTION_LAYER | ||
| 78 | //#define NO_ACTION_TAPPING | ||
| 79 | //#define NO_ACTION_ONESHOT | ||
| 80 | |||
| 81 | /* disable these deprecated features by default */ | ||
| 82 | #define NO_ACTION_MACRO | ||
| 83 | #define NO_ACTION_FUNCTION | ||
| 84 | |||
| 85 | /* Bootmagic Lite key configuration */ | ||
| 86 | // #define BOOTMAGIC_LITE_ROW 0 | ||
| 87 | // #define BOOTMAGIC_LITE_COLUMN 0 | ||
diff --git a/keyboards/switchplate/switchplate910/info.json b/keyboards/switchplate/switchplate910/info.json new file mode 100644 index 000000000..bbdcd3da0 --- /dev/null +++ b/keyboards/switchplate/switchplate910/info.json | |||
| @@ -0,0 +1,297 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "southpaw910", | ||
| 3 | "url": "", | ||
| 4 | "maintainer": "MxBluE", | ||
| 5 | "width": 22.5, | ||
| 6 | "height": 6.25, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT_all": { | ||
| 9 | "layout": [ | ||
| 10 | { | ||
| 11 | "x": 0, | ||
| 12 | "y": 0 | ||
| 13 | }, | ||
| 14 | { | ||
| 15 | "x": 1, | ||
| 16 | "y": 0 | ||
| 17 | }, | ||
| 18 | { | ||
| 19 | "x": 2, | ||
| 20 | "y": 0 | ||
| 21 | }, | ||
| 22 | { | ||
| 23 | "x": 3, | ||
| 24 | "y": 0 | ||
| 25 | }, | ||
| 26 | { | ||
| 27 | "x": 4, | ||
| 28 | "y": 0 | ||
| 29 | }, | ||
| 30 | { | ||
| 31 | "x": 5, | ||
| 32 | "y": 0 | ||
| 33 | }, | ||
| 34 | { | ||
| 35 | "x": 6, | ||
| 36 | "y": 0 | ||
| 37 | }, | ||
| 38 | { | ||
| 39 | "x": 7, | ||
| 40 | "y": 0 | ||
| 41 | }, | ||
| 42 | { | ||
| 43 | "x": 8, | ||
| 44 | "y": 0 | ||
| 45 | }, | ||
| 46 | { | ||
| 47 | "x": 9, | ||
| 48 | "y": 0 | ||
| 49 | }, | ||
| 50 | { | ||
| 51 | "x": 10, | ||
| 52 | "y": 0 | ||
| 53 | }, | ||
| 54 | { | ||
| 55 | "x": 11, | ||
| 56 | "y": 0 | ||
| 57 | }, | ||
| 58 | { | ||
| 59 | "x": 12, | ||
| 60 | "y": 0 | ||
| 61 | }, | ||
| 62 | { | ||
| 63 | "x": 13, | ||
| 64 | "y": 0 | ||
| 65 | }, | ||
| 66 | { | ||
| 67 | "x": 14, | ||
| 68 | "y": 0 | ||
| 69 | }, | ||
| 70 | { | ||
| 71 | "x": 15, | ||
| 72 | "y": 0 | ||
| 73 | }, | ||
| 74 | { | ||
| 75 | "x": 0, | ||
| 76 | "y": 1, | ||
| 77 | "w": 1.5 | ||
| 78 | }, | ||
| 79 | { | ||
| 80 | "x": 1.5, | ||
| 81 | "y": 1 | ||
| 82 | }, | ||
| 83 | { | ||
| 84 | "x": 2.5, | ||
| 85 | "y": 1 | ||
| 86 | }, | ||
| 87 | { | ||
| 88 | "x": 3.5, | ||
| 89 | "y": 1 | ||
| 90 | }, | ||
| 91 | { | ||
| 92 | "x": 4.5, | ||
| 93 | "y": 1 | ||
| 94 | }, | ||
| 95 | { | ||
| 96 | "x": 5.5, | ||
| 97 | "y": 1 | ||
| 98 | }, | ||
| 99 | { | ||
| 100 | "x": 6.5, | ||
| 101 | "y": 1 | ||
| 102 | }, | ||
| 103 | { | ||
| 104 | "x": 7.5, | ||
| 105 | "y": 1 | ||
| 106 | }, | ||
| 107 | { | ||
| 108 | "x": 8.5, | ||
| 109 | "y": 1 | ||
| 110 | }, | ||
| 111 | { | ||
| 112 | "x": 9.5, | ||
| 113 | "y": 1 | ||
| 114 | }, | ||
| 115 | { | ||
| 116 | "x": 10.5, | ||
| 117 | "y": 1 | ||
| 118 | }, | ||
| 119 | { | ||
| 120 | "x": 11.5, | ||
| 121 | "y": 1 | ||
| 122 | }, | ||
| 123 | { | ||
| 124 | "x": 12.5, | ||
| 125 | "y": 1 | ||
| 126 | }, | ||
| 127 | { | ||
| 128 | "x": 13.5, | ||
| 129 | "y": 1, | ||
| 130 | "w": 1.5 | ||
| 131 | }, | ||
| 132 | { | ||
| 133 | "x": 15, | ||
| 134 | "y": 1 | ||
| 135 | }, | ||
| 136 | { | ||
| 137 | "x": 0, | ||
| 138 | "y": 2, | ||
| 139 | "w": 1.75 | ||
| 140 | }, | ||
| 141 | { | ||
| 142 | "x": 1.75, | ||
| 143 | "y": 2 | ||
| 144 | }, | ||
| 145 | { | ||
| 146 | "x": 2.75, | ||
| 147 | "y": 2 | ||
| 148 | }, | ||
| 149 | { | ||
| 150 | "x": 3.75, | ||
| 151 | "y": 2 | ||
| 152 | }, | ||
| 153 | { | ||
| 154 | "x": 4.75, | ||
| 155 | "y": 2 | ||
| 156 | }, | ||
| 157 | { | ||
| 158 | "x": 5.75, | ||
| 159 | "y": 2 | ||
| 160 | }, | ||
| 161 | { | ||
| 162 | "x": 6.75, | ||
| 163 | "y": 2 | ||
| 164 | }, | ||
| 165 | { | ||
| 166 | "x": 7.75, | ||
| 167 | "y": 2 | ||
| 168 | }, | ||
| 169 | { | ||
| 170 | "x": 8.75, | ||
| 171 | "y": 2 | ||
| 172 | }, | ||
| 173 | { | ||
| 174 | "x": 9.75, | ||
| 175 | "y": 2 | ||
| 176 | }, | ||
| 177 | { | ||
| 178 | "x": 10.75, | ||
| 179 | "y": 2 | ||
| 180 | }, | ||
| 181 | { | ||
| 182 | "x": 11.75, | ||
| 183 | "y": 2 | ||
| 184 | }, | ||
| 185 | { | ||
| 186 | "x": 12.75, | ||
| 187 | "y": 2, | ||
| 188 | "w": 2.25 | ||
| 189 | }, | ||
| 190 | { | ||
| 191 | "x": 15, | ||
| 192 | "y": 2 | ||
| 193 | }, | ||
| 194 | { | ||
| 195 | "x": 0, | ||
| 196 | "y": 3, | ||
| 197 | "w": 2.25 | ||
| 198 | }, | ||
| 199 | { | ||
| 200 | "x": 2.25, | ||
| 201 | "y": 3 | ||
| 202 | }, | ||
| 203 | { | ||
| 204 | "x": 3.25, | ||
| 205 | "y": 3 | ||
| 206 | }, | ||
| 207 | { | ||
| 208 | "x": 4.25, | ||
| 209 | "y": 3 | ||
| 210 | }, | ||
| 211 | { | ||
| 212 | "x": 5.25, | ||
| 213 | "y": 3 | ||
| 214 | }, | ||
| 215 | { | ||
| 216 | "x": 6.25, | ||
| 217 | "y": 3 | ||
| 218 | }, | ||
| 219 | { | ||
| 220 | "x": 7.25, | ||
| 221 | "y": 3 | ||
| 222 | }, | ||
| 223 | { | ||
| 224 | "x": 8.25, | ||
| 225 | "y": 3 | ||
| 226 | }, | ||
| 227 | { | ||
| 228 | "x": 9.25, | ||
| 229 | "y": 3 | ||
| 230 | }, | ||
| 231 | { | ||
| 232 | "x": 10.25, | ||
| 233 | "y": 3 | ||
| 234 | }, | ||
| 235 | { | ||
| 236 | "x": 11.25, | ||
| 237 | "y": 3 | ||
| 238 | }, | ||
| 239 | { | ||
| 240 | "x": 12.25, | ||
| 241 | "y": 3, | ||
| 242 | "w": 1.75 | ||
| 243 | }, | ||
| 244 | { | ||
| 245 | "x": 14, | ||
| 246 | "y": 3 | ||
| 247 | }, | ||
| 248 | { | ||
| 249 | "x": 15, | ||
| 250 | "y": 3 | ||
| 251 | }, | ||
| 252 | { | ||
| 253 | "x": 0, | ||
| 254 | "y": 4, | ||
| 255 | "w": 1.25 | ||
| 256 | }, | ||
| 257 | { | ||
| 258 | "x": 1.25, | ||
| 259 | "y": 4, | ||
| 260 | "w": 1.25 | ||
| 261 | }, | ||
| 262 | { | ||
| 263 | "x": 2.5, | ||
| 264 | "y": 4, | ||
| 265 | "w": 1.25 | ||
| 266 | }, | ||
| 267 | { | ||
| 268 | "x": 3.75, | ||
| 269 | "y": 4, | ||
| 270 | "w": 6.25 | ||
| 271 | }, | ||
| 272 | { | ||
| 273 | "x": 10, | ||
| 274 | "y": 4, | ||
| 275 | "w": 1.25 | ||
| 276 | }, | ||
| 277 | { | ||
| 278 | "x": 11.25, | ||
| 279 | "y": 4, | ||
| 280 | "w": 1.25 | ||
| 281 | }, | ||
| 282 | { | ||
| 283 | "x": 13, | ||
| 284 | "y": 4 | ||
| 285 | }, | ||
| 286 | { | ||
| 287 | "x": 14, | ||
| 288 | "y": 4 | ||
| 289 | }, | ||
| 290 | { | ||
| 291 | "x": 15, | ||
| 292 | "y": 4 | ||
| 293 | } | ||
| 294 | ] | ||
| 295 | } | ||
| 296 | } | ||
| 297 | } | ||
diff --git a/keyboards/switchplate/switchplate910/keymaps/default/keymap.c b/keyboards/switchplate/switchplate910/keymaps/default/keymap.c new file mode 100644 index 000000000..5277a0dc0 --- /dev/null +++ b/keyboards/switchplate/switchplate910/keymaps/default/keymap.c | |||
| @@ -0,0 +1,40 @@ | |||
| 1 | /* Copyright 2021 Stefan Karsch | ||
| 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 | |||
| 18 | // Defines names for use in layer keycodes and the keymap | ||
| 19 | enum layer_names { | ||
| 20 | _BASE, | ||
| 21 | _FN | ||
| 22 | }; | ||
| 23 | |||
| 24 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 25 | LAYOUT_all( /* Base */ | ||
| 26 | 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_BSPC, KC_INS, KC_TRNS, | ||
| 27 | 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, KC_DEL, | ||
| 28 | KC_CAPSLOCK, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_PGUP, | ||
| 29 | 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_UP, KC_PGDN, | ||
| 30 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPACE, KC_RALT, MO(1), KC_LEFT, KC_DOWN, KC_RGHT | ||
| 31 | ), | ||
| 32 | |||
| 33 | LAYOUT_all( /* L1 */ | ||
| 34 | KC_GRV, 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_INS, KC_TRNS, | ||
| 35 | KC_TRNS, KC_MPLY, KC_MPRV, KC_MNXT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_HOME, KC_PSCR, KC_TRNS, KC_TRNS, KC_TRNS, RGB_VAI, | ||
| 36 | RESET, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_END, KC_TRNS, KC_TRNS, KC_TRNS, RGB_VAD, | ||
| 37 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_MUTE, KC_VOLD, KC_VOLU, KC_TRNS, RGB_MOD, RGB_SAI, RGB_TOG, | ||
| 38 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RGB_HUD, RGB_SAD, RGB_HUI | ||
| 39 | ), | ||
| 40 | }; | ||
diff --git a/keyboards/switchplate/switchplate910/keymaps/default/readme.md b/keyboards/switchplate/switchplate910/keymaps/default/readme.md new file mode 100644 index 000000000..19ca528e9 --- /dev/null +++ b/keyboards/switchplate/switchplate910/keymaps/default/readme.md | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | # The default keymap for Switchplate910 | ||
| 2 | |||
| 3 | Nothing special \ No newline at end of file | ||
diff --git a/keyboards/switchplate/switchplate910/keymaps/via/keymap.c b/keyboards/switchplate/switchplate910/keymaps/via/keymap.c new file mode 100644 index 000000000..c27877254 --- /dev/null +++ b/keyboards/switchplate/switchplate910/keymaps/via/keymap.c | |||
| @@ -0,0 +1,57 @@ | |||
| 1 | /* Copyright 2021 Stefan Karsch | ||
| 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 | |||
| 18 | // Defines names for use in layer keycodes and the keymap | ||
| 19 | enum layer_names { | ||
| 20 | _BASE, | ||
| 21 | _FN | ||
| 22 | }; | ||
| 23 | |||
| 24 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 25 | LAYOUT_all( /* Base */ | ||
| 26 | 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_BSPC, KC_INS, KC_TRNS, | ||
| 27 | 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, KC_DEL, | ||
| 28 | KC_CAPSLOCK, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_PGUP, | ||
| 29 | 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_UP, KC_PGDN, | ||
| 30 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPACE, KC_RALT, MO(1), KC_LEFT, KC_DOWN, KC_RGHT | ||
| 31 | ), | ||
| 32 | |||
| 33 | LAYOUT_all( /* L1 */ | ||
| 34 | KC_GRV, 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_INS, KC_TRNS, | ||
| 35 | KC_TRNS, KC_MPLY, KC_MPRV, KC_MNXT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_HOME, KC_PSCR, KC_TRNS, KC_TRNS, KC_TRNS, RGB_VAI, | ||
| 36 | RESET, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_END, KC_TRNS, KC_TRNS, KC_TRNS, RGB_VAD, | ||
| 37 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_MUTE, KC_VOLD, KC_VOLU, KC_TRNS, RGB_MOD, RGB_SAI, RGB_TOG, | ||
| 38 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RGB_HUD, RGB_SAD, RGB_HUI | ||
| 39 | ), | ||
| 40 | |||
| 41 | LAYOUT_all( /* L2 */ | ||
| 42 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 43 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 44 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 45 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 46 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
| 47 | ), | ||
| 48 | |||
| 49 | LAYOUT_all( /* L3 */ | ||
| 50 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 51 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 52 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 53 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 54 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
| 55 | ) | ||
| 56 | |||
| 57 | }; | ||
diff --git a/keyboards/switchplate/switchplate910/keymaps/via/rules.mk b/keyboards/switchplate/switchplate910/keymaps/via/rules.mk new file mode 100644 index 000000000..1e5b99807 --- /dev/null +++ b/keyboards/switchplate/switchplate910/keymaps/via/rules.mk | |||
| @@ -0,0 +1 @@ | |||
| VIA_ENABLE = yes | |||
diff --git a/keyboards/switchplate/switchplate910/readme.md b/keyboards/switchplate/switchplate910/readme.md new file mode 100644 index 000000000..199a8c117 --- /dev/null +++ b/keyboards/switchplate/switchplate910/readme.md | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | # Switchplate910 | ||
| 2 | |||
| 3 | Acoustic cut PCB for the TGR 910 | ||
| 4 | |||
| 5 | * Keyboard Maintainer: [Switchplate Peripherals](https://switchplate.co/)/[ai03](https://github.com/ai03-2725) | ||
| 6 | * Hardware Supported: Switchplate910 PCB | ||
| 7 | * Hardware Availability: GB | ||
| 8 | |||
| 9 | Make example for this keyboard (after setting up your build environment): | ||
| 10 | |||
| 11 | make switchplate/switchplate910:default | ||
| 12 | |||
| 13 | 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). | ||
diff --git a/keyboards/switchplate/switchplate910/rules.mk b/keyboards/switchplate/switchplate910/rules.mk new file mode 100644 index 000000000..6e53d4cab --- /dev/null +++ b/keyboards/switchplate/switchplate910/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 = lite # Virtual DIP switch configuration | ||
| 11 | MOUSEKEY_ENABLE = no # 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 = no # USB Nkey Rollover | ||
| 19 | BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality | ||
| 20 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
| 21 | BLUETOOTH_ENABLE = no # Enable Bluetooth | ||
| 22 | AUDIO_ENABLE = no # Audio output | ||
diff --git a/keyboards/switchplate/switchplate910/switchplate910.c b/keyboards/switchplate/switchplate910/switchplate910.c new file mode 100644 index 000000000..fce0d3072 --- /dev/null +++ b/keyboards/switchplate/switchplate910/switchplate910.c | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | /* Copyright 2021 Stefan Karsch | ||
| 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 "switchplate910.h" | ||
| 18 | |||
diff --git a/keyboards/switchplate/switchplate910/switchplate910.h b/keyboards/switchplate/switchplate910/switchplate910.h new file mode 100644 index 000000000..7142ec779 --- /dev/null +++ b/keyboards/switchplate/switchplate910/switchplate910.h | |||
| @@ -0,0 +1,43 @@ | |||
| 1 | /* Copyright 2021 Stefan Karsch | ||
| 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 | |||
| 30 | #define LAYOUT_all( \ | ||
| 31 | K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014, K213, \ | ||
| 32 | K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, \ | ||
| 33 | K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K214, \ | ||
| 34 | K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K314, \ | ||
| 35 | K400, K401, K402, K405, K408, K409, K411, K412, K414 \ | ||
| 36 | ) \ | ||
| 37 | { \ | ||
| 38 | { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014 }, \ | ||
| 39 | { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114 }, \ | ||
| 40 | { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214 }, \ | ||
| 41 | { K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, KC_NO, K314 }, \ | ||
| 42 | { K400, K401, K402, KC_NO, KC_NO, K405, KC_NO, KC_NO, K408, K409, KC_NO, K411, K412, KC_NO, K414 } \ | ||
| 43 | } | ||
