diff options
21 files changed, 1082 insertions, 0 deletions
diff --git a/keyboards/meletrix/zoom65/config.h b/keyboards/meletrix/zoom65/config.h new file mode 100644 index 000000000..4eb85aeb4 --- /dev/null +++ b/keyboards/meletrix/zoom65/config.h | |||
| @@ -0,0 +1,51 @@ | |||
| 1 | /* Copyright 2021 meletrix | ||
| 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 "config_common.h" | ||
| 20 | |||
| 21 | /* USB Device descriptor parameter */ | ||
| 22 | #define VENDOR_ID 0x806B | ||
| 23 | #define PRODUCT_ID 0x0004 | ||
| 24 | #define DEVICE_VER 0x0001 | ||
| 25 | #define MANUFACTURER meletrix | ||
| 26 | #define PRODUCT zoom65 | ||
| 27 | |||
| 28 | /* key matrix size */ | ||
| 29 | #define MATRIX_ROWS 5 | ||
| 30 | #define MATRIX_COLS 15 | ||
| 31 | |||
| 32 | #define MATRIX_ROW_PINS { F0, E6, D5, F1, F4 } | ||
| 33 | #define MATRIX_COL_PINS { C7, D3, D2, D1, D0, B7, B3, B2, C6, B6, B5, B4, D7, D6, D4 } | ||
| 34 | |||
| 35 | #define DIODE_DIRECTION COL2ROW | ||
| 36 | |||
| 37 | /* Set 0 if debouncing isn't needed */ | ||
| 38 | #define DEBOUNCE 5 | ||
| 39 | |||
| 40 | /* Enable encoder */ | ||
| 41 | #define ENCODERS_PAD_A { B1 } | ||
| 42 | #define ENCODERS_PAD_B { B0 } | ||
| 43 | |||
| 44 | #define ENCODERS 1 | ||
| 45 | // Note: array is { col, row ) | ||
| 46 | #define ENCODERS_CW_KEY { { 5, 4 } } | ||
| 47 | #define ENCODERS_CCW_KEY { { 3, 4 } } | ||
| 48 | |||
| 49 | #define LED_CAPS_LOCK_PIN F7 | ||
| 50 | #define LED_PIN_ON_STATE 0 | ||
| 51 | |||
diff --git a/keyboards/meletrix/zoom65/info.json b/keyboards/meletrix/zoom65/info.json new file mode 100644 index 000000000..49535c106 --- /dev/null +++ b/keyboards/meletrix/zoom65/info.json | |||
| @@ -0,0 +1,467 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "zoom65", | ||
| 3 | "url": "https://zoom65.com/", | ||
| 4 | "maintainer": "qmk", | ||
| 5 | "layouts": { | ||
| 6 | "LAYOUT_all": { | ||
| 7 | "layout": [ | ||
| 8 | { "label": "Esc", "x": 0, "y": 0 }, | ||
| 9 | { "label": "1", "x": 1, "y": 0 }, | ||
| 10 | { "label": "2", "x": 2, "y": 0 }, | ||
| 11 | { "label": "3", "x": 3, "y": 0 }, | ||
| 12 | { "label": "4", "x": 4, "y": 0 }, | ||
| 13 | { "label": "5", "x": 5, "y": 0 }, | ||
| 14 | { "label": "6", "x": 6, "y": 0 }, | ||
| 15 | { "label": "7", "x": 7, "y": 0 }, | ||
| 16 | { "label": "8", "x": 8, "y": 0 }, | ||
| 17 | { "label": "9", "x": 9, "y": 0 }, | ||
| 18 | { "label": "0", "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": "EncoderRotateL", "x": 15, "y": 0, "w": 0.5 }, | ||
| 23 | { "label": "EncoderClick", "x": 15.5, "y": 0 }, | ||
| 24 | { "label": "EncoderRotateR", "x": 16.5, "y": 0, "w": 0.5 }, | ||
| 25 | |||
| 26 | { "label": "Tab", "x": 0, "y": 1, "w": 1.5 }, | ||
| 27 | { "label": "Q", "x": 1.5, "y": 1 }, | ||
| 28 | { "label": "W", "x": 2.5, "y": 1 }, | ||
| 29 | { "label": "E", "x": 3.5, "y": 1 }, | ||
| 30 | { "label": "R", "x": 4.5, "y": 1 }, | ||
| 31 | { "label": "T", "x": 5.5, "y": 1 }, | ||
| 32 | { "label": "Y", "x": 6.5, "y": 1 }, | ||
| 33 | { "label": "U", "x": 7.5, "y": 1 }, | ||
| 34 | { "label": "I", "x": 8.5, "y": 1 }, | ||
| 35 | { "label": "O", "x": 9.5, "y": 1 }, | ||
| 36 | { "label": "P", "x": 10.5, "y": 1 }, | ||
| 37 | { "label": "[", "x": 11.5, "y": 1 }, | ||
| 38 | { "label": "]", "x": 12.5, "y": 1 }, | ||
| 39 | { "label": "\\", "x": 13.5, "y": 1, "w": 1.5 }, | ||
| 40 | { "label": "Delete", "x": 15, "y": 1 }, | ||
| 41 | |||
| 42 | { "label": "Caps Lock", "x": 0, "y": 2, "w": 1.75 }, | ||
| 43 | { "label": "A", "x": 1.75, "y": 2 }, | ||
| 44 | { "label": "S", "x": 2.75, "y": 2 }, | ||
| 45 | { "label": "D", "x": 3.75, "y": 2 }, | ||
| 46 | { "label": "F", "x": 4.75, "y": 2 }, | ||
| 47 | { "label": "G", "x": 5.75, "y": 2 }, | ||
| 48 | { "label": "H", "x": 6.75, "y": 2 }, | ||
| 49 | { "label": "J", "x": 7.75, "y": 2 }, | ||
| 50 | { "label": "K", "x": 8.75, "y": 2 }, | ||
| 51 | { "label": "L", "x": 9.75, "y": 2 }, | ||
| 52 | { "label": ";", "x": 10.75, "y": 2 }, | ||
| 53 | { "label": "'", "x": 11.75, "y": 2 }, | ||
| 54 | { "label": "Enter", "x": 12.75, "y": 2, "w": 2.25 }, | ||
| 55 | { "label": "Backspace", "x": 14, "y": 0 }, | ||
| 56 | { "label": "PageUp", "x": 15, "y": 2 }, | ||
| 57 | |||
| 58 | { "label": "Shift1", "x": 0, "y": 3, "w": 1.25 }, | ||
| 59 | { "label": "Shift2", "x": 1.25, "y": 3 }, | ||
| 60 | { "label": "Z", "x": 2.25, "y": 3 }, | ||
| 61 | { "label": "X", "x": 3.25, "y": 3 }, | ||
| 62 | { "label": "C", "x": 4.25, "y": 3 }, | ||
| 63 | { "label": "V", "x": 5.25, "y": 3 }, | ||
| 64 | { "label": "B", "x": 6.25, "y": 3 }, | ||
| 65 | { "label": "N", "x": 7.25, "y": 3 }, | ||
| 66 | { "label": "M", "x": 8.25, "y": 3 }, | ||
| 67 | { "label": ",", "x": 9.25, "y": 3 }, | ||
| 68 | { "label": ".", "x": 10.25, "y": 3 }, | ||
| 69 | { "label": "/", "x": 11.25, "y": 3 }, | ||
| 70 | { "label": "Shift", "x": 12.25, "y": 3, "w": 1.75 }, | ||
| 71 | { "label": "\u2191", "x": 14, "y": 3 }, | ||
| 72 | { "label": "End", "x": 15, "y": 3 }, | ||
| 73 | |||
| 74 | { "label": "Ctrl", "x": 0, "y": 4, "w": 1.25 }, | ||
| 75 | { "label": "Win", "x": 1.25, "y": 4, "w": 1.25 }, | ||
| 76 | { "label": "Alt", "x": 2.5, "y": 4, "w": 1.25 }, | ||
| 77 | { "x": 3.75, "y": 4, "w": 2.25 }, | ||
| 78 | { "x": 6, "y": 4, "w": 1.25 }, | ||
| 79 | { "x": 7.25, "y": 4, "w": 2.75 }, | ||
| 80 | { "label": "Alt", "x": 10, "y": 4, "w": 1.25 }, | ||
| 81 | { "label": "Fn", "x": 11.25, "y": 4, "w": 1.25 }, | ||
| 82 | { "label": "\u2190", "x": 13, "y": 4 }, | ||
| 83 | { "label": "\u2193", "x": 14, "y": 4 }, | ||
| 84 | { "label": "\u2192", "x": 15, "y": 4 } | ||
| 85 | ] | ||
| 86 | }, | ||
| 87 | "LAYOUT_65_ansi_blocker": { | ||
| 88 | "layout": [ | ||
| 89 | { "label": "Esc", "x": 0, "y": 0 }, | ||
| 90 | { "label": "1", "x": 1, "y": 0 }, | ||
| 91 | { "label": "2", "x": 2, "y": 0 }, | ||
| 92 | { "label": "3", "x": 3, "y": 0 }, | ||
| 93 | { "label": "4", "x": 4, "y": 0 }, | ||
| 94 | { "label": "5", "x": 5, "y": 0 }, | ||
| 95 | { "label": "6", "x": 6, "y": 0 }, | ||
| 96 | { "label": "7", "x": 7, "y": 0 }, | ||
| 97 | { "label": "8", "x": 8, "y": 0 }, | ||
| 98 | { "label": "9", "x": 9, "y": 0 }, | ||
| 99 | { "label": "0", "x": 10, "y": 0 }, | ||
| 100 | { "label": "-", "x": 11, "y": 0 }, | ||
| 101 | { "label": "=", "x": 12, "y": 0 }, | ||
| 102 | { "label": "Backspace", "x": 13, "y": 0, "w": 2 }, | ||
| 103 | { "label": "Encode", "x": 15, "y": 0 }, | ||
| 104 | |||
| 105 | { "label": "Tab", "x": 0, "y": 1, "w": 1.5 }, | ||
| 106 | { "label": "Q", "x": 1.5, "y": 1 }, | ||
| 107 | { "label": "W", "x": 2.5, "y": 1 }, | ||
| 108 | { "label": "E", "x": 3.5, "y": 1 }, | ||
| 109 | { "label": "R", "x": 4.5, "y": 1 }, | ||
| 110 | { "label": "T", "x": 5.5, "y": 1 }, | ||
| 111 | { "label": "Y", "x": 6.5, "y": 1 }, | ||
| 112 | { "label": "U", "x": 7.5, "y": 1 }, | ||
| 113 | { "label": "I", "x": 8.5, "y": 1 }, | ||
| 114 | { "label": "O", "x": 9.5, "y": 1 }, | ||
| 115 | { "label": "P", "x": 10.5, "y": 1 }, | ||
| 116 | { "label": "[", "x": 11.5, "y": 1 }, | ||
| 117 | { "label": "]", "x": 12.5, "y": 1 }, | ||
| 118 | { "label": "\\", "x": 13.5, "y": 1, "w": 1.5 }, | ||
| 119 | { "label": "Delete", "x": 15, "y": 1 }, | ||
| 120 | |||
| 121 | { "label": "Caps Lock", "x": 0, "y": 2, "w": 1.75 }, | ||
| 122 | { "label": "A", "x": 1.75, "y": 2 }, | ||
| 123 | { "label": "S", "x": 2.75, "y": 2 }, | ||
| 124 | { "label": "D", "x": 3.75, "y": 2 }, | ||
| 125 | { "label": "F", "x": 4.75, "y": 2 }, | ||
| 126 | { "label": "G", "x": 5.75, "y": 2 }, | ||
| 127 | { "label": "H", "x": 6.75, "y": 2 }, | ||
| 128 | { "label": "J", "x": 7.75, "y": 2 }, | ||
| 129 | { "label": "K", "x": 8.75, "y": 2 }, | ||
| 130 | { "label": "L", "x": 9.75, "y": 2 }, | ||
| 131 | { "label": ";", "x": 10.75, "y": 2 }, | ||
| 132 | { "label": "'", "x": 11.75, "y": 2 }, | ||
| 133 | { "label": "Enter", "x": 12.75, "y": 2, "w": 2.25 }, | ||
| 134 | { "label": "PageUp", "x": 15, "y": 2 }, | ||
| 135 | |||
| 136 | { "label": "Shift", "x": 0, "y": 3, "w": 2.25 }, | ||
| 137 | { "label": "Z", "x": 2.25, "y": 3 }, | ||
| 138 | { "label": "X", "x": 3.25, "y": 3 }, | ||
| 139 | { "label": "C", "x": 4.25, "y": 3 }, | ||
| 140 | { "label": "V", "x": 5.25, "y": 3 }, | ||
| 141 | { "label": "B", "x": 6.25, "y": 3 }, | ||
| 142 | { "label": "N", "x": 7.25, "y": 3 }, | ||
| 143 | { "label": "M", "x": 8.25, "y": 3 }, | ||
| 144 | { "label": ",", "x": 9.25, "y": 3 }, | ||
| 145 | { "label": ".", "x": 10.25, "y": 3 }, | ||
| 146 | { "label": "/", "x": 11.25, "y": 3 }, | ||
| 147 | { "label": "Shift", "x": 12.25, "y": 3, "w": 1.75 }, | ||
| 148 | { "label": "\u2191", "x": 14, "y": 3 }, | ||
| 149 | { "label": "End", "x": 15, "y": 3 }, | ||
| 150 | |||
| 151 | { "label": "Ctrl", "x": 0, "y": 4, "w": 1.25 }, | ||
| 152 | { "label": "Win", "x": 1.25, "y": 4, "w": 1.25 }, | ||
| 153 | { "label": "Alt", "x": 2.5, "y": 4, "w": 1.25 }, | ||
| 154 | { "x": 3.75, "y": 4, "w": 6.25 }, | ||
| 155 | { "label": "Alt", "x": 10, "y": 4, "w": 1.25 }, | ||
| 156 | { "label": "Fn", "x": 11.25, "y": 4, "w": 1.25 }, | ||
| 157 | { "label": "\u2190", "x": 13, "y": 4 }, | ||
| 158 | { "label": "\u2193", "x": 14, "y": 4 }, | ||
| 159 | { "label": "\u2192", "x": 15, "y": 4 } | ||
| 160 | ] | ||
| 161 | }, | ||
| 162 | "LAYOUT_65_iso_blocker": { | ||
| 163 | "layout": [ | ||
| 164 | { "label": "Esc", "x": 0, "y": 0 }, | ||
| 165 | { "label": "1", "x": 1, "y": 0 }, | ||
| 166 | { "label": "2", "x": 2, "y": 0 }, | ||
| 167 | { "label": "3", "x": 3, "y": 0 }, | ||
| 168 | { "label": "4", "x": 4, "y": 0 }, | ||
| 169 | { "label": "5", "x": 5, "y": 0 }, | ||
| 170 | { "label": "6", "x": 6, "y": 0 }, | ||
| 171 | { "label": "7", "x": 7, "y": 0 }, | ||
| 172 | { "label": "8", "x": 8, "y": 0 }, | ||
| 173 | { "label": "9", "x": 9, "y": 0 }, | ||
| 174 | { "label": "0", "x": 10, "y": 0 }, | ||
| 175 | { "label": "-", "x": 11, "y": 0 }, | ||
| 176 | { "label": "=", "x": 12, "y": 0 }, | ||
| 177 | { "label": "Backspace", "x": 13, "y": 0, "w": 2 }, | ||
| 178 | { "label": "Encode", "x": 15, "y": 0 }, | ||
| 179 | |||
| 180 | { "label": "Tab", "x": 0, "y": 1, "w": 1.5 }, | ||
| 181 | { "label": "Q", "x": 1.5, "y": 1 }, | ||
| 182 | { "label": "W", "x": 2.5, "y": 1 }, | ||
| 183 | { "label": "E", "x": 3.5, "y": 1 }, | ||
| 184 | { "label": "R", "x": 4.5, "y": 1 }, | ||
| 185 | { "label": "T", "x": 5.5, "y": 1 }, | ||
| 186 | { "label": "Y", "x": 6.5, "y": 1 }, | ||
| 187 | { "label": "U", "x": 7.5, "y": 1 }, | ||
| 188 | { "label": "I", "x": 8.5, "y": 1 }, | ||
| 189 | { "label": "O", "x": 9.5, "y": 1 }, | ||
| 190 | { "label": "P", "x": 10.5, "y": 1 }, | ||
| 191 | { "label": "[", "x": 11.5, "y": 1 }, | ||
| 192 | { "label": "]", "x": 12.5, "y": 1 }, | ||
| 193 | { "label": "ISO", "x": 13.75, "y": 1, "w": 1.25, "h": 2 }, | ||
| 194 | { "label": "Delete", "x": 15, "y": 1 }, | ||
| 195 | |||
| 196 | { "label": "Caps Lock", "x": 0, "y": 2, "w": 1.75 }, | ||
| 197 | { "label": "A", "x": 1.75, "y": 2 }, | ||
| 198 | { "label": "S", "x": 2.75, "y": 2 }, | ||
| 199 | { "label": "D", "x": 3.75, "y": 2 }, | ||
| 200 | { "label": "F", "x": 4.75, "y": 2 }, | ||
| 201 | { "label": "G", "x": 5.75, "y": 2 }, | ||
| 202 | { "label": "H", "x": 6.75, "y": 2 }, | ||
| 203 | { "label": "J", "x": 7.75, "y": 2 }, | ||
| 204 | { "label": "K", "x": 8.75, "y": 2 }, | ||
| 205 | { "label": "L", "x": 9.75, "y": 2 }, | ||
| 206 | { "label": ";", "x": 10.75, "y": 2 }, | ||
| 207 | { "label": "'", "x": 11.75, "y": 2 }, | ||
| 208 | { "label": "\\", "x": 12.75, "y": 2 }, | ||
| 209 | { "label": "PageUp", "x": 15, "y": 2 }, | ||
| 210 | |||
| 211 | { "label": "Shift", "x": 0, "y": 3, "w": 2.25 }, | ||
| 212 | { "label": "Z", "x": 2.25, "y": 3 }, | ||
| 213 | { "label": "X", "x": 3.25, "y": 3 }, | ||
| 214 | { "label": "C", "x": 4.25, "y": 3 }, | ||
| 215 | { "label": "V", "x": 5.25, "y": 3 }, | ||
| 216 | { "label": "B", "x": 6.25, "y": 3 }, | ||
| 217 | { "label": "N", "x": 7.25, "y": 3 }, | ||
| 218 | { "label": "M", "x": 8.25, "y": 3 }, | ||
| 219 | { "label": ",", "x": 9.25, "y": 3 }, | ||
| 220 | { "label": ".", "x": 10.25, "y": 3 }, | ||
| 221 | { "label": "/", "x": 11.25, "y": 3 }, | ||
| 222 | { "label": "Shift", "x": 12.25, "y": 3, "w": 1.75 }, | ||
| 223 | { "label": "\u2191", "x": 14, "y": 3 }, | ||
| 224 | { "label": "End", "x": 15, "y": 3 }, | ||
| 225 | |||
| 226 | { "label": "Ctrl", "x": 0, "y": 4, "w": 1.25 }, | ||
| 227 | { "label": "Win", "x": 1.25, "y": 4, "w": 1.25 }, | ||
| 228 | { "label": "Alt", "x": 2.5, "y": 4, "w": 1.25 }, | ||
| 229 | { "x": 3.75, "y": 4, "w": 6.25 }, | ||
| 230 | { "label": "Alt", "x": 10, "y": 4, "w": 1.25 }, | ||
| 231 | { "label": "Fn", "x": 11.25, "y": 4, "w": 1.25 }, | ||
| 232 | { "label": "\u2190", "x": 13, "y": 4 }, | ||
| 233 | { "label": "\u2193", "x": 14, "y": 4 }, | ||
| 234 | { "label": "\u2192", "x": 15, "y": 4 } | ||
| 235 | ] | ||
| 236 | }, | ||
| 237 | "LAYOUT_65_ansi_split_bs": { | ||
| 238 | "layout": [ | ||
| 239 | { "label": "Esc", "x": 0, "y": 0 }, | ||
| 240 | { "label": "1", "x": 1, "y": 0 }, | ||
| 241 | { "label": "2", "x": 2, "y": 0 }, | ||
| 242 | { "label": "3", "x": 3, "y": 0 }, | ||
| 243 | { "label": "4", "x": 4, "y": 0 }, | ||
| 244 | { "label": "5", "x": 5, "y": 0 }, | ||
| 245 | { "label": "6", "x": 6, "y": 0 }, | ||
| 246 | { "label": "7", "x": 7, "y": 0 }, | ||
| 247 | { "label": "8", "x": 8, "y": 0 }, | ||
| 248 | { "label": "9", "x": 9, "y": 0 }, | ||
| 249 | { "label": "0", "x": 10, "y": 0 }, | ||
| 250 | { "label": "-", "x": 11, "y": 0 }, | ||
| 251 | { "label": "=", "x": 12, "y": 0 }, | ||
| 252 | { "label": "Backspace", "x": 13, "y": 0 }, | ||
| 253 | { "label": "Encode", "x": 15, "y": 0 }, | ||
| 254 | |||
| 255 | { "label": "Tab", "x": 0, "y": 1, "w": 1.5 }, | ||
| 256 | { "label": "Q", "x": 1.5, "y": 1 }, | ||
| 257 | { "label": "W", "x": 2.5, "y": 1 }, | ||
| 258 | { "label": "E", "x": 3.5, "y": 1 }, | ||
| 259 | { "label": "R", "x": 4.5, "y": 1 }, | ||
| 260 | { "label": "T", "x": 5.5, "y": 1 }, | ||
| 261 | { "label": "Y", "x": 6.5, "y": 1 }, | ||
| 262 | { "label": "U", "x": 7.5, "y": 1 }, | ||
| 263 | { "label": "I", "x": 8.5, "y": 1 }, | ||
| 264 | { "label": "O", "x": 9.5, "y": 1 }, | ||
| 265 | { "label": "P", "x": 10.5, "y": 1 }, | ||
| 266 | { "label": "[", "x": 11.5, "y": 1 }, | ||
| 267 | { "label": "]", "x": 12.5, "y": 1 }, | ||
| 268 | { "label": "\\", "x": 13.5, "y": 1, "w": 1.5 }, | ||
| 269 | { "label": "Delete", "x": 15, "y": 1 }, | ||
| 270 | |||
| 271 | { "label": "Caps Lock", "x": 0, "y": 2, "w": 1.75 }, | ||
| 272 | { "label": "A", "x": 1.75, "y": 2 }, | ||
| 273 | { "label": "S", "x": 2.75, "y": 2 }, | ||
| 274 | { "label": "D", "x": 3.75, "y": 2 }, | ||
| 275 | { "label": "F", "x": 4.75, "y": 2 }, | ||
| 276 | { "label": "G", "x": 5.75, "y": 2 }, | ||
| 277 | { "label": "H", "x": 6.75, "y": 2 }, | ||
| 278 | { "label": "J", "x": 7.75, "y": 2 }, | ||
| 279 | { "label": "K", "x": 8.75, "y": 2 }, | ||
| 280 | { "label": "L", "x": 9.75, "y": 2 }, | ||
| 281 | { "label": ";", "x": 10.75, "y": 2 }, | ||
| 282 | { "label": "'", "x": 11.75, "y": 2 }, | ||
| 283 | { "label": "Enter", "x": 12.75, "y": 2, "w": 2.25 }, | ||
| 284 | { "label": "Backspace", "x": 14, "y": 0 }, | ||
| 285 | { "label": "PageUp", "x": 15, "y": 2 }, | ||
| 286 | |||
| 287 | { "label": "Shift", "x": 0, "y": 3, "w": 2.25 }, | ||
| 288 | { "label": "Z", "x": 2.25, "y": 3 }, | ||
| 289 | { "label": "X", "x": 3.25, "y": 3 }, | ||
| 290 | { "label": "C", "x": 4.25, "y": 3 }, | ||
| 291 | { "label": "V", "x": 5.25, "y": 3 }, | ||
| 292 | { "label": "B", "x": 6.25, "y": 3 }, | ||
| 293 | { "label": "N", "x": 7.25, "y": 3 }, | ||
| 294 | { "label": "M", "x": 8.25, "y": 3 }, | ||
| 295 | { "label": ",", "x": 9.25, "y": 3 }, | ||
| 296 | { "label": ".", "x": 10.25, "y": 3 }, | ||
| 297 | { "label": "/", "x": 11.25, "y": 3 }, | ||
| 298 | { "label": "Shift", "x": 12.25, "y": 3, "w": 1.75 }, | ||
| 299 | { "label": "\u2191", "x": 14, "y": 3 }, | ||
| 300 | { "label": "End", "x": 15, "y": 3 }, | ||
| 301 | |||
| 302 | { "label": "Ctrl", "x": 0, "y": 4, "w": 1.25 }, | ||
| 303 | { "label": "Win", "x": 1.25, "y": 4, "w": 1.25 }, | ||
| 304 | { "label": "Alt", "x": 2.5, "y": 4, "w": 1.25 }, | ||
| 305 | { "x": 3.75, "y": 4, "w": 6.25 }, | ||
| 306 | { "label": "Alt", "x": 10, "y": 4, "w": 1.25 }, | ||
| 307 | { "label": "Fn", "x": 11.25, "y": 4, "w": 1.25 }, | ||
| 308 | { "label": "\u2190", "x": 13, "y": 4 }, | ||
| 309 | { "label": "\u2193", "x": 14, "y": 4 }, | ||
| 310 | { "label": "\u2192", "x": 15, "y": 4 } | ||
| 311 | ] | ||
| 312 | }, | ||
| 313 | "LAYOUT_65_ansi_split_lshift": { | ||
| 314 | "layout": [ | ||
| 315 | { "label": "Esc", "x": 0, "y": 0 }, | ||
| 316 | { "label": "1", "x": 1, "y": 0 }, | ||
| 317 | { "label": "2", "x": 2, "y": 0 }, | ||
| 318 | { "label": "3", "x": 3, "y": 0 }, | ||
| 319 | { "label": "4", "x": 4, "y": 0 }, | ||
| 320 | { "label": "5", "x": 5, "y": 0 }, | ||
| 321 | { "label": "6", "x": 6, "y": 0 }, | ||
| 322 | { "label": "7", "x": 7, "y": 0 }, | ||
| 323 | { "label": "8", "x": 8, "y": 0 }, | ||
| 324 | { "label": "9", "x": 9, "y": 0 }, | ||
| 325 | { "label": "0", "x": 10, "y": 0 }, | ||
| 326 | { "label": "-", "x": 11, "y": 0 }, | ||
| 327 | { "label": "=", "x": 12, "y": 0 }, | ||
| 328 | { "label": "Backspace", "x": 13, "y": 0, "w": 2 }, | ||
| 329 | { "label": "Encode", "x": 15, "y": 0 }, | ||
| 330 | |||
| 331 | { "label": "Tab", "x": 0, "y": 1, "w": 1.5 }, | ||
| 332 | { "label": "Q", "x": 1.5, "y": 1 }, | ||
| 333 | { "label": "W", "x": 2.5, "y": 1 }, | ||
| 334 | { "label": "E", "x": 3.5, "y": 1 }, | ||
| 335 | { "label": "R", "x": 4.5, "y": 1 }, | ||
| 336 | { "label": "T", "x": 5.5, "y": 1 }, | ||
| 337 | { "label": "Y", "x": 6.5, "y": 1 }, | ||
| 338 | { "label": "U", "x": 7.5, "y": 1 }, | ||
| 339 | { "label": "I", "x": 8.5, "y": 1 }, | ||
| 340 | { "label": "O", "x": 9.5, "y": 1 }, | ||
| 341 | { "label": "P", "x": 10.5, "y": 1 }, | ||
| 342 | { "label": "[", "x": 11.5, "y": 1 }, | ||
| 343 | { "label": "]", "x": 12.5, "y": 1 }, | ||
| 344 | { "label": "\\", "x": 13.5, "y": 1, "w": 1.5 }, | ||
| 345 | { "label": "Delete", "x": 15, "y": 1 }, | ||
| 346 | |||
| 347 | { "label": "Caps Lock", "x": 0, "y": 2, "w": 1.75 }, | ||
| 348 | { "label": "A", "x": 1.75, "y": 2 }, | ||
| 349 | { "label": "S", "x": 2.75, "y": 2 }, | ||
| 350 | { "label": "D", "x": 3.75, "y": 2 }, | ||
| 351 | { "label": "F", "x": 4.75, "y": 2 }, | ||
| 352 | { "label": "G", "x": 5.75, "y": 2 }, | ||
| 353 | { "label": "H", "x": 6.75, "y": 2 }, | ||
| 354 | { "label": "J", "x": 7.75, "y": 2 }, | ||
| 355 | { "label": "K", "x": 8.75, "y": 2 }, | ||
| 356 | { "label": "L", "x": 9.75, "y": 2 }, | ||
| 357 | { "label": ";", "x": 10.75, "y": 2 }, | ||
| 358 | { "label": "'", "x": 11.75, "y": 2 }, | ||
| 359 | { "label": "Enter", "x": 12.75, "y": 2, "w": 2.25 }, | ||
| 360 | { "label": "PageUp", "x": 15, "y": 2 }, | ||
| 361 | |||
| 362 | { "label": "Shift1", "x": 0, "y": 3, "w": 1.25 }, | ||
| 363 | { "label": "Shift2", "x": 1.25, "y": 3 }, | ||
| 364 | { "label": "Z", "x": 2.25, "y": 3 }, | ||
| 365 | { "label": "X", "x": 3.25, "y": 3 }, | ||
| 366 | { "label": "C", "x": 4.25, "y": 3 }, | ||
| 367 | { "label": "V", "x": 5.25, "y": 3 }, | ||
| 368 | { "label": "B", "x": 6.25, "y": 3 }, | ||
| 369 | { "label": "N", "x": 7.25, "y": 3 }, | ||
| 370 | { "label": "M", "x": 8.25, "y": 3 }, | ||
| 371 | { "label": ",", "x": 9.25, "y": 3 }, | ||
| 372 | { "label": ".", "x": 10.25, "y": 3 }, | ||
| 373 | { "label": "/", "x": 11.25, "y": 3 }, | ||
| 374 | { "label": "Shift", "x": 12.25, "y": 3, "w": 1.75 }, | ||
| 375 | { "label": "\u2191", "x": 14, "y": 3 }, | ||
| 376 | { "label": "End", "x": 15, "y": 3 }, | ||
| 377 | |||
| 378 | { "label": "Ctrl", "x": 0, "y": 4, "w": 1.25 }, | ||
| 379 | { "label": "Win", "x": 1.25, "y": 4, "w": 1.25 }, | ||
| 380 | { "label": "Alt", "x": 2.5, "y": 4, "w": 1.25 }, | ||
| 381 | { "x": 3.75, "y": 4, "w": 6.25 }, | ||
| 382 | { "label": "Alt", "x": 10, "y": 4, "w": 1.25 }, | ||
| 383 | { "label": "Fn", "x": 11.25, "y": 4, "w": 1.25 }, | ||
| 384 | { "label": "\u2190", "x": 13, "y": 4 }, | ||
| 385 | { "label": "\u2193", "x": 14, "y": 4 }, | ||
| 386 | { "label": "\u2192", "x": 15, "y": 4 } | ||
| 387 | ] | ||
| 388 | }, | ||
| 389 | "LAYOUT_65_split_space": { | ||
| 390 | "layout": [ | ||
| 391 | { "label": "Esc", "x": 0, "y": 0 }, | ||
| 392 | { "label": "1", "x": 1, "y": 0 }, | ||
| 393 | { "label": "2", "x": 2, "y": 0 }, | ||
| 394 | { "label": "3", "x": 3, "y": 0 }, | ||
| 395 | { "label": "4", "x": 4, "y": 0 }, | ||
| 396 | { "label": "5", "x": 5, "y": 0 }, | ||
| 397 | { "label": "6", "x": 6, "y": 0 }, | ||
| 398 | { "label": "7", "x": 7, "y": 0 }, | ||
| 399 | { "label": "8", "x": 8, "y": 0 }, | ||
| 400 | { "label": "9", "x": 9, "y": 0 }, | ||
| 401 | { "label": "0", "x": 10, "y": 0 }, | ||
| 402 | { "label": "-", "x": 11, "y": 0 }, | ||
| 403 | { "label": "=", "x": 12, "y": 0 }, | ||
| 404 | { "label": "Backspace", "x": 13, "y": 0, "w": 2 }, | ||
| 405 | { "label": "Encode", "x": 15, "y": 0 }, | ||
| 406 | |||
| 407 | { "label": "Tab", "x": 0, "y": 1, "w": 1.5 }, | ||
| 408 | { "label": "Q", "x": 1.5, "y": 1 }, | ||
| 409 | { "label": "W", "x": 2.5, "y": 1 }, | ||
| 410 | { "label": "E", "x": 3.5, "y": 1 }, | ||
| 411 | { "label": "R", "x": 4.5, "y": 1 }, | ||
| 412 | { "label": "T", "x": 5.5, "y": 1 }, | ||
| 413 | { "label": "Y", "x": 6.5, "y": 1 }, | ||
| 414 | { "label": "U", "x": 7.5, "y": 1 }, | ||
| 415 | { "label": "I", "x": 8.5, "y": 1 }, | ||
| 416 | { "label": "O", "x": 9.5, "y": 1 }, | ||
| 417 | { "label": "P", "x": 10.5, "y": 1 }, | ||
| 418 | { "label": "[", "x": 11.5, "y": 1 }, | ||
| 419 | { "label": "]", "x": 12.5, "y": 1 }, | ||
| 420 | { "label": "\\", "x": 13.5, "y": 1, "w": 1.5 }, | ||
| 421 | { "label": "Delete", "x": 15, "y": 1 }, | ||
| 422 | |||
| 423 | { "label": "Caps Lock", "x": 0, "y": 2, "w": 1.75 }, | ||
| 424 | { "label": "A", "x": 1.75, "y": 2 }, | ||
| 425 | { "label": "S", "x": 2.75, "y": 2 }, | ||
| 426 | { "label": "D", "x": 3.75, "y": 2 }, | ||
| 427 | { "label": "F", "x": 4.75, "y": 2 }, | ||
| 428 | { "label": "G", "x": 5.75, "y": 2 }, | ||
| 429 | { "label": "H", "x": 6.75, "y": 2 }, | ||
| 430 | { "label": "J", "x": 7.75, "y": 2 }, | ||
| 431 | { "label": "K", "x": 8.75, "y": 2 }, | ||
| 432 | { "label": "L", "x": 9.75, "y": 2 }, | ||
| 433 | { "label": ";", "x": 10.75, "y": 2 }, | ||
| 434 | { "label": "'", "x": 11.75, "y": 2 }, | ||
| 435 | { "label": "Enter", "x": 12.75, "y": 2, "w": 2.25 }, | ||
| 436 | { "label": "PageUp", "x": 15, "y": 2 }, | ||
| 437 | |||
| 438 | { "label": "Shift", "x": 0, "y": 3, "w": 2.25 }, | ||
| 439 | { "label": "Z", "x": 2.25, "y": 3 }, | ||
| 440 | { "label": "X", "x": 3.25, "y": 3 }, | ||
| 441 | { "label": "C", "x": 4.25, "y": 3 }, | ||
| 442 | { "label": "V", "x": 5.25, "y": 3 }, | ||
| 443 | { "label": "B", "x": 6.25, "y": 3 }, | ||
| 444 | { "label": "N", "x": 7.25, "y": 3 }, | ||
| 445 | { "label": "M", "x": 8.25, "y": 3 }, | ||
| 446 | { "label": ",", "x": 9.25, "y": 3 }, | ||
| 447 | { "label": ".", "x": 10.25, "y": 3 }, | ||
| 448 | { "label": "/", "x": 11.25, "y": 3 }, | ||
| 449 | { "label": "Shift", "x": 12.25, "y": 3, "w": 1.75 }, | ||
| 450 | { "label": "\u2191", "x": 14, "y": 3 }, | ||
| 451 | { "label": "End", "x": 15, "y": 3 }, | ||
| 452 | |||
| 453 | { "label": "Ctrl", "x": 0, "y": 4, "w": 1.25 }, | ||
| 454 | { "label": "Win", "x": 1.25, "y": 4, "w": 1.25 }, | ||
| 455 | { "label": "Alt", "x": 2.5, "y": 4, "w": 1.25 }, | ||
| 456 | { "x": 3.75, "y": 4, "w": 2.25 }, | ||
| 457 | { "x": 6, "y": 4, "w": 1.25 }, | ||
| 458 | { "x": 7.25, "y": 4, "w": 2.75 }, | ||
| 459 | { "label": "Alt", "x": 10, "y": 4, "w": 1.25 }, | ||
| 460 | { "label": "Fn", "x": 11.25, "y": 4, "w": 1.25 }, | ||
| 461 | { "label": "\u2190", "x": 13, "y": 4 }, | ||
| 462 | { "label": "\u2193", "x": 14, "y": 4 }, | ||
| 463 | { "label": "\u2192", "x": 15, "y": 4 } | ||
| 464 | ] | ||
| 465 | } | ||
| 466 | } | ||
| 467 | } | ||
diff --git a/keyboards/meletrix/zoom65/keymaps/65_ansi/keymap.c b/keyboards/meletrix/zoom65/keymaps/65_ansi/keymap.c new file mode 100644 index 000000000..07d58e9d2 --- /dev/null +++ b/keyboards/meletrix/zoom65/keymaps/65_ansi/keymap.c | |||
| @@ -0,0 +1,34 @@ | |||
| 1 | /* Copyright 2021 meletrix | ||
| 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 QMK_KEYBOARD_H | ||
| 18 | |||
| 19 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 20 | [0] = LAYOUT_65_ansi_blocker( | ||
| 21 | 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_MUTE, | ||
| 22 | 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, | ||
| 23 | KC_CAPS, 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, | ||
| 24 | 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_END, | ||
| 25 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_LEFT, KC_DOWN, KC_RGHT | ||
| 26 | ), | ||
| 27 | [1] = LAYOUT_65_ansi_blocker( | ||
| 28 | 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_MPLY, | ||
| 29 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 30 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 31 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RESET, | ||
| 32 | _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 33 | ), | ||
| 34 | }; | ||
diff --git a/keyboards/meletrix/zoom65/keymaps/65_ansi/readme.md b/keyboards/meletrix/zoom65/keymaps/65_ansi/readme.md new file mode 100644 index 000000000..f9dd32367 --- /dev/null +++ b/keyboards/meletrix/zoom65/keymaps/65_ansi/readme.md | |||
| @@ -0,0 +1 @@ | |||
| # The 65_ansi_blocker keymap for zoom65 | |||
diff --git a/keyboards/meletrix/zoom65/keymaps/65_iso/keymap.c b/keyboards/meletrix/zoom65/keymaps/65_iso/keymap.c new file mode 100644 index 000000000..ccdfb6fc2 --- /dev/null +++ b/keyboards/meletrix/zoom65/keymaps/65_iso/keymap.c | |||
| @@ -0,0 +1,34 @@ | |||
| 1 | /* Copyright 2021 meletrix | ||
| 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 QMK_KEYBOARD_H | ||
| 18 | |||
| 19 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 20 | [0] = LAYOUT_65_iso_blocker( | ||
| 21 | 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_MUTE, | ||
| 22 | 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_ENT, KC_DEL, | ||
| 23 | KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_BSLS, KC_PGUP, | ||
| 24 | 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_END, | ||
| 25 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_LEFT, KC_DOWN, KC_RGHT | ||
| 26 | ), | ||
| 27 | [1] = LAYOUT_65_iso_blocker( | ||
| 28 | 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_MPLY, | ||
| 29 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 30 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 31 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RESET, | ||
| 32 | _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 33 | ), | ||
| 34 | }; | ||
diff --git a/keyboards/meletrix/zoom65/keymaps/65_iso/readme.md b/keyboards/meletrix/zoom65/keymaps/65_iso/readme.md new file mode 100644 index 000000000..fd70c9505 --- /dev/null +++ b/keyboards/meletrix/zoom65/keymaps/65_iso/readme.md | |||
| @@ -0,0 +1 @@ | |||
| # The 65_iso_blocker for zoom65 | |||
diff --git a/keyboards/meletrix/zoom65/keymaps/65_split_bs/keymap.c b/keyboards/meletrix/zoom65/keymaps/65_split_bs/keymap.c new file mode 100644 index 000000000..a93098772 --- /dev/null +++ b/keyboards/meletrix/zoom65/keymaps/65_split_bs/keymap.c | |||
| @@ -0,0 +1,34 @@ | |||
| 1 | /* Copyright 2021 meletrix | ||
| 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 QMK_KEYBOARD_H | ||
| 18 | |||
| 19 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 20 | [0] = LAYOUT_65_ansi_split_bs( | ||
| 21 | 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_MUTE, | ||
| 22 | 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, | ||
| 23 | KC_CAPS, 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_BSPC, KC_PGUP, | ||
| 24 | 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_END, | ||
| 25 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_LEFT, KC_DOWN, KC_RGHT | ||
| 26 | ), | ||
| 27 | [1] = LAYOUT_65_ansi_split_bs( | ||
| 28 | 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_MPLY, | ||
| 29 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 30 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 31 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RESET, | ||
| 32 | _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 33 | ), | ||
| 34 | }; | ||
diff --git a/keyboards/meletrix/zoom65/keymaps/65_split_bs/readme.md b/keyboards/meletrix/zoom65/keymaps/65_split_bs/readme.md new file mode 100644 index 000000000..34c59ba01 --- /dev/null +++ b/keyboards/meletrix/zoom65/keymaps/65_split_bs/readme.md | |||
| @@ -0,0 +1 @@ | |||
| # The 65_split_bs keymap for zoom65 | |||
diff --git a/keyboards/meletrix/zoom65/keymaps/65_split_lshift/keymap.c b/keyboards/meletrix/zoom65/keymaps/65_split_lshift/keymap.c new file mode 100644 index 000000000..91c917951 --- /dev/null +++ b/keyboards/meletrix/zoom65/keymaps/65_split_lshift/keymap.c | |||
| @@ -0,0 +1,34 @@ | |||
| 1 | /* Copyright 2021 meletrix | ||
| 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 QMK_KEYBOARD_H | ||
| 18 | |||
| 19 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 20 | [0] = LAYOUT_65_ansi_split_lshift( | ||
| 21 | 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_MUTE, | ||
| 22 | 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, | ||
| 23 | KC_CAPS, 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, | ||
| 24 | KC_LSFT, 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_END, | ||
| 25 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_LEFT, KC_DOWN, KC_RGHT | ||
| 26 | ), | ||
| 27 | [1] = LAYOUT_65_ansi_split_lshift( | ||
| 28 | 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_MPLY, | ||
| 29 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 30 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 31 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RESET, | ||
| 32 | _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 33 | ), | ||
| 34 | }; | ||
diff --git a/keyboards/meletrix/zoom65/keymaps/65_split_lshift/readme.md b/keyboards/meletrix/zoom65/keymaps/65_split_lshift/readme.md new file mode 100644 index 000000000..e56989b24 --- /dev/null +++ b/keyboards/meletrix/zoom65/keymaps/65_split_lshift/readme.md | |||
| @@ -0,0 +1 @@ | |||
| # The 65_split_lshift keymap for zoom65 | |||
diff --git a/keyboards/meletrix/zoom65/keymaps/65_split_space/keymap.c b/keyboards/meletrix/zoom65/keymaps/65_split_space/keymap.c new file mode 100644 index 000000000..b63aff9a9 --- /dev/null +++ b/keyboards/meletrix/zoom65/keymaps/65_split_space/keymap.c | |||
| @@ -0,0 +1,34 @@ | |||
| 1 | /* Copyright 2021 meletrix | ||
| 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 QMK_KEYBOARD_H | ||
| 18 | |||
| 19 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 20 | [0] = LAYOUT_65_split_space( | ||
| 21 | 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_MUTE, | ||
| 22 | 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, | ||
| 23 | KC_CAPS, 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, | ||
| 24 | 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_END, | ||
| 25 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_SPC, KC_SPC, KC_RALT, MO(1), KC_LEFT, KC_DOWN, KC_RGHT | ||
| 26 | ), | ||
| 27 | [1] = LAYOUT_65_split_space( | ||
| 28 | 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_MPLY, | ||
| 29 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 30 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 31 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RESET, | ||
| 32 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 33 | ), | ||
| 34 | }; | ||
diff --git a/keyboards/meletrix/zoom65/keymaps/65_split_space/readme.md b/keyboards/meletrix/zoom65/keymaps/65_split_space/readme.md new file mode 100644 index 000000000..4bd0ee67d --- /dev/null +++ b/keyboards/meletrix/zoom65/keymaps/65_split_space/readme.md | |||
| @@ -0,0 +1 @@ | |||
| # The 65_split_space keymap for zoom65 | |||
diff --git a/keyboards/meletrix/zoom65/keymaps/default/keymap.c b/keyboards/meletrix/zoom65/keymaps/default/keymap.c new file mode 100644 index 000000000..a0a62d296 --- /dev/null +++ b/keyboards/meletrix/zoom65/keymaps/default/keymap.c | |||
| @@ -0,0 +1,34 @@ | |||
| 1 | /* Copyright 2021 meletrix | ||
| 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 QMK_KEYBOARD_H | ||
| 18 | |||
| 19 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 20 | [0] = LAYOUT_all( | ||
| 21 | 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_VOLD, KC_MUTE, KC_VOLU, | ||
| 22 | 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, | ||
| 23 | KC_CAPS, 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_BSPC, KC_PGUP, | ||
| 24 | KC_LSFT, 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_END, | ||
| 25 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_SPC, KC_SPC, KC_RALT, MO(1), KC_LEFT, KC_DOWN, KC_RGHT | ||
| 26 | ), | ||
| 27 | [1] = LAYOUT_all( | ||
| 28 | 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_MPRV, KC_MPLY, KC_MNXT, | ||
| 29 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 30 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 31 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RESET, | ||
| 32 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 33 | ), | ||
| 34 | }; | ||
diff --git a/keyboards/meletrix/zoom65/keymaps/default/readme.md b/keyboards/meletrix/zoom65/keymaps/default/readme.md new file mode 100644 index 000000000..32dfecc26 --- /dev/null +++ b/keyboards/meletrix/zoom65/keymaps/default/readme.md | |||
| @@ -0,0 +1 @@ | |||
| # The default keymap for zoom65 | |||
diff --git a/keyboards/meletrix/zoom65/keymaps/via/keymap.c b/keyboards/meletrix/zoom65/keymaps/via/keymap.c new file mode 100644 index 000000000..f70382290 --- /dev/null +++ b/keyboards/meletrix/zoom65/keymaps/via/keymap.c | |||
| @@ -0,0 +1,48 @@ | |||
| 1 | /* Copyright 2021 meletrix | ||
| 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 QMK_KEYBOARD_H | ||
| 18 | |||
| 19 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 20 | [0] = LAYOUT_all( | ||
| 21 | 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_VOLD, KC_MUTE, KC_VOLU, | ||
| 22 | 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, | ||
| 23 | KC_CAPS, 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_BSPC, KC_PGUP, | ||
| 24 | KC_LSFT, 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_END, | ||
| 25 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_SPC, KC_SPC, KC_RALT, MO(1), KC_LEFT, KC_DOWN, KC_RGHT | ||
| 26 | ), | ||
| 27 | [1] = LAYOUT_all( | ||
| 28 | 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_MPRV, KC_MPLY, KC_MNXT, | ||
| 29 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 30 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 31 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RESET, | ||
| 32 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 33 | ), | ||
| 34 | [2] = LAYOUT_all( | ||
| 35 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 36 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 37 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 38 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 39 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 40 | ), | ||
| 41 | [3] = LAYOUT_all( | ||
| 42 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 43 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 44 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 45 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 46 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 47 | ), | ||
| 48 | }; | ||
diff --git a/keyboards/meletrix/zoom65/keymaps/via/readme.md b/keyboards/meletrix/zoom65/keymaps/via/readme.md new file mode 100644 index 000000000..5bc43e82b --- /dev/null +++ b/keyboards/meletrix/zoom65/keymaps/via/readme.md | |||
| @@ -0,0 +1 @@ | |||
| # The via keymap for zoom65 | |||
diff --git a/keyboards/meletrix/zoom65/keymaps/via/rules.mk b/keyboards/meletrix/zoom65/keymaps/via/rules.mk new file mode 100644 index 000000000..43061db1d --- /dev/null +++ b/keyboards/meletrix/zoom65/keymaps/via/rules.mk | |||
| @@ -0,0 +1,2 @@ | |||
| 1 | VIA_ENABLE = yes | ||
| 2 | LTO_ENABLE = yes \ No newline at end of file | ||
diff --git a/keyboards/meletrix/zoom65/readme.md b/keyboards/meletrix/zoom65/readme.md new file mode 100644 index 000000000..dc56f6994 --- /dev/null +++ b/keyboards/meletrix/zoom65/readme.md | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | # zoom65 | ||
| 2 | |||
| 3 |  | ||
| 4 | |||
| 5 | Meletrix's first mass-produced mechanical keyboard. | ||
| 6 | More Info at [zoom](https://zoom65.com/). | ||
| 7 | | ||
| 8 | * Keyboard Maintainer: [spbgzh](https://github.com/spbgzh) | ||
| 9 | * Hardware Supported: zoom65 Standard | ||
| 10 | * Hardware Availability: [zoom](https://zoom65.com/) | ||
| 11 | | ||
| 12 | Make example for this keyboard (after setting up your build environment): | ||
| 13 | |||
| 14 | make meletrix/zoom65:default | ||
| 15 | |||
| 16 | Flashing example for this keyboard: | ||
| 17 | |||
| 18 | make meletrix/zoom65:default:flash | ||
| 19 | |||
| 20 | To reset the board into bootloader mode, do one of the following: | ||
| 21 | |||
| 22 | * Tap the Reset switch mounted on the PCB | ||
| 23 | * In the case of the default keymap, use the key combination Fn + End | ||
| 24 | * Hold the Esc key while connecting the USB cable (also erases persistent settings) | ||
| 25 | |||
| 26 | 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/meletrix/zoom65/rules.mk b/keyboards/meletrix/zoom65/rules.mk new file mode 100644 index 000000000..b481714b7 --- /dev/null +++ b/keyboards/meletrix/zoom65/rules.mk | |||
| @@ -0,0 +1,24 @@ | |||
| 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 = yes # 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 | ENCODER_ENABLE = yes # Enable Encoder | ||
| 23 | |||
| 24 | LAYOUT = 65_ansi_blocker 65_iso_blocker | ||
diff --git a/keyboards/meletrix/zoom65/zoom65.c b/keyboards/meletrix/zoom65/zoom65.c new file mode 100644 index 000000000..f69ed547e --- /dev/null +++ b/keyboards/meletrix/zoom65/zoom65.c | |||
| @@ -0,0 +1,66 @@ | |||
| 1 | /* Copyright 2021 meletrix | ||
| 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 "zoom65.h" | ||
| 18 | |||
| 19 | #ifdef VIA_ENABLE | ||
| 20 | static uint8_t encoder_state[ENCODERS] = {0}; | ||
| 21 | static keypos_t encoder_cw[ENCODERS] = ENCODERS_CW_KEY; | ||
| 22 | static keypos_t encoder_ccw[ENCODERS] = ENCODERS_CCW_KEY; | ||
| 23 | |||
| 24 | void encoder_action_unregister(void) | ||
| 25 | { | ||
| 26 | for (int index = 0; index < ENCODERS; ++index) | ||
| 27 | { | ||
| 28 | if (encoder_state[index]) | ||
| 29 | { | ||
| 30 | keyevent_t encoder_event = (keyevent_t){ | ||
| 31 | .key = encoder_state[index] >> 1 ? encoder_cw[index] : encoder_ccw[index], | ||
| 32 | .pressed = false, | ||
| 33 | .time = (timer_read() | 1)}; | ||
| 34 | encoder_state[index] = 0; | ||
| 35 | action_exec(encoder_event); | ||
| 36 | } | ||
| 37 | } | ||
| 38 | } | ||
| 39 | void encoder_action_register(uint8_t index, bool clockwise) | ||
| 40 | { | ||
| 41 | keyevent_t encoder_event = (keyevent_t){ | ||
| 42 | .key = clockwise ? encoder_cw[index] : encoder_ccw[index], | ||
| 43 | .pressed = true, | ||
| 44 | .time = (timer_read() | 1)}; | ||
| 45 | encoder_state[index] = (clockwise ^ 1) | (clockwise << 1); | ||
| 46 | action_exec(encoder_event); | ||
| 47 | } | ||
| 48 | |||
| 49 | void matrix_scan_kb(void) | ||
| 50 | { | ||
| 51 | encoder_action_unregister(); | ||
| 52 | matrix_scan_user(); | ||
| 53 | } | ||
| 54 | |||
| 55 | bool encoder_update_kb(uint8_t index, bool clockwise) | ||
| 56 | { | ||
| 57 | encoder_action_register(index, clockwise); | ||
| 58 | return true; | ||
| 59 | }; | ||
| 60 | #else | ||
| 61 | bool encoder_update_kb(uint8_t index, bool clockwise) { | ||
| 62 | if (!encoder_update_user(index, clockwise)) { return false; } | ||
| 63 | tap_code_delay(clockwise ? KC_VOLU : KC_VOLD, 10); | ||
| 64 | return true; | ||
| 65 | } | ||
| 66 | #endif | ||
diff --git a/keyboards/meletrix/zoom65/zoom65.h b/keyboards/meletrix/zoom65/zoom65.h new file mode 100644 index 000000000..400fdcbf3 --- /dev/null +++ b/keyboards/meletrix/zoom65/zoom65.h | |||
| @@ -0,0 +1,187 @@ | |||
| 1 | /* Copyright 2021 meletrix | ||
| 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 | |||
| 22 | /* Standard Arrangement | ||
| 23 | * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐ | ||
| 24 | * │00 │01 │02 │03 │04 │05 │06 │07 │08 │09 │0a │0b │0c │0d │2d │ ◯ ISO | ||
| 25 | * ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┼───┐ ┌─────┐ | ||
| 26 | * │10 │11 │12 │13 │14 │15 │16 │17 │18 │19 │1a │1b │1c │1d │1e │ │1d │ | ||
| 27 | * ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┼───┤ ┌──┴┐ │ | ||
| 28 | * │20 │21 │22 │23 │24 │25 │26 │27 │28 │29 │2a │2b │2c │2e │ │2c │ │ | ||
| 29 | * ├────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┼───┤ └───┴────┘ | ||
| 30 | * │30 │31 │32 │33 │34 │35 │36 │37 │38 │39 │3a │3b │3c │3d │3e │ | ||
| 31 | * ├────┼───┴┬──┴─┬─┴───┴──┬┴───┼───┴───┴──┬┴───┼───┴┬─┬───┼───┼───┤ | ||
| 32 | * │40 │41 │42 │44 │46 │48 │4a │4b │ │4c │4d │4e │ | ||
| 33 | * └────┴────┴────┴────────┴────┴──────────┴────┴────┘ └───┴───┴───┘ | ||
| 34 | */ | ||
| 35 | #define LAYOUT_all( \ | ||
| 36 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K43, K0E, K45, \ | ||
| 37 | K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E, \ | ||
| 38 | K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D, K2E, \ | ||
| 39 | K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E, \ | ||
| 40 | K40, K41, K42, K44, K46, K48, K4A, K4B, K4C, K4D, K4E \ | ||
| 41 | ) { \ | ||
| 42 | { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E }, \ | ||
| 43 | { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E }, \ | ||
| 44 | { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D, K2E }, \ | ||
| 45 | { K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E }, \ | ||
| 46 | { K40, K41, K42, K43, K44, K45, K46, KC_NO, K48, KC_NO, K4A, K4B, K4C, K4D, K4E }, \ | ||
| 47 | } | ||
| 48 | |||
| 49 | |||
| 50 | /* LAYOUT_65_ansi_blocker | ||
| 51 | * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐ | ||
| 52 | * │00 │01 │02 │03 │04 │05 │06 │07 │08 │09 │0a │0b │0c │0d │ ◯ | ||
| 53 | * ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┼───┐ | ||
| 54 | * │10 │11 │12 │13 │14 │15 │16 │17 │18 │19 │1a │1b │1c │1d │1e │ | ||
| 55 | * ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┼───┤ | ||
| 56 | * │20 │21 │22 │23 │24 │25 │26 │27 │28 │29 │2a │2b │2c │2e │ | ||
| 57 | * ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┼───┤ | ||
| 58 | * │30 │32 │33 │34 │35 │36 │37 │38 │39 │3a │3b │3c │3d │3e │ | ||
| 59 | * ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬─┬───┼───┼───┤ | ||
| 60 | * │40 │41 │42 │46 │4a │4b │ │4c │4d │4e │ | ||
| 61 | * └────┴────┴────┴────────────────────────┴────┴────┘ └───┴───┴───┘ | ||
| 62 | */ | ||
| 63 | #define LAYOUT_65_ansi_blocker( \ | ||
| 64 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E, \ | ||
| 65 | K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E, \ | ||
| 66 | K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2E, \ | ||
| 67 | K30, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E, \ | ||
| 68 | K40, K41, K42, K46, K4A, K4B, K4C, K4D, K4E \ | ||
| 69 | ) { \ | ||
| 70 | { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E }, \ | ||
| 71 | { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E }, \ | ||
| 72 | { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, KC_NO, K2E }, \ | ||
| 73 | { K30, KC_NO, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E }, \ | ||
| 74 | { K40, K41, K42, KC_NO, KC_NO, KC_NO, K46, KC_NO, KC_NO, KC_NO, K4A, K4B, K4C, K4D, K4E }, \ | ||
| 75 | } | ||
| 76 | |||
| 77 | |||
| 78 | /* LAYOUT_65_iso_blocker | ||
| 79 | * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐ | ||
| 80 | * │00 │01 │02 │03 │04 │05 │06 │07 │08 │09 │0a │0b │0c │0d │ ◯ | ||
| 81 | * ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┼───┐ | ||
| 82 | * │10 │11 │12 │13 │14 │15 │16 │17 │18 │19 │1a │1b │1c │1d │1e │ | ||
| 83 | * ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ ├───┤ | ||
| 84 | * │20 │21 │22 │23 │24 │25 │26 │27 │28 │29 │2a │2b │2c │ │2e │ | ||
| 85 | * ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┴┬───┼───┤ | ||
| 86 | * │30 │32 │33 │34 │35 │36 │37 │38 │39 │3a │3b │3c │3d │3e │ | ||
| 87 | * ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬─┬───┼───┼───┤ | ||
| 88 | * │40 │41 │42 │46 │4a │4b │ │4c │4d │4e │ | ||
| 89 | * └────┴────┴────┴────────────────────────┴────┴────┘ └───┴───┴───┘ | ||
| 90 | */ | ||
| 91 | #define LAYOUT_65_iso_blocker( \ | ||
| 92 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E, \ | ||
| 93 | K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E, \ | ||
| 94 | K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2E, \ | ||
| 95 | K30, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E, \ | ||
| 96 | K40, K41, K42, K46, K4A, K4B, K4C, K4D, K4E \ | ||
| 97 | ) { \ | ||
| 98 | { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E }, \ | ||
| 99 | { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E }, \ | ||
| 100 | { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, KC_NO, K2E }, \ | ||
| 101 | { K30, KC_NO, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E }, \ | ||
| 102 | { K40, K41, K42, KC_NO, KC_NO, KC_NO, K46, KC_NO, KC_NO, KC_NO, K4A, K4B, K4C, K4D, K4E }, \ | ||
| 103 | } | ||
| 104 | |||
| 105 | |||
| 106 | /* LAYOUT_65_ansi_split_bs | ||
| 107 | * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐ | ||
| 108 | * │00 │01 │02 │03 │04 │05 │06 │07 │08 │09 │0a │0b │0c │0d │2d │ ◯ | ||
| 109 | * ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┼───┐ | ||
| 110 | * │10 │11 │12 │13 │14 │15 │16 │17 │18 │19 │1a │1b │1c │1d │1e │ | ||
| 111 | * ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┼───┤ | ||
| 112 | * │20 │21 │22 │23 │24 │25 │26 │27 │28 │29 │2a │2b │2c │2e │ | ||
| 113 | * ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┼───┤ | ||
| 114 | * │30 │32 │33 │34 │35 │36 │37 │38 │39 │3a │3b │3c │3d │3e │ | ||
| 115 | * ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬─┬───┼───┼───┤ | ||
| 116 | * │40 │41 │42 │46 │4a │4b │ │4c │4d │4e │ | ||
| 117 | * └────┴────┴────┴────────────────────────┴────┴────┘ └───┴───┴───┘ | ||
| 118 | */ | ||
| 119 | #define LAYOUT_65_ansi_split_bs( \ | ||
| 120 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E, \ | ||
| 121 | K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E, \ | ||
| 122 | K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D, K2E, \ | ||
| 123 | K30, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E, \ | ||
| 124 | K40, K41, K42, K46, K4A, K4B, K4C, K4D, K4E \ | ||
| 125 | ) { \ | ||
| 126 | { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E }, \ | ||
| 127 | { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E }, \ | ||
| 128 | { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D, K2E }, \ | ||
| 129 | { K30, KC_NO, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E }, \ | ||
| 130 | { K40, K41, K42, KC_NO, KC_NO, KC_NO, K46, KC_NO, KC_NO, KC_NO, K4A, K4B, K4C, K4D, K4E }, \ | ||
| 131 | } | ||
| 132 | |||
| 133 | |||
| 134 | /* LAYOUT_65_ansi_split_lshift | ||
| 135 | * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐ | ||
| 136 | * │00 │01 │02 │03 │04 │05 │06 │07 │08 │09 │0a │0b │0c │0d │ ◯ | ||
| 137 | * ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┼───┐ | ||
| 138 | * │10 │11 │12 │13 │14 │15 │16 │17 │18 │19 │1a │1b │1c │1d │1e │ | ||
| 139 | * ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┼───┤ | ||
| 140 | * │20 │21 │22 │23 │24 │25 │26 │27 │28 │29 │2a │2b │2c │2e │ | ||
| 141 | * ├────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┼───┤ | ||
| 142 | * │30 │31 │32 │33 │34 │35 │36 │37 │38 │39 │3a │3b │3c │3d │3e │ | ||
| 143 | * ├────┼───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬─┬───┼───┼───┤ | ||
| 144 | * │40 │41 │42 │46 │4a │4b │ │4c │4d │4e │ | ||
| 145 | * └────┴────┴────┴────────────────────────┴────┴────┘ └───┴───┴───┘ | ||
| 146 | */ | ||
| 147 | #define LAYOUT_65_ansi_split_lshift( \ | ||
| 148 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E, \ | ||
| 149 | K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E, \ | ||
| 150 | K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2E, \ | ||
| 151 | K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E, \ | ||
| 152 | K40, K41, K42, K46, K4A, K4B, K4C, K4D, K4E \ | ||
| 153 | ) { \ | ||
| 154 | { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E }, \ | ||
| 155 | { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E }, \ | ||
| 156 | { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, KC_NO, K2E }, \ | ||
| 157 | { K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E }, \ | ||
| 158 | { K40, K41, K42, KC_NO, KC_NO, KC_NO, K46, KC_NO, KC_NO, KC_NO, K4A, K4B, K4C, K4D, K4E }, \ | ||
| 159 | } | ||
| 160 | |||
| 161 | |||
| 162 | /* LAYOUT_65_split_space | ||
| 163 | * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐ | ||
| 164 | * │00 │01 │02 │03 │04 │05 │06 │07 │08 │09 │0a │0b │0c │0d │ ◯ | ||
| 165 | * ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┼───┐ | ||
| 166 | * │10 │11 │12 │13 │14 │15 │16 │17 │18 │19 │1a │1b │1c │1d │1e │ | ||
| 167 | * ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┼───┤ | ||
| 168 | * │20 │21 │22 │23 │24 │25 │26 │27 │28 │29 │2a │2b │2c │2e │ | ||
| 169 | * ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┼───┤ | ||
| 170 | * │30 │32 │33 │34 │35 │36 │37 │38 │39 │3a │3b │3c │3d │3e │ | ||
| 171 | * ├────┬───┴┬──┴─┬─┴───┴──┬┴───┼───┴───┴──┬┴───┼───┴┬─┬───┼───┼───┤ | ||
| 172 | * │40 │41 │42 │44 │46 │48 │4a │4b │ │4c │4d │4e │ | ||
| 173 | * └────┴────┴────┴────────┴────┴──────────┴────┴────┘ └───┴───┴───┘ | ||
| 174 | */ | ||
| 175 | #define LAYOUT_65_split_space( \ | ||
| 176 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E, \ | ||
| 177 | K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E, \ | ||
| 178 | K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2E, \ | ||
| 179 | K30, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E, \ | ||
| 180 | K40, K41, K42, K44, K46, K48, K4A, K4B, K4C, K4D, K4E \ | ||
| 181 | ) { \ | ||
| 182 | { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E }, \ | ||
| 183 | { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E }, \ | ||
| 184 | { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, KC_NO, K2E }, \ | ||
| 185 | { K30, KC_NO, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E }, \ | ||
| 186 | { K40, K41, K42, KC_NO, K44, KC_NO, K46, KC_NO, K48, KC_NO, K4A, K4B, K4C, K4D, K4E }, \ | ||
| 187 | } | ||
