diff options
| author | fauxpark <fauxpark@gmail.com> | 2019-05-13 04:22:16 +1000 |
|---|---|---|
| committer | MechMerlin <30334081+mechmerlin@users.noreply.github.com> | 2019-05-12 11:22:16 -0700 |
| commit | 8e3cbe030c10090301ae94427cf0e6cf31ef31d9 (patch) | |
| tree | 89cf41f7997a277ae6bb521bd12819639d6fc4a8 | |
| parent | 7e1d28673ff4c984be889ca1b67a45ca6d3a5065 (diff) | |
| download | qmk_firmware-8e3cbe030c10090301ae94427cf0e6cf31ef31d9.tar.gz qmk_firmware-8e3cbe030c10090301ae94427cf0e6cf31ef31d9.zip | |
Add Wasdat controller (#5855)
* Add Wasdat controller
* Add reset instructions
* Clarify ANSI & ISO support
| -rw-r--r-- | keyboards/wasdat/config.h | 256 | ||||
| -rw-r--r-- | keyboards/wasdat/info.json | 459 | ||||
| -rw-r--r-- | keyboards/wasdat/keymaps/default/keymap.c | 44 | ||||
| -rw-r--r-- | keyboards/wasdat/keymaps/default/readme.md | 1 | ||||
| -rw-r--r-- | keyboards/wasdat/keymaps/default_iso/keymap.c | 44 | ||||
| -rw-r--r-- | keyboards/wasdat/keymaps/default_iso/readme.md | 1 | ||||
| -rw-r--r-- | keyboards/wasdat/matrix.c | 484 | ||||
| -rw-r--r-- | keyboards/wasdat/readme.md | 21 | ||||
| -rw-r--r-- | keyboards/wasdat/rules.mk | 84 | ||||
| -rw-r--r-- | keyboards/wasdat/wasdat.c | 58 | ||||
| -rw-r--r-- | keyboards/wasdat/wasdat.h | 104 |
11 files changed, 1556 insertions, 0 deletions
diff --git a/keyboards/wasdat/config.h b/keyboards/wasdat/config.h new file mode 100644 index 000000000..73dcdc536 --- /dev/null +++ b/keyboards/wasdat/config.h | |||
| @@ -0,0 +1,256 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2019 Maarten Dekkers <maartenwut@gmail.com> | ||
| 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 0xFEED | ||
| 24 | #define PRODUCT_ID 0x0000 | ||
| 25 | #define DEVICE_VER 0x0001 | ||
| 26 | #define MANUFACTURER Maartenwut | ||
| 27 | #define PRODUCT Wasdat | ||
| 28 | #define DESCRIPTION Custom controller for the WASD v2 TKL and 104 | ||
| 29 | |||
| 30 | /* key matrix size */ | ||
| 31 | #define MATRIX_ROWS 8 | ||
| 32 | #define MATRIX_COLS 16 | ||
| 33 | |||
| 34 | /* | ||
| 35 | * Keyboard Matrix Assignments | ||
| 36 | * | ||
| 37 | * Change this to how you wired your keyboard | ||
| 38 | * COLS: AVR pins used for columns, left to right | ||
| 39 | * ROWS: AVR pins used for rows, top to bottom | ||
| 40 | * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) | ||
| 41 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | ||
| 42 | * | ||
| 43 | */ | ||
| 44 | #define MATRIX_ROW_PINS { D6, D4, F6, F7, F4, F5, F0, F1 } | ||
| 45 | #define MATRIX_COL_PINS { } | ||
| 46 | #define UNUSED_PINS | ||
| 47 | |||
| 48 | /* COL2ROW, ROW2COL*/ | ||
| 49 | #define DIODE_DIRECTION ROW2COL | ||
| 50 | |||
| 51 | // For QMK DFU | ||
| 52 | #define QMK_ESC_OUTPUT D6 | ||
| 53 | #define QMK_ESC_INPUT D7 | ||
| 54 | #define QMK_LED B0 | ||
| 55 | |||
| 56 | /* | ||
| 57 | * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN. | ||
| 58 | */ | ||
| 59 | //#define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6 | ||
| 60 | |||
| 61 | // #define BACKLIGHT_PIN B7 | ||
| 62 | // #define BACKLIGHT_BREATHING | ||
| 63 | // #define BACKLIGHT_LEVELS 3 | ||
| 64 | |||
| 65 | // #define RGB_DI_PIN E2 | ||
| 66 | // #ifdef RGB_DI_PIN | ||
| 67 | // #define RGBLED_NUM 16 | ||
| 68 | // #define RGBLIGHT_HUE_STEP 8 | ||
| 69 | // #define RGBLIGHT_SAT_STEP 8 | ||
| 70 | // #define RGBLIGHT_VAL_STEP 8 | ||
| 71 | // #define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */ | ||
| 72 | // #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */ | ||
| 73 | // /*== all animations enable ==*/ | ||
| 74 | // #define RGBLIGHT_ANIMATIONS | ||
| 75 | // /*== or choose animations ==*/ | ||
| 76 | // #define RGBLIGHT_EFFECT_BREATHING | ||
| 77 | // #define RGBLIGHT_EFFECT_RAINBOW_MOOD | ||
| 78 | // #define RGBLIGHT_EFFECT_RAINBOW_SWIRL | ||
| 79 | // #define RGBLIGHT_EFFECT_SNAKE | ||
| 80 | // #define RGBLIGHT_EFFECT_KNIGHT | ||
| 81 | // #define RGBLIGHT_EFFECT_CHRISTMAS | ||
| 82 | // #define RGBLIGHT_EFFECT_STATIC_GRADIENT | ||
| 83 | // #define RGBLIGHT_EFFECT_RGB_TEST | ||
| 84 | // #define RGBLIGHT_EFFECT_ALTERNATING | ||
| 85 | // /*== customize breathing effect ==*/ | ||
| 86 | // /*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/ | ||
| 87 | // #define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64 | ||
| 88 | // /*==== use exp() and sin() ====*/ | ||
| 89 | // #define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7 | ||
| 90 | // #define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255 | ||
| 91 | // #endif | ||
| 92 | |||
| 93 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 94 | #define DEBOUNCING_DELAY 5 | ||
| 95 | |||
| 96 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | ||
| 97 | //#define MATRIX_HAS_GHOST | ||
| 98 | |||
| 99 | /* number of backlight levels */ | ||
| 100 | |||
| 101 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 102 | #define LOCKING_SUPPORT_ENABLE | ||
| 103 | /* Locking resynchronize hack */ | ||
| 104 | #define LOCKING_RESYNC_ENABLE | ||
| 105 | |||
| 106 | /* If defined, GRAVE_ESC will always act as ESC when CTRL is held. | ||
| 107 | * This is userful for the Windows task manager shortcut (ctrl+shift+esc). | ||
| 108 | */ | ||
| 109 | // #define GRAVE_ESC_CTRL_OVERRIDE | ||
| 110 | |||
| 111 | /* | ||
| 112 | * Force NKRO | ||
| 113 | * | ||
| 114 | * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved | ||
| 115 | * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the | ||
| 116 | * makefile for this to work.) | ||
| 117 | * | ||
| 118 | * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N) | ||
| 119 | * until the next keyboard reset. | ||
| 120 | * | ||
| 121 | * NKRO may prevent your keystrokes from being detected in the BIOS, but it is | ||
| 122 | * fully operational during normal computer usage. | ||
| 123 | * | ||
| 124 | * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N) | ||
| 125 | * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by | ||
| 126 | * bootmagic, NKRO mode will always be enabled until it is toggled again during a | ||
| 127 | * power-up. | ||
| 128 | * | ||
| 129 | */ | ||
| 130 | //#define FORCE_NKRO | ||
| 131 | |||
| 132 | /* | ||
| 133 | * Magic Key Options | ||
| 134 | * | ||
| 135 | * Magic keys are hotkey commands that allow control over firmware functions of | ||
| 136 | * the keyboard. They are best used in combination with the HID Listen program, | ||
| 137 | * found here: https://www.pjrc.com/teensy/hid_listen.html | ||
| 138 | * | ||
| 139 | * The options below allow the magic key functionality to be changed. This is | ||
| 140 | * useful if your keyboard/keypad is missing keys and you want magic key support. | ||
| 141 | * | ||
| 142 | */ | ||
| 143 | |||
| 144 | /* key combination for magic key command */ | ||
| 145 | /* defined by default; to change, uncomment and set to the combination you want */ | ||
| 146 | // #define IS_COMMAND() (get_mods() == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT))) | ||
| 147 | |||
| 148 | /* control how magic key switches layers */ | ||
| 149 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS true | ||
| 150 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS true | ||
| 151 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM false | ||
| 152 | |||
| 153 | /* override magic key keymap */ | ||
| 154 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS | ||
| 155 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS | ||
| 156 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM | ||
| 157 | //#define MAGIC_KEY_HELP H | ||
| 158 | //#define MAGIC_KEY_HELP_ALT SLASH | ||
| 159 | //#define MAGIC_KEY_DEBUG D | ||
| 160 | //#define MAGIC_KEY_DEBUG_MATRIX X | ||
| 161 | //#define MAGIC_KEY_DEBUG_KBD K | ||
| 162 | //#define MAGIC_KEY_DEBUG_MOUSE M | ||
| 163 | //#define MAGIC_KEY_VERSION V | ||
| 164 | //#define MAGIC_KEY_STATUS S | ||
| 165 | //#define MAGIC_KEY_CONSOLE C | ||
| 166 | //#define MAGIC_KEY_LAYER0 0 | ||
| 167 | //#define MAGIC_KEY_LAYER0_ALT GRAVE | ||
| 168 | //#define MAGIC_KEY_LAYER1 1 | ||
| 169 | //#define MAGIC_KEY_LAYER2 2 | ||
| 170 | //#define MAGIC_KEY_LAYER3 3 | ||
| 171 | //#define MAGIC_KEY_LAYER4 4 | ||
| 172 | //#define MAGIC_KEY_LAYER5 5 | ||
| 173 | //#define MAGIC_KEY_LAYER6 6 | ||
| 174 | //#define MAGIC_KEY_LAYER7 7 | ||
| 175 | //#define MAGIC_KEY_LAYER8 8 | ||
| 176 | //#define MAGIC_KEY_LAYER9 9 | ||
| 177 | //#define MAGIC_KEY_BOOTLOADER B | ||
| 178 | //#define MAGIC_KEY_BOOTLOADER_ALT ESC | ||
| 179 | //#define MAGIC_KEY_LOCK CAPS | ||
| 180 | //#define MAGIC_KEY_EEPROM E | ||
| 181 | //#define MAGIC_KEY_EEPROM_CLEAR BSPACE | ||
| 182 | //#define MAGIC_KEY_NKRO N | ||
| 183 | //#define MAGIC_KEY_SLEEP_LED Z | ||
| 184 | |||
| 185 | /* | ||
| 186 | * Feature disable options | ||
| 187 | * These options are also useful to firmware size reduction. | ||
| 188 | */ | ||
| 189 | |||
| 190 | /* disable debug print */ | ||
| 191 | //#define NO_DEBUG | ||
| 192 | |||
| 193 | /* disable print */ | ||
| 194 | //#define NO_PRINT | ||
| 195 | |||
| 196 | /* disable action features */ | ||
| 197 | //#define NO_ACTION_LAYER | ||
| 198 | //#define NO_ACTION_TAPPING | ||
| 199 | //#define NO_ACTION_ONESHOT | ||
| 200 | //#define NO_ACTION_MACRO | ||
| 201 | //#define NO_ACTION_FUNCTION | ||
| 202 | |||
| 203 | /* | ||
| 204 | * MIDI options | ||
| 205 | */ | ||
| 206 | |||
| 207 | /* Prevent use of disabled MIDI features in the keymap */ | ||
| 208 | //#define MIDI_ENABLE_STRICT 1 | ||
| 209 | |||
| 210 | /* enable basic MIDI features: | ||
| 211 | - MIDI notes can be sent when in Music mode is on | ||
| 212 | */ | ||
| 213 | //#define MIDI_BASIC | ||
| 214 | |||
| 215 | /* enable advanced MIDI features: | ||
| 216 | - MIDI notes can be added to the keymap | ||
| 217 | - Octave shift and transpose | ||
| 218 | - Virtual sustain, portamento, and modulation wheel | ||
| 219 | - etc. | ||
| 220 | */ | ||
| 221 | //#define MIDI_ADVANCED | ||
| 222 | |||
| 223 | /* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */ | ||
| 224 | //#define MIDI_TONE_KEYCODE_OCTAVES 1 | ||
| 225 | |||
| 226 | /* | ||
| 227 | * HD44780 LCD Display Configuration | ||
| 228 | */ | ||
| 229 | /* | ||
| 230 | #define LCD_LINES 2 //< number of visible lines of the display | ||
| 231 | #define LCD_DISP_LENGTH 16 //< visibles characters per line of the display | ||
| 232 | |||
| 233 | #define LCD_IO_MODE 1 //< 0: memory mapped mode, 1: IO port mode | ||
| 234 | |||
| 235 | #if LCD_IO_MODE | ||
| 236 | #define LCD_PORT PORTB //< port for the LCD lines | ||
| 237 | #define LCD_DATA0_PORT LCD_PORT //< port for 4bit data bit 0 | ||
| 238 | #define LCD_DATA1_PORT LCD_PORT //< port for 4bit data bit 1 | ||
| 239 | #define LCD_DATA2_PORT LCD_PORT //< port for 4bit data bit 2 | ||
| 240 | #define LCD_DATA3_PORT LCD_PORT //< port for 4bit data bit 3 | ||
| 241 | #define LCD_DATA0_PIN 4 //< pin for 4bit data bit 0 | ||
| 242 | #define LCD_DATA1_PIN 5 //< pin for 4bit data bit 1 | ||
| 243 | #define LCD_DATA2_PIN 6 //< pin for 4bit data bit 2 | ||
| 244 | #define LCD_DATA3_PIN 7 //< pin for 4bit data bit 3 | ||
| 245 | #define LCD_RS_PORT LCD_PORT //< port for RS line | ||
| 246 | #define LCD_RS_PIN 3 //< pin for RS line | ||
| 247 | #define LCD_RW_PORT LCD_PORT //< port for RW line | ||
| 248 | #define LCD_RW_PIN 2 //< pin for RW line | ||
| 249 | #define LCD_E_PORT LCD_PORT //< port for Enable line | ||
| 250 | #define LCD_E_PIN 1 //< pin for Enable line | ||
| 251 | #endif | ||
| 252 | */ | ||
| 253 | |||
| 254 | /* Bootmagic Lite key configuration */ | ||
| 255 | // #define BOOTMAGIC_LITE_ROW 0 | ||
| 256 | // #define BOOTMAGIC_LITE_COLUMN 0 | ||
diff --git a/keyboards/wasdat/info.json b/keyboards/wasdat/info.json new file mode 100644 index 000000000..8f931f46c --- /dev/null +++ b/keyboards/wasdat/info.json | |||
| @@ -0,0 +1,459 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "Wasdat", | ||
| 3 | "url": "https://maartenwut.com/product/wasdat/", | ||
| 4 | "maintainer": "Maartenwut", | ||
| 5 | "width": 22.5, | ||
| 6 | "height": 6.5, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT_fullsize_ansi": { | ||
| 9 | "layout": [ | ||
| 10 | {"label":"Esc", "x":0, "y":0}, | ||
| 11 | {"label":"F1", "x":2, "y":0}, | ||
| 12 | {"label":"F2", "x":3, "y":0}, | ||
| 13 | {"label":"F3", "x":4, "y":0}, | ||
| 14 | {"label":"F4", "x":5, "y":0}, | ||
| 15 | {"label":"F5", "x":6.5, "y":0}, | ||
| 16 | {"label":"F6", "x":7.5, "y":0}, | ||
| 17 | {"label":"F7", "x":8.5, "y":0}, | ||
| 18 | {"label":"F8", "x":9.5, "y":0}, | ||
| 19 | {"label":"F9", "x":11, "y":0}, | ||
| 20 | {"label":"F10", "x":12, "y":0}, | ||
| 21 | {"label":"F11", "x":13, "y":0}, | ||
| 22 | {"label":"F12", "x":14, "y":0}, | ||
| 23 | |||
| 24 | {"label":"PrtSc", "x":15.25, "y":0}, | ||
| 25 | {"label":"Scroll Lock", "x":16.25, "y":0}, | ||
| 26 | {"label":"Pause", "x":17.25, "y":0}, | ||
| 27 | |||
| 28 | {"label":"~", "x":0, "y":1.5}, | ||
| 29 | {"label":"1", "x":1, "y":1.5}, | ||
| 30 | {"label":"2", "x":2, "y":1.5}, | ||
| 31 | {"label":"3", "x":3, "y":1.5}, | ||
| 32 | {"label":"4", "x":4, "y":1.5}, | ||
| 33 | {"label":"5", "x":5, "y":1.5}, | ||
| 34 | {"label":"6", "x":6, "y":1.5}, | ||
| 35 | {"label":"7", "x":7, "y":1.5}, | ||
| 36 | {"label":"8", "x":8, "y":1.5}, | ||
| 37 | {"label":"9", "x":9, "y":1.5}, | ||
| 38 | {"label":"0", "x":10, "y":1.5}, | ||
| 39 | {"label":"_", "x":11, "y":1.5}, | ||
| 40 | {"label":"+", "x":12, "y":1.5}, | ||
| 41 | {"label":"Backspace", "x":13, "y":1.5, "w":2}, | ||
| 42 | |||
| 43 | {"label":"Insert", "x":15.25, "y":1.5}, | ||
| 44 | {"label":"Home", "x":16.25, "y":1.5}, | ||
| 45 | {"label":"PgUp", "x":17.25, "y":1.5}, | ||
| 46 | |||
| 47 | {"label":"Num Lock", "x":18.5, "y":1.5}, | ||
| 48 | {"label":"/", "x":19.5, "y":1.5}, | ||
| 49 | {"label":"*", "x":20.5, "y":1.5}, | ||
| 50 | {"label":"-", "x":21.5, "y":1.5}, | ||
| 51 | |||
| 52 | {"label":"Tab", "x":0, "y":2.5, "w":1.5}, | ||
| 53 | {"label":"Q", "x":1.5, "y":2.5}, | ||
| 54 | {"label":"W", "x":2.5, "y":2.5}, | ||
| 55 | {"label":"E", "x":3.5, "y":2.5}, | ||
| 56 | {"label":"R", "x":4.5, "y":2.5}, | ||
| 57 | {"label":"T", "x":5.5, "y":2.5}, | ||
| 58 | {"label":"Y", "x":6.5, "y":2.5}, | ||
| 59 | {"label":"U", "x":7.5, "y":2.5}, | ||
| 60 | {"label":"I", "x":8.5, "y":2.5}, | ||
| 61 | {"label":"O", "x":9.5, "y":2.5}, | ||
| 62 | {"label":"P", "x":10.5, "y":2.5}, | ||
| 63 | {"label":"{", "x":11.5, "y":2.5}, | ||
| 64 | {"label":"}", "x":12.5, "y":2.5}, | ||
| 65 | {"label":"|", "x":13.5, "y":2.5, "w":1.5}, | ||
| 66 | |||
| 67 | {"label":"Delete", "x":15.25, "y":2.5}, | ||
| 68 | {"label":"End", "x":16.25, "y":2.5}, | ||
| 69 | {"label":"PgDn", "x":17.25, "y":2.5}, | ||
| 70 | |||
| 71 | {"label":"7", "x":18.5, "y":2.5}, | ||
| 72 | {"label":"8", "x":19.5, "y":2.5}, | ||
| 73 | {"label":"9", "x":20.5, "y":2.5}, | ||
| 74 | {"label":"+", "x":21.5, "y":2.5, "h":2}, | ||
| 75 | |||
| 76 | {"label":"Caps Lock", "x":0, "y":3.5, "w":1.75}, | ||
| 77 | {"label":"A", "x":1.75, "y":3.5}, | ||
| 78 | {"label":"S", "x":2.75, "y":3.5}, | ||
| 79 | {"label":"D", "x":3.75, "y":3.5}, | ||
| 80 | {"label":"F", "x":4.75, "y":3.5}, | ||
| 81 | {"label":"G", "x":5.75, "y":3.5}, | ||
| 82 | {"label":"H", "x":6.75, "y":3.5}, | ||
| 83 | {"label":"J", "x":7.75, "y":3.5}, | ||
| 84 | {"label":"K", "x":8.75, "y":3.5}, | ||
| 85 | {"label":"L", "x":9.75, "y":3.5}, | ||
| 86 | {"label":":", "x":10.75, "y":3.5}, | ||
| 87 | {"label":"\"", "x":11.75, "y":3.5}, | ||
| 88 | {"label":"Enter", "x":12.75, "y":3.5, "w":2.25}, | ||
| 89 | |||
| 90 | {"label":"4", "x":18.5, "y":3.5}, | ||
| 91 | {"label":"5", "x":19.5, "y":3.5}, | ||
| 92 | {"label":"6", "x":20.5, "y":3.5}, | ||
| 93 | |||
| 94 | {"label":"Shift", "x":0, "y":4.5, "w":2.25}, | ||
| 95 | {"label":"Z", "x":2.25, "y":4.5}, | ||
| 96 | {"label":"X", "x":3.25, "y":4.5}, | ||
| 97 | {"label":"C", "x":4.25, "y":4.5}, | ||
| 98 | {"label":"V", "x":5.25, "y":4.5}, | ||
| 99 | {"label":"B", "x":6.25, "y":4.5}, | ||
| 100 | {"label":"N", "x":7.25, "y":4.5}, | ||
| 101 | {"label":"M", "x":8.25, "y":4.5}, | ||
| 102 | {"label":"<", "x":9.25, "y":4.5}, | ||
| 103 | {"label":">", "x":10.25, "y":4.5}, | ||
| 104 | {"label":"?", "x":11.25, "y":4.5}, | ||
| 105 | {"label":"Shift", "x":12.25, "y":4.5, "w":2.75}, | ||
| 106 | |||
| 107 | {"label":"\u2191", "x":16.25, "y":4.5}, | ||
| 108 | |||
| 109 | {"label":"1", "x":18.5, "y":4.5}, | ||
| 110 | {"label":"2", "x":19.5, "y":4.5}, | ||
| 111 | {"label":"3", "x":20.5, "y":4.5}, | ||
| 112 | {"label":"Enter", "x":21.5, "y":4.5, "h":2}, | ||
| 113 | |||
| 114 | {"label":"Ctrl", "x":0, "y":5.5, "w":1.25}, | ||
| 115 | {"label":"Win", "x":1.25, "y":5.5, "w":1.25}, | ||
| 116 | {"label":"Alt", "x":2.5, "y":5.5, "w":1.25}, | ||
| 117 | {"x":3.75, "y":5.5, "w":6.25}, | ||
| 118 | {"label":"Alt", "x":10, "y":5.5, "w":1.25}, | ||
| 119 | {"label":"Win", "x":11.25, "y":5.5, "w":1.25}, | ||
| 120 | {"label":"Menu", "x":12.5, "y":5.5, "w":1.25}, | ||
| 121 | {"label":"Ctrl", "x":13.75, "y":5.5, "w":1.25}, | ||
| 122 | |||
| 123 | {"label":"\u2190", "x":15.25, "y":5.5}, | ||
| 124 | {"label":"\u2193", "x":16.25, "y":5.5}, | ||
| 125 | {"label":"\u2192", "x":17.25, "y":5.5}, | ||
| 126 | |||
| 127 | {"label":"0", "x":18.5, "y":5.5, "w":2}, | ||
| 128 | {"label":".", "x":20.5, "y":5.5} | ||
| 129 | ] | ||
| 130 | }, | ||
| 131 | "LAYOUT_fullsize_iso": { | ||
| 132 | "layout": [ | ||
| 133 | {"label":"Esc", "x":0, "y":0}, | ||
| 134 | {"label":"F1", "x":2, "y":0}, | ||
| 135 | {"label":"F2", "x":3, "y":0}, | ||
| 136 | {"label":"F3", "x":4, "y":0}, | ||
| 137 | {"label":"F4", "x":5, "y":0}, | ||
| 138 | {"label":"F5", "x":6.5, "y":0}, | ||
| 139 | {"label":"F6", "x":7.5, "y":0}, | ||
| 140 | {"label":"F7", "x":8.5, "y":0}, | ||
| 141 | {"label":"F8", "x":9.5, "y":0}, | ||
| 142 | {"label":"F9", "x":11, "y":0}, | ||
| 143 | {"label":"F10", "x":12, "y":0}, | ||
| 144 | {"label":"F11", "x":13, "y":0}, | ||
| 145 | {"label":"F12", "x":14, "y":0}, | ||
| 146 | |||
| 147 | {"label":"PrtSc", "x":15.25, "y":0}, | ||
| 148 | {"label":"Scroll Lock", "x":16.25, "y":0}, | ||
| 149 | {"label":"Pause", "x":17.25, "y":0}, | ||
| 150 | |||
| 151 | {"label":"\u00ac", "x":0, "y":1.5}, | ||
| 152 | {"label":"!", "x":1, "y":1.5}, | ||
| 153 | {"label":"\"", "x":2, "y":1.5}, | ||
| 154 | {"label":"\u00a3", "x":3, "y":1.5}, | ||
| 155 | {"label":"$", "x":4, "y":1.5}, | ||
| 156 | {"label":"%", "x":5, "y":1.5}, | ||
| 157 | {"label":"^", "x":6, "y":1.5}, | ||
| 158 | {"label":"&", "x":7, "y":1.5}, | ||
| 159 | {"label":"*", "x":8, "y":1.5}, | ||
| 160 | {"label":"(", "x":9, "y":1.5}, | ||
| 161 | {"label":")", "x":10, "y":1.5}, | ||
| 162 | {"label":"_", "x":11, "y":1.5}, | ||
| 163 | {"label":"+", "x":12, "y":1.5}, | ||
| 164 | {"label":"Backspace", "x":13, "y":1.5, "w":2}, | ||
| 165 | |||
| 166 | {"label":"Insert", "x":15.25, "y":1.5}, | ||
| 167 | {"label":"Home", "x":16.25, "y":1.5}, | ||
| 168 | {"label":"PgUp", "x":17.25, "y":1.5}, | ||
| 169 | |||
| 170 | {"label":"Num Lock", "x":18.5, "y":1.5}, | ||
| 171 | {"label":"/", "x":19.5, "y":1.5}, | ||
| 172 | {"label":"*", "x":20.5, "y":1.5}, | ||
| 173 | {"label":"-", "x":21.5, "y":1.5}, | ||
| 174 | |||
| 175 | {"label":"Tab", "x":0, "y":2.5, "w":1.5}, | ||
| 176 | {"label":"Q", "x":1.5, "y":2.5}, | ||
| 177 | {"label":"W", "x":2.5, "y":2.5}, | ||
| 178 | {"label":"E", "x":3.5, "y":2.5}, | ||
| 179 | {"label":"R", "x":4.5, "y":2.5}, | ||
| 180 | {"label":"T", "x":5.5, "y":2.5}, | ||
| 181 | {"label":"Y", "x":6.5, "y":2.5}, | ||
| 182 | {"label":"U", "x":7.5, "y":2.5}, | ||
| 183 | {"label":"I", "x":8.5, "y":2.5}, | ||
| 184 | {"label":"O", "x":9.5, "y":2.5}, | ||
| 185 | {"label":"P", "x":10.5, "y":2.5}, | ||
| 186 | {"label":"{", "x":11.5, "y":2.5}, | ||
| 187 | {"label":"}", "x":12.5, "y":2.5}, | ||
| 188 | {"label":"Enter", "x":13.75, "y":2.5, "w":1.25, "h":2}, | ||
| 189 | |||
| 190 | {"label":"Delete", "x":15.25, "y":2.5}, | ||
| 191 | {"label":"End", "x":16.25, "y":2.5}, | ||
| 192 | {"label":"PgDn", "x":17.25, "y":2.5}, | ||
| 193 | |||
| 194 | {"label":"7", "x":18.5, "y":2.5}, | ||
| 195 | {"label":"8", "x":19.5, "y":2.5}, | ||
| 196 | {"label":"9", "x":20.5, "y":2.5}, | ||
| 197 | {"label":"+", "x":21.5, "y":2.5, "h":2}, | ||
| 198 | |||
| 199 | {"label":"Caps Lock", "x":0, "y":3.5, "w":1.75}, | ||
| 200 | {"label":"A", "x":1.75, "y":3.5}, | ||
| 201 | {"label":"S", "x":2.75, "y":3.5}, | ||
| 202 | {"label":"D", "x":3.75, "y":3.5}, | ||
| 203 | {"label":"F", "x":4.75, "y":3.5}, | ||
| 204 | {"label":"G", "x":5.75, "y":3.5}, | ||
| 205 | {"label":"H", "x":6.75, "y":3.5}, | ||
| 206 | {"label":"J", "x":7.75, "y":3.5}, | ||
| 207 | {"label":"K", "x":8.75, "y":3.5}, | ||
| 208 | {"label":"L", "x":9.75, "y":3.5}, | ||
| 209 | {"label":":", "x":10.75, "y":3.5}, | ||
| 210 | {"label":"@", "x":11.75, "y":3.5}, | ||
| 211 | {"label":"~", "x":12.75, "y":3.5}, | ||
| 212 | |||
| 213 | {"label":"4", "x":18.5, "y":3.5}, | ||
| 214 | {"label":"5", "x":19.5, "y":3.5}, | ||
| 215 | {"label":"6", "x":20.5, "y":3.5}, | ||
| 216 | |||
| 217 | {"label":"Shift", "x":0, "y":4.5, "w":1.25}, | ||
| 218 | {"label":"|", "x":1.25, "y":4.5}, | ||
| 219 | {"label":"Z", "x":2.25, "y":4.5}, | ||
| 220 | {"label":"X", "x":3.25, "y":4.5}, | ||
| 221 | {"label":"C", "x":4.25, "y":4.5}, | ||
| 222 | {"label":"V", "x":5.25, "y":4.5}, | ||
| 223 | {"label":"B", "x":6.25, "y":4.5}, | ||
| 224 | {"label":"N", "x":7.25, "y":4.5}, | ||
| 225 | {"label":"M", "x":8.25, "y":4.5}, | ||
| 226 | {"label":"<", "x":9.25, "y":4.5}, | ||
| 227 | {"label":">", "x":10.25, "y":4.5}, | ||
| 228 | {"label":"?", "x":11.25, "y":4.5}, | ||
| 229 | {"label":"Shift", "x":12.25, "y":4.5, "w":2.75}, | ||
| 230 | |||
| 231 | {"label":"\u2191", "x":16.25, "y":4.5}, | ||
| 232 | |||
| 233 | {"label":"1", "x":18.5, "y":4.5}, | ||
| 234 | {"label":"2", "x":19.5, "y":4.5}, | ||
| 235 | {"label":"3", "x":20.5, "y":4.5}, | ||
| 236 | {"label":"Enter", "x":21.5, "y":4.5, "h":2}, | ||
| 237 | |||
| 238 | {"label":"Ctrl", "x":0, "y":5.5, "w":1.25}, | ||
| 239 | {"label":"Win", "x":1.25, "y":5.5, "w":1.25}, | ||
| 240 | {"label":"Alt", "x":2.5, "y":5.5, "w":1.25}, | ||
| 241 | {"x":3.75, "y":5.5, "w":6.25}, | ||
| 242 | {"label":"AltGr", "x":10, "y":5.5, "w":1.25}, | ||
| 243 | {"label":"Win", "x":11.25, "y":5.5, "w":1.25}, | ||
| 244 | {"label":"Menu", "x":12.5, "y":5.5, "w":1.25}, | ||
| 245 | {"label":"Ctrl", "x":13.75, "y":5.5, "w":1.25}, | ||
| 246 | |||
| 247 | {"label":"\u2190", "x":15.25, "y":5.5}, | ||
| 248 | {"label":"\u2193", "x":16.25, "y":5.5}, | ||
| 249 | {"label":"\u2192", "x":17.25, "y":5.5}, | ||
| 250 | |||
| 251 | {"label":"0", "x":18.5, "y":5.5, "w":2}, | ||
| 252 | {"label":".", "x":20.5, "y":5.5} | ||
| 253 | ] | ||
| 254 | }, | ||
| 255 | "LAYOUT_tkl_ansi": { | ||
| 256 | "layout": [ | ||
| 257 | {"label":"Esc", "x":0, "y":0}, | ||
| 258 | {"label":"F1", "x":2, "y":0}, | ||
| 259 | {"label":"F2", "x":3, "y":0}, | ||
| 260 | {"label":"F3", "x":4, "y":0}, | ||
| 261 | {"label":"F4", "x":5, "y":0}, | ||
| 262 | {"label":"F5", "x":6.5, "y":0}, | ||
| 263 | {"label":"F6", "x":7.5, "y":0}, | ||
| 264 | {"label":"F7", "x":8.5, "y":0}, | ||
| 265 | {"label":"F8", "x":9.5, "y":0}, | ||
| 266 | {"label":"F9", "x":11, "y":0}, | ||
| 267 | {"label":"F10", "x":12, "y":0}, | ||
| 268 | {"label":"F11", "x":13, "y":0}, | ||
| 269 | {"label":"F12", "x":14, "y":0}, | ||
| 270 | |||
| 271 | {"label":"PrtSc", "x":15.25, "y":0}, | ||
| 272 | {"label":"Scroll Lock", "x":16.25, "y":0}, | ||
| 273 | {"label":"Pause", "x":17.25, "y":0}, | ||
| 274 | |||
| 275 | {"label":"~", "x":0, "y":1.5}, | ||
| 276 | {"label":"1", "x":1, "y":1.5}, | ||
| 277 | {"label":"2", "x":2, "y":1.5}, | ||
| 278 | {"label":"3", "x":3, "y":1.5}, | ||
| 279 | {"label":"4", "x":4, "y":1.5}, | ||
| 280 | {"label":"5", "x":5, "y":1.5}, | ||
| 281 | {"label":"6", "x":6, "y":1.5}, | ||
| 282 | {"label":"7", "x":7, "y":1.5}, | ||
| 283 | {"label":"8", "x":8, "y":1.5}, | ||
| 284 | {"label":"9", "x":9, "y":1.5}, | ||
| 285 | {"label":"0", "x":10, "y":1.5}, | ||
| 286 | {"label":"_", "x":11, "y":1.5}, | ||
| 287 | {"label":"+", "x":12, "y":1.5}, | ||
| 288 | {"label":"Backspace", "x":13, "y":1.5, "w":2}, | ||
| 289 | |||
| 290 | {"label":"Insert", "x":15.25, "y":1.5}, | ||
| 291 | {"label":"Home", "x":16.25, "y":1.5}, | ||
| 292 | {"label":"Page Up", "x":17.25, "y":1.5}, | ||
| 293 | |||
| 294 | {"label":"Tab", "x":0, "y":2.5, "w":1.5}, | ||
| 295 | {"label":"Q", "x":1.5, "y":2.5}, | ||
| 296 | {"label":"W", "x":2.5, "y":2.5}, | ||
| 297 | {"label":"E", "x":3.5, "y":2.5}, | ||
| 298 | {"label":"R", "x":4.5, "y":2.5}, | ||
| 299 | {"label":"T", "x":5.5, "y":2.5}, | ||
| 300 | {"label":"Y", "x":6.5, "y":2.5}, | ||
| 301 | {"label":"U", "x":7.5, "y":2.5}, | ||
| 302 | {"label":"I", "x":8.5, "y":2.5}, | ||
| 303 | {"label":"O", "x":9.5, "y":2.5}, | ||
| 304 | {"label":"P", "x":10.5, "y":2.5}, | ||
| 305 | {"label":"{", "x":11.5, "y":2.5}, | ||
| 306 | {"label":"}", "x":12.5, "y":2.5}, | ||
| 307 | {"label":"|", "x":13.5, "y":2.5, "w":1.5}, | ||
| 308 | |||
| 309 | {"label":"Delete", "x":15.25, "y":2.5}, | ||
| 310 | {"label":"End", "x":16.25, "y":2.5}, | ||
| 311 | {"label":"PgDn", "x":17.25, "y":2.5}, | ||
| 312 | |||
| 313 | {"label":"Caps Lock", "x":0, "y":3.5, "w":1.75}, | ||
| 314 | {"label":"A", "x":1.75, "y":3.5}, | ||
| 315 | {"label":"S", "x":2.75, "y":3.5}, | ||
| 316 | {"label":"D", "x":3.75, "y":3.5}, | ||
| 317 | {"label":"F", "x":4.75, "y":3.5}, | ||
| 318 | {"label":"G", "x":5.75, "y":3.5}, | ||
| 319 | {"label":"H", "x":6.75, "y":3.5}, | ||
| 320 | {"label":"J", "x":7.75, "y":3.5}, | ||
| 321 | {"label":"K", "x":8.75, "y":3.5}, | ||
| 322 | {"label":"L", "x":9.75, "y":3.5}, | ||
| 323 | {"label":":", "x":10.75, "y":3.5}, | ||
| 324 | {"label":"\"", "x":11.75, "y":3.5}, | ||
| 325 | {"label":"Enter", "x":12.75, "y":3.5, "w":2.25}, | ||
| 326 | |||
| 327 | {"label":"Shift", "x":0, "y":4.5, "w":2.25}, | ||
| 328 | {"label":"Z", "x":2.25, "y":4.5}, | ||
| 329 | {"label":"X", "x":3.25, "y":4.5}, | ||
| 330 | {"label":"C", "x":4.25, "y":4.5}, | ||
| 331 | {"label":"V", "x":5.25, "y":4.5}, | ||
| 332 | {"label":"B", "x":6.25, "y":4.5}, | ||
| 333 | {"label":"N", "x":7.25, "y":4.5}, | ||
| 334 | {"label":"M", "x":8.25, "y":4.5}, | ||
| 335 | {"label":"<", "x":9.25, "y":4.5}, | ||
| 336 | {"label":">", "x":10.25, "y":4.5}, | ||
| 337 | {"label":"?", "x":11.25, "y":4.5}, | ||
| 338 | {"label":"Shift", "x":12.25, "y":4.5, "w":2.75}, | ||
| 339 | |||
| 340 | {"label":"\u2191", "x":16.25, "y":4.5}, | ||
| 341 | |||
| 342 | {"label":"Ctrl", "x":0, "y":5.5, "w":1.25}, | ||
| 343 | {"label":"Win", "x":1.25, "y":5.5, "w":1.25}, | ||
| 344 | {"label":"Alt", "x":2.5, "y":5.5, "w":1.25}, | ||
| 345 | {"x":3.75, "y":5.5, "w":6.25}, | ||
| 346 | {"label":"Alt", "x":10, "y":5.5, "w":1.25}, | ||
| 347 | {"label":"Win", "x":11.25, "y":5.5, "w":1.25}, | ||
| 348 | {"label":"Menu", "x":12.5, "y":5.5, "w":1.25}, | ||
| 349 | {"label":"Ctrl", "x":13.75, "y":5.5, "w":1.25}, | ||
| 350 | |||
| 351 | {"label":"\u2190", "x":15.25, "y":5.5}, | ||
| 352 | {"label":"\u2193", "x":16.25, "y":5.5}, | ||
| 353 | {"label":"\u2192", "x":17.25, "y":5.5} | ||
| 354 | ] | ||
| 355 | }, | ||
| 356 | "LAYOUT_tkl_iso": { | ||
| 357 | "layout": [ | ||
| 358 | {"label":"Esc", "x":0, "y":0}, | ||
| 359 | {"label":"F1", "x":2, "y":0}, | ||
| 360 | {"label":"F2", "x":3, "y":0}, | ||
| 361 | {"label":"F3", "x":4, "y":0}, | ||
| 362 | {"label":"F4", "x":5, "y":0}, | ||
| 363 | {"label":"F5", "x":6.5, "y":0}, | ||
| 364 | {"label":"F6", "x":7.5, "y":0}, | ||
| 365 | {"label":"F7", "x":8.5, "y":0}, | ||
| 366 | {"label":"F8", "x":9.5, "y":0}, | ||
| 367 | {"label":"F9", "x":11, "y":0}, | ||
| 368 | {"label":"F10", "x":12, "y":0}, | ||
| 369 | {"label":"F11", "x":13, "y":0}, | ||
| 370 | {"label":"F12", "x":14, "y":0}, | ||
| 371 | |||
| 372 | {"label":"PrtSc", "x":15.25, "y":0}, | ||
| 373 | {"label":"Scroll Lock", "x":16.25, "y":0}, | ||
| 374 | {"label":"Pause", "x":17.25, "y":0}, | ||
| 375 | |||
| 376 | {"label":"\u00ac", "x":0, "y":1.5}, | ||
| 377 | {"label":"!", "x":1, "y":1.5}, | ||
| 378 | {"label":"\"", "x":2, "y":1.5}, | ||
| 379 | {"label":"\u00a3", "x":3, "y":1.5}, | ||
| 380 | {"label":"$", "x":4, "y":1.5}, | ||
| 381 | {"label":"%", "x":5, "y":1.5}, | ||
| 382 | {"label":"^", "x":6, "y":1.5}, | ||
| 383 | {"label":"&", "x":7, "y":1.5}, | ||
| 384 | {"label":"*", "x":8, "y":1.5}, | ||
| 385 | {"label":"(", "x":9, "y":1.5}, | ||
| 386 | {"label":")", "x":10, "y":1.5}, | ||
| 387 | {"label":"_", "x":11, "y":1.5}, | ||
| 388 | {"label":"+", "x":12, "y":1.5}, | ||
| 389 | {"label":"Backspace", "x":13, "y":1.5, "w":2}, | ||
| 390 | |||
| 391 | {"label":"Insert", "x":15.25, "y":1.5}, | ||
| 392 | {"label":"Home", "x":16.25, "y":1.5}, | ||
| 393 | {"label":"PgUp", "x":17.25, "y":1.5}, | ||
| 394 | |||
| 395 | {"label":"Tab", "x":0, "y":2.5, "w":1.5}, | ||
| 396 | {"label":"Q", "x":1.5, "y":2.5}, | ||
| 397 | {"label":"W", "x":2.5, "y":2.5}, | ||
| 398 | {"label":"E", "x":3.5, "y":2.5}, | ||
| 399 | {"label":"R", "x":4.5, "y":2.5}, | ||
| 400 | {"label":"T", "x":5.5, "y":2.5}, | ||
| 401 | {"label":"Y", "x":6.5, "y":2.5}, | ||
| 402 | {"label":"U", "x":7.5, "y":2.5}, | ||
| 403 | {"label":"I", "x":8.5, "y":2.5}, | ||
| 404 | {"label":"O", "x":9.5, "y":2.5}, | ||
| 405 | {"label":"P", "x":10.5, "y":2.5}, | ||
| 406 | {"label":"{", "x":11.5, "y":2.5}, | ||
| 407 | {"label":"}", "x":12.5, "y":2.5}, | ||
| 408 | {"label":"Enter", "x":13.75, "y":2.5, "w":1.25, "h":2}, | ||
| 409 | |||
| 410 | {"label":"Delete", "x":15.25, "y":2.5}, | ||
| 411 | {"label":"End", "x":16.25, "y":2.5}, | ||
| 412 | {"label":"PgDn", "x":17.25, "y":2.5}, | ||
| 413 | |||
| 414 | {"label":"Caps Lock", "x":0, "y":3.5, "w":1.75}, | ||
| 415 | {"label":"A", "x":1.75, "y":3.5}, | ||
| 416 | {"label":"S", "x":2.75, "y":3.5}, | ||
| 417 | {"label":"D", "x":3.75, "y":3.5}, | ||
| 418 | {"label":"F", "x":4.75, "y":3.5}, | ||
| 419 | {"label":"G", "x":5.75, "y":3.5}, | ||
| 420 | {"label":"H", "x":6.75, "y":3.5}, | ||
| 421 | {"label":"J", "x":7.75, "y":3.5}, | ||
| 422 | {"label":"K", "x":8.75, "y":3.5}, | ||
| 423 | {"label":"L", "x":9.75, "y":3.5}, | ||
| 424 | {"label":":", "x":10.75, "y":3.5}, | ||
| 425 | {"label":"@", "x":11.75, "y":3.5}, | ||
| 426 | {"label":"~", "x":12.75, "y":3.5}, | ||
| 427 | |||
| 428 | {"label":"Shift", "x":0, "y":4.5, "w":1.25}, | ||
| 429 | {"label":"|", "x":1.25, "y":4.5}, | ||
| 430 | {"label":"Z", "x":2.25, "y":4.5}, | ||
| 431 | {"label":"X", "x":3.25, "y":4.5}, | ||
| 432 | {"label":"C", "x":4.25, "y":4.5}, | ||
| 433 | {"label":"V", "x":5.25, "y":4.5}, | ||
| 434 | {"label":"B", "x":6.25, "y":4.5}, | ||
| 435 | {"label":"N", "x":7.25, "y":4.5}, | ||
| 436 | {"label":"M", "x":8.25, "y":4.5}, | ||
| 437 | {"label":"<", "x":9.25, "y":4.5}, | ||
| 438 | {"label":">", "x":10.25, "y":4.5}, | ||
| 439 | {"label":"?", "x":11.25, "y":4.5}, | ||
| 440 | {"label":"Shift", "x":12.25, "y":4.5, "w":2.75}, | ||
| 441 | |||
| 442 | {"label":"\u2191", "x":16.25, "y":4.5}, | ||
| 443 | |||
| 444 | {"label":"Ctrl", "x":0, "y":5.5, "w":1.25}, | ||
| 445 | {"label":"Win", "x":1.25, "y":5.5, "w":1.25}, | ||
| 446 | {"label":"Alt", "x":2.5, "y":5.5, "w":1.25}, | ||
| 447 | {"x":3.75, "y":5.5, "w":6.25}, | ||
| 448 | {"label":"AltGr", "x":10, "y":5.5, "w":1.25}, | ||
| 449 | {"label":"Win", "x":11.25, "y":5.5, "w":1.25}, | ||
| 450 | {"label":"Menu", "x":12.5, "y":5.5, "w":1.25}, | ||
| 451 | {"label":"Ctrl", "x":13.75, "y":5.5, "w":1.25}, | ||
| 452 | |||
| 453 | {"label":"\u2190", "x":15.25, "y":5.5}, | ||
| 454 | {"label":"\u2193", "x":16.25, "y":5.5}, | ||
| 455 | {"label":"\u2192", "x":17.25, "y":5.5} | ||
| 456 | ] | ||
| 457 | } | ||
| 458 | } | ||
| 459 | } | ||
diff --git a/keyboards/wasdat/keymaps/default/keymap.c b/keyboards/wasdat/keymaps/default/keymap.c new file mode 100644 index 000000000..967947ada --- /dev/null +++ b/keyboards/wasdat/keymaps/default/keymap.c | |||
| @@ -0,0 +1,44 @@ | |||
| 1 | /* Copyright 2019 Maarten Dekkers <maartenwut@gmail.com> | ||
| 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 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 19 | /* | ||
| 20 | * ┌───┐ ┌───┬───┬───┬───┐ ┌───┬───┬───┬───┐ ┌───┬───┬───┬───┐ ┌───┬───┬───┐ | ||
| 21 | * │Esc│ │F1 │F2 │F3 │F4 │ │F5 │F6 │F7 │F8 │ │F9 │F10│F11│F12│ │PSc│Slk│Pse│ | ||
| 22 | * └───┘ └───┴───┴───┴───┘ └───┴───┴───┴───┘ └───┴───┴───┴───┘ └───┴───┴───┘ | ||
| 23 | * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐ ┌───┬───┬───┐ ┌───┬───┬───┬───┐ | ||
| 24 | * │ ` │ 1 │ 2 │ 3 │ 4 │ 5 │ 6 │ 7 │ 8 │ 9 │ 0 │ - │ = │ Backsp| |Ins|Hom|PgU| |Num| / | * | - | | ||
| 25 | * ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤ ├───┼───┼───┤ ├───┼───┼───┼───┤ | ||
| 26 | * │ Tab │ Q │ W │ E │ R │ T │ Y │ U │ I │ O │ P │ [ │ ] │ \ │ |Del|End|PgD| │ 7 │ 8 │ 9 │ │ | ||
| 27 | * ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤ └───┴───┴───┘ ├───┼───┼───┤ + │ | ||
| 28 | * │ Caps │ A │ S │ D │ F │ G │ H │ J │ K │ L │ ; │ ' │ Enter │ │ 4 │ 5 │ 6 │ │ | ||
| 29 | * ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────────┤ ┌───┐ ├───┼───┼───┼───┤ | ||
| 30 | * │ Shift │ Z │ X │ C │ V │ B │ N │ M │ , │ . │ / │ Shift │ │ ↑ │ │ 1 │ 2 │ 3 │ │ | ||
| 31 | * ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬────┤ ┌───┼───┼───┐ ├───┴───┼───┤Ent│ | ||
| 32 | * │Ctrl│GUI │Alt │ │ Alt│ GUI│Menu│Ctrl│ │ ← │ ↓ │ → │ │ 0 │ . │ │ | ||
| 33 | * └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘ └───┴───┴───┘ └───────┴───┴───┘ | ||
| 34 | */ | ||
| 35 | LAYOUT_fullsize_ansi( | ||
| 36 | KC_ESC, 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_PSCR, KC_SLCK, KC_PAUS, | ||
| 37 | |||
| 38 | KC_GRV, 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_HOME, KC_PGUP, KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS, | ||
| 39 | 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, KC_END, KC_PGDN, KC_P7, KC_P8, KC_P9, KC_PPLS, | ||
| 40 | 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_P4, KC_P5, KC_P6, | ||
| 41 | 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_P1, KC_P2, KC_P3, KC_PENT, | ||
| 42 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RGUI, KC_APP, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT, KC_P0, KC_PDOT | ||
| 43 | ) | ||
| 44 | }; | ||
diff --git a/keyboards/wasdat/keymaps/default/readme.md b/keyboards/wasdat/keymaps/default/readme.md new file mode 100644 index 000000000..66cf59389 --- /dev/null +++ b/keyboards/wasdat/keymaps/default/readme.md | |||
| @@ -0,0 +1 @@ | |||
| # The default ANSI keymap for the Wasdat | |||
diff --git a/keyboards/wasdat/keymaps/default_iso/keymap.c b/keyboards/wasdat/keymaps/default_iso/keymap.c new file mode 100644 index 000000000..00a45d746 --- /dev/null +++ b/keyboards/wasdat/keymaps/default_iso/keymap.c | |||
| @@ -0,0 +1,44 @@ | |||
| 1 | /* Copyright 2019 Maarten Dekkers <maartenwut@gmail.com> | ||
| 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 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 19 | /* | ||
| 20 | * ┌───┐ ┌───┬───┬───┬───┐ ┌───┬───┬───┬───┐ ┌───┬───┬───┬───┐ ┌───┬───┬───┐ | ||
| 21 | * │Esc│ │F1 │F2 │F3 │F4 │ │F5 │F6 │F7 │F8 │ │F9 │F10│F11│F12│ │PSc│Slk│Pse│ | ||
| 22 | * └───┘ └───┴───┴───┴───┘ └───┴───┴───┴───┘ └───┴───┴───┴───┘ └───┴───┴───┘ | ||
| 23 | * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐ ┌───┬───┬───┐ ┌───┬───┬───┬───┐ | ||
| 24 | * │ ` │ 1 │ 2 │ 3 │ 4 │ 5 │ 6 │ 7 │ 8 │ 9 │ 0 │ - │ = │ Backsp| |Ins|Hom|PgU| |Num| / | * | - | | ||
| 25 | * ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤ ├───┼───┼───┤ ├───┼───┼───┼───┤ | ||
| 26 | * │ Tab │ Q │ W │ E │ R │ T │ Y │ U │ I │ O │ P │ [ │ ] │ │ |Del|End|PgD| │ 7 │ 8 │ 9 │ │ | ||
| 27 | * ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ Ent│ └───┴───┴───┘ ├───┼───┼───┤ + │ | ||
| 28 | * │ Caps │ A │ S │ D │ F │ G │ H │ J │ K │ L │ ; │ ' │ # │ │ │ 4 │ 5 │ 6 │ │ | ||
| 29 | * ├────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┴────┤ ┌───┐ ├───┼───┼───┼───┤ | ||
| 30 | * │Shft│ \ │ Z │ X │ C │ V │ B │ N │ M │ , │ . │ / │ Shift │ │ ↑ │ │ 1 │ 2 │ 3 │ │ | ||
| 31 | * ├────┼───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬────┤ ┌───┼───┼───┐ ├───┴───┼───┤Ent│ | ||
| 32 | * │Ctrl│GUI │Alt │ │AlGr│ GUI│Menu│Ctrl│ │ ← │ ↓ │ → │ │ 0 │ . │ │ | ||
| 33 | * └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘ └───┴───┴───┘ └───────┴───┴───┘ | ||
| 34 | */ | ||
| 35 | LAYOUT_fullsize_iso( | ||
| 36 | KC_ESC, 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_PSCR, KC_SLCK, KC_PAUS, | ||
| 37 | |||
| 38 | KC_GRV, 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_HOME, KC_PGUP, KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS, | ||
| 39 | 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_DEL, KC_END, KC_PGDN, KC_P7, KC_P8, KC_P9, KC_PPLS, | ||
| 40 | 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_NUHS, KC_ENT, KC_P4, KC_P5, KC_P6, | ||
| 41 | KC_LSFT, KC_NUBS, 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_P1, KC_P2, KC_P3, KC_PENT, | ||
| 42 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RGUI, KC_APP, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT, KC_P0, KC_PDOT | ||
| 43 | ) | ||
| 44 | }; | ||
diff --git a/keyboards/wasdat/keymaps/default_iso/readme.md b/keyboards/wasdat/keymaps/default_iso/readme.md new file mode 100644 index 000000000..e36d76420 --- /dev/null +++ b/keyboards/wasdat/keymaps/default_iso/readme.md | |||
| @@ -0,0 +1 @@ | |||
| # The default ISO keymap for the Wasdat | |||
diff --git a/keyboards/wasdat/matrix.c b/keyboards/wasdat/matrix.c new file mode 100644 index 000000000..b481e5394 --- /dev/null +++ b/keyboards/wasdat/matrix.c | |||
| @@ -0,0 +1,484 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2012-2018 Jun Wako, Jack Humbert, Yiancar | ||
| 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 | #include <stdint.h> | ||
| 18 | #include <stdbool.h> | ||
| 19 | #include "wait.h" | ||
| 20 | #include "print.h" | ||
| 21 | #include "debug.h" | ||
| 22 | #include "util.h" | ||
| 23 | #include "matrix.h" | ||
| 24 | #include "debounce.h" | ||
| 25 | #include "quantum.h" | ||
| 26 | |||
| 27 | #if (MATRIX_COLS <= 8) | ||
| 28 | # define print_matrix_header() print("\nr/c 01234567\n") | ||
| 29 | # define print_matrix_row(row) print_bin_reverse8(matrix_get_row(row)) | ||
| 30 | # define matrix_bitpop(i) bitpop(matrix[i]) | ||
| 31 | # define ROW_SHIFTER ((uint8_t)1) | ||
| 32 | #elif (MATRIX_COLS <= 16) | ||
| 33 | # define print_matrix_header() print("\nr/c 0123456789ABCDEF\n") | ||
| 34 | # define print_matrix_row(row) print_bin_reverse16(matrix_get_row(row)) | ||
| 35 | # define matrix_bitpop(i) bitpop16(matrix[i]) | ||
| 36 | # define ROW_SHIFTER ((uint16_t)1) | ||
| 37 | #elif (MATRIX_COLS <= 32) | ||
| 38 | # define print_matrix_header() print("\nr/c 0123456789ABCDEF0123456789ABCDEF\n") | ||
| 39 | # define print_matrix_row(row) print_bin_reverse32(matrix_get_row(row)) | ||
| 40 | # define matrix_bitpop(i) bitpop32(matrix[i]) | ||
| 41 | # define ROW_SHIFTER ((uint32_t)1) | ||
| 42 | #endif | ||
| 43 | |||
| 44 | #ifdef MATRIX_MASKED | ||
| 45 | extern const matrix_row_t matrix_mask[]; | ||
| 46 | #endif | ||
| 47 | |||
| 48 | #ifdef DIRECT_PINS | ||
| 49 | static pin_t direct_pins[MATRIX_ROWS][MATRIX_COLS] = DIRECT_PINS; | ||
| 50 | #elif (DIODE_DIRECTION == ROW2COL) || (DIODE_DIRECTION == COL2ROW) | ||
| 51 | static const pin_t row_pins[MATRIX_ROWS] = MATRIX_ROW_PINS; | ||
| 52 | //static const pin_t col_pins[MATRIX_COLS] = MATRIX_COL_PINS; | ||
| 53 | #endif | ||
| 54 | |||
| 55 | /* matrix state(1:on, 0:off) */ | ||
| 56 | static matrix_row_t raw_matrix[MATRIX_ROWS]; //raw values | ||
| 57 | static matrix_row_t matrix[MATRIX_ROWS]; //debounced values | ||
| 58 | |||
| 59 | __attribute__ ((weak)) | ||
| 60 | void matrix_init_quantum(void) { | ||
| 61 | matrix_init_kb(); | ||
| 62 | } | ||
| 63 | |||
| 64 | __attribute__ ((weak)) | ||
| 65 | void matrix_scan_quantum(void) { | ||
| 66 | matrix_scan_kb(); | ||
| 67 | } | ||
| 68 | |||
| 69 | __attribute__ ((weak)) | ||
| 70 | void matrix_init_kb(void) { | ||
| 71 | matrix_init_user(); | ||
| 72 | } | ||
| 73 | |||
| 74 | __attribute__ ((weak)) | ||
| 75 | void matrix_scan_kb(void) { | ||
| 76 | matrix_scan_user(); | ||
| 77 | } | ||
| 78 | |||
| 79 | __attribute__ ((weak)) | ||
| 80 | void matrix_init_user(void) { | ||
| 81 | } | ||
| 82 | |||
| 83 | __attribute__ ((weak)) | ||
| 84 | void matrix_scan_user(void) { | ||
| 85 | } | ||
| 86 | |||
| 87 | inline | ||
| 88 | uint8_t matrix_rows(void) { | ||
| 89 | return MATRIX_ROWS; | ||
| 90 | } | ||
| 91 | |||
| 92 | inline | ||
| 93 | uint8_t matrix_cols(void) { | ||
| 94 | return MATRIX_COLS; | ||
| 95 | } | ||
| 96 | |||
| 97 | //Deprecated. | ||
| 98 | bool matrix_is_modified(void) | ||
| 99 | { | ||
| 100 | if (debounce_active()) return false; | ||
| 101 | return true; | ||
| 102 | } | ||
| 103 | |||
| 104 | inline | ||
| 105 | bool matrix_is_on(uint8_t row, uint8_t col) | ||
| 106 | { | ||
| 107 | return (matrix[row] & ((matrix_row_t)1<<col)); | ||
| 108 | } | ||
| 109 | |||
| 110 | inline | ||
| 111 | matrix_row_t matrix_get_row(uint8_t row) | ||
| 112 | { | ||
| 113 | // Matrix mask lets you disable switches in the returned matrix data. For example, if you have a | ||
| 114 | // switch blocker installed and the switch is always pressed. | ||
| 115 | #ifdef MATRIX_MASKED | ||
| 116 | return matrix[row] & matrix_mask[row]; | ||
| 117 | #else | ||
| 118 | return matrix[row]; | ||
| 119 | #endif | ||
| 120 | } | ||
| 121 | |||
| 122 | void matrix_print(void) | ||
| 123 | { | ||
| 124 | print_matrix_header(); | ||
| 125 | |||
| 126 | for (uint8_t row = 0; row < MATRIX_ROWS; row++) { | ||
| 127 | phex(row); print(": "); | ||
| 128 | print_matrix_row(row); | ||
| 129 | print("\n"); | ||
| 130 | } | ||
| 131 | } | ||
| 132 | |||
| 133 | uint8_t matrix_key_count(void) | ||
| 134 | { | ||
| 135 | uint8_t count = 0; | ||
| 136 | for (uint8_t i = 0; i < MATRIX_ROWS; i++) { | ||
| 137 | count += matrix_bitpop(i); | ||
| 138 | } | ||
| 139 | return count; | ||
| 140 | } | ||
| 141 | |||
| 142 | |||
| 143 | #ifdef DIRECT_PINS | ||
| 144 | |||
| 145 | static void init_pins(void) { | ||
| 146 | for (int row = 0; row < MATRIX_ROWS; row++) { | ||
| 147 | for (int col = 0; col < MATRIX_COLS; col++) { | ||
| 148 | pin_t pin = direct_pins[row][col]; | ||
| 149 | if (pin != NO_PIN) { | ||
| 150 | setPinInputHigh(pin); | ||
| 151 | } | ||
| 152 | } | ||
| 153 | } | ||
| 154 | } | ||
| 155 | |||
| 156 | static bool read_cols_on_row(matrix_row_t current_matrix[], uint8_t current_row) { | ||
| 157 | matrix_row_t last_row_value = current_matrix[current_row]; | ||
| 158 | current_matrix[current_row] = 0; | ||
| 159 | |||
| 160 | for (uint8_t col_index = 0; col_index < MATRIX_COLS; col_index++) { | ||
| 161 | pin_t pin = direct_pins[current_row][col_index]; | ||
| 162 | if (pin != NO_PIN) { | ||
| 163 | current_matrix[current_row] |= readPin(pin) ? 0 : (ROW_SHIFTER << col_index); | ||
| 164 | } | ||
| 165 | } | ||
| 166 | |||
| 167 | return (last_row_value != current_matrix[current_row]); | ||
| 168 | } | ||
| 169 | |||
| 170 | #elif (DIODE_DIRECTION == COL2ROW) | ||
| 171 | |||
| 172 | static void select_row(uint8_t row) | ||
| 173 | { | ||
| 174 | setPinOutput(row_pins[row]); | ||
| 175 | writePinLow(row_pins[row]); | ||
| 176 | } | ||
| 177 | |||
| 178 | static void unselect_row(uint8_t row) | ||
| 179 | { | ||
| 180 | setPinInputHigh(row_pins[row]); | ||
| 181 | } | ||
| 182 | |||
| 183 | static void unselect_rows(void) | ||
| 184 | { | ||
| 185 | for(uint8_t x = 0; x < MATRIX_ROWS; x++) { | ||
| 186 | setPinInput(row_pins[x]); | ||
| 187 | } | ||
| 188 | } | ||
| 189 | |||
| 190 | static void init_pins(void) { | ||
| 191 | unselect_rows(); | ||
| 192 | for (uint8_t x = 0; x < MATRIX_COLS; x++) { | ||
| 193 | setPinInputHigh(col_pins[x]); | ||
| 194 | } | ||
| 195 | } | ||
| 196 | |||
| 197 | static bool read_cols_on_row(matrix_row_t current_matrix[], uint8_t current_row) | ||
| 198 | { | ||
| 199 | // Store last value of row prior to reading | ||
| 200 | matrix_row_t last_row_value = current_matrix[current_row]; | ||
| 201 | |||
| 202 | // Clear data in matrix row | ||
| 203 | current_matrix[current_row] = 0; | ||
| 204 | |||
| 205 | // Select row and wait for row selecton to stabilize | ||
| 206 | select_row(current_row); | ||
| 207 | wait_us(30); | ||
| 208 | |||
| 209 | // For each col... | ||
| 210 | for(uint8_t col_index = 0; col_index < MATRIX_COLS; col_index++) { | ||
| 211 | |||
| 212 | // Select the col pin to read (active low) | ||
| 213 | uint8_t pin_state = readPin(col_pins[col_index]); | ||
| 214 | |||
| 215 | // Populate the matrix row with the state of the col pin | ||
| 216 | current_matrix[current_row] |= pin_state ? 0 : (ROW_SHIFTER << col_index); | ||
| 217 | } | ||
| 218 | |||
| 219 | // Unselect row | ||
| 220 | unselect_row(current_row); | ||
| 221 | |||
| 222 | return (last_row_value != current_matrix[current_row]); | ||
| 223 | } | ||
| 224 | |||
| 225 | #elif (DIODE_DIRECTION == ROW2COL) | ||
| 226 | |||
| 227 | /* Cols 0 - 15 | ||
| 228 | * col 0: C7 | ||
| 229 | * col 1: B6 | ||
| 230 | * col 2: C6 | ||
| 231 | * col 3: B4 | ||
| 232 | * col 4: B5 | ||
| 233 | * col 5: D7 | ||
| 234 | * These columns use a 74HC237D 3 to 8 bit demultiplexer. | ||
| 235 | * A0 A1 A2 | ||
| 236 | * col / pin: PD2 PD1 PD0 | ||
| 237 | * 6: 1 1 1 | ||
| 238 | * 7: 0 1 1 | ||
| 239 | * 8: 1 0 1 | ||
| 240 | * 9: 0 0 1 | ||
| 241 | * 10: 1 1 0 | ||
| 242 | * 11: 0 1 0 | ||
| 243 | * 12: 1 0 0 | ||
| 244 | * col 13: D3 | ||
| 245 | * col 14: B7 | ||
| 246 | * col 15: B3 | ||
| 247 | */ | ||
| 248 | static void select_col(uint8_t col) | ||
| 249 | { | ||
| 250 | switch (col) { | ||
| 251 | case 0: | ||
| 252 | writePinLow(C7); | ||
| 253 | break; | ||
| 254 | case 1: | ||
| 255 | writePinLow(B6); | ||
| 256 | break; | ||
| 257 | case 2: | ||
| 258 | writePinLow(C6); | ||
| 259 | break; | ||
| 260 | case 3: | ||
| 261 | writePinLow(B4); | ||
| 262 | break; | ||
| 263 | case 4: | ||
| 264 | writePinLow(B5); | ||
| 265 | break; | ||
| 266 | case 5: | ||
| 267 | writePinLow(D7); | ||
| 268 | break; | ||
| 269 | case 6: | ||
| 270 | writePinHigh(D0); | ||
| 271 | writePinHigh(D1); | ||
| 272 | writePinHigh(D2); | ||
| 273 | break; | ||
| 274 | case 7: | ||
| 275 | writePinHigh(D0); | ||
| 276 | writePinHigh(D1); | ||
| 277 | break; | ||
| 278 | case 8: | ||
| 279 | writePinHigh(D0); | ||
| 280 | writePinHigh(D2); | ||
| 281 | break; | ||
| 282 | case 9: | ||
| 283 | writePinHigh(D0); | ||
| 284 | break; | ||
| 285 | case 10: | ||
| 286 | writePinHigh(D1); | ||
| 287 | writePinHigh(D2); | ||
| 288 | break; | ||
| 289 | case 11: | ||
| 290 | writePinHigh(D1); | ||
| 291 | break; | ||
| 292 | case 12: | ||
| 293 | writePinHigh(D2); | ||
| 294 | break; | ||
| 295 | case 13: | ||
| 296 | writePinLow(D3); | ||
| 297 | break; | ||
| 298 | case 14: | ||
| 299 | writePinLow(B7); | ||
| 300 | break; | ||
| 301 | case 15: | ||
| 302 | writePinLow(B3); | ||
| 303 | break; | ||
| 304 | } | ||
| 305 | } | ||
| 306 | |||
| 307 | static void unselect_col(uint8_t col) | ||
| 308 | { | ||
| 309 | switch (col) { | ||
| 310 | case 0: | ||
| 311 | writePinHigh(C7); | ||
| 312 | break; | ||
| 313 | case 1: | ||
| 314 | writePinHigh(B6); | ||
| 315 | break; | ||
| 316 | case 2: | ||
| 317 | writePinHigh(C6); | ||
| 318 | break; | ||
| 319 | case 3: | ||
| 320 | writePinHigh(B4); | ||
| 321 | break; | ||
| 322 | case 4: | ||
| 323 | writePinHigh(B5); | ||
| 324 | break; | ||
| 325 | case 5: | ||
| 326 | writePinHigh(D7); | ||
| 327 | break; | ||
| 328 | case 6: | ||
| 329 | writePinLow(D0); | ||
| 330 | writePinLow(D1); | ||
| 331 | writePinLow(D2); | ||
| 332 | break; | ||
| 333 | case 7: | ||
| 334 | writePinLow(D0); | ||
| 335 | writePinLow(D1); | ||
| 336 | break; | ||
| 337 | case 8: | ||
| 338 | writePinLow(D0); | ||
| 339 | writePinLow(D2); | ||
| 340 | break; | ||
| 341 | case 9: | ||
| 342 | writePinLow(D0); | ||
| 343 | break; | ||
| 344 | case 10: | ||
| 345 | writePinLow(D1); | ||
| 346 | writePinLow(D2); | ||
| 347 | break; | ||
| 348 | case 11: | ||
| 349 | writePinLow(D1); | ||
| 350 | break; | ||
| 351 | case 12: | ||
| 352 | writePinLow(D2); | ||
| 353 | break; | ||
| 354 | case 13: | ||
| 355 | writePinHigh(D3); | ||
| 356 | break; | ||
| 357 | case 14: | ||
| 358 | writePinHigh(B7); | ||
| 359 | break; | ||
| 360 | case 15: | ||
| 361 | writePinHigh(B3); | ||
| 362 | break; | ||
| 363 | } | ||
| 364 | } | ||
| 365 | |||
| 366 | static void unselect_cols(void) | ||
| 367 | { | ||
| 368 | //Native | ||
| 369 | setPinOutput(D3); | ||
| 370 | setPinOutput(D7); | ||
| 371 | writePinHigh(D3); | ||
| 372 | writePinHigh(D7); | ||
| 373 | |||
| 374 | setPinOutput(C6); | ||
| 375 | setPinOutput(C7); | ||
| 376 | writePinHigh(C6); | ||
| 377 | writePinHigh(C7); | ||
| 378 | |||
| 379 | setPinOutput(B3); | ||
| 380 | setPinOutput(B4); | ||
| 381 | setPinOutput(B5); | ||
| 382 | setPinOutput(B6); | ||
| 383 | setPinOutput(B7); | ||
| 384 | writePinHigh(B3); | ||
| 385 | writePinHigh(B4); | ||
| 386 | writePinHigh(B5); | ||
| 387 | writePinHigh(B6); | ||
| 388 | writePinHigh(B7); | ||
| 389 | |||
| 390 | //Demultiplexer | ||
| 391 | setPinOutput(D0); | ||
| 392 | setPinOutput(D1); | ||
| 393 | setPinOutput(D2); | ||
| 394 | writePinLow(D0); | ||
| 395 | writePinLow(D1); | ||
| 396 | writePinLow(D2); | ||
| 397 | } | ||
| 398 | |||
| 399 | static void init_pins(void) { | ||
| 400 | unselect_cols(); | ||
| 401 | for (uint8_t x = 0; x < MATRIX_ROWS; x++) { | ||
| 402 | setPinInputHigh(row_pins[x]); | ||
| 403 | } | ||
| 404 | } | ||
| 405 | |||
| 406 | static bool read_rows_on_col(matrix_row_t current_matrix[], uint8_t current_col) | ||
| 407 | { | ||
| 408 | bool matrix_changed = false; | ||
| 409 | |||
| 410 | // Select col and wait for col selecton to stabilize | ||
| 411 | select_col(current_col); | ||
| 412 | wait_us(30); | ||
| 413 | |||
| 414 | // For each row... | ||
| 415 | for(uint8_t row_index = 0; row_index < MATRIX_ROWS; row_index++) | ||
| 416 | { | ||
| 417 | |||
| 418 | // Store last value of row prior to reading | ||
| 419 | matrix_row_t last_row_value = current_matrix[row_index]; | ||
| 420 | |||
| 421 | // Check row pin state | ||
| 422 | if (readPin(row_pins[row_index]) == 0) | ||
| 423 | { | ||
| 424 | // Pin LO, set col bit | ||
| 425 | current_matrix[row_index] |= (ROW_SHIFTER << current_col); | ||
| 426 | } | ||
| 427 | else | ||
| 428 | { | ||
| 429 | // Pin HI, clear col bit | ||
| 430 | current_matrix[row_index] &= ~(ROW_SHIFTER << current_col); | ||
| 431 | } | ||
| 432 | |||
| 433 | // Determine if the matrix changed state | ||
| 434 | if ((last_row_value != current_matrix[row_index]) && !(matrix_changed)) | ||
| 435 | { | ||
| 436 | matrix_changed = true; | ||
| 437 | } | ||
| 438 | } | ||
| 439 | |||
| 440 | // Unselect col | ||
| 441 | unselect_col(current_col); | ||
| 442 | |||
| 443 | return matrix_changed; | ||
| 444 | } | ||
| 445 | |||
| 446 | #endif | ||
| 447 | |||
| 448 | void matrix_init(void) { | ||
| 449 | |||
| 450 | // initialize key pins | ||
| 451 | init_pins(); | ||
| 452 | |||
| 453 | // initialize matrix state: all keys off | ||
| 454 | for (uint8_t i=0; i < MATRIX_ROWS; i++) { | ||
| 455 | raw_matrix[i] = 0; | ||
| 456 | matrix[i] = 0; | ||
| 457 | } | ||
| 458 | |||
| 459 | debounce_init(MATRIX_ROWS); | ||
| 460 | |||
| 461 | matrix_init_quantum(); | ||
| 462 | } | ||
| 463 | |||
| 464 | uint8_t matrix_scan(void) | ||
| 465 | { | ||
| 466 | bool changed = false; | ||
| 467 | |||
| 468 | #if defined(DIRECT_PINS) || (DIODE_DIRECTION == COL2ROW) | ||
| 469 | // Set row, read cols | ||
| 470 | for (uint8_t current_row = 0; current_row < MATRIX_ROWS; current_row++) { | ||
| 471 | changed |= read_cols_on_row(raw_matrix, current_row); | ||
| 472 | } | ||
| 473 | #elif (DIODE_DIRECTION == ROW2COL) | ||
| 474 | // Set col, read rows | ||
| 475 | for (uint8_t current_col = 0; current_col < MATRIX_COLS; current_col++) { | ||
| 476 | changed |= read_rows_on_col(raw_matrix, current_col); | ||
| 477 | } | ||
| 478 | #endif | ||
| 479 | |||
| 480 | debounce(raw_matrix, matrix, MATRIX_ROWS, changed); | ||
| 481 | |||
| 482 | matrix_scan_quantum(); | ||
| 483 | return 1; | ||
| 484 | } | ||
diff --git a/keyboards/wasdat/readme.md b/keyboards/wasdat/readme.md new file mode 100644 index 000000000..1cb42cc01 --- /dev/null +++ b/keyboards/wasdat/readme.md | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | # Wasdat | ||
| 2 | |||
| 3 |  | ||
| 4 | |||
| 5 | A drop-in replacement controller for the WASD v2 TKL and fullsize models. | ||
| 6 | |||
| 7 | Keyboard Maintainer: [Maartenwut](https://github.com/Maartenwut) | ||
| 8 | Hardware Supported: WASD v2 TKL/Fullsize ANSI & ISO with Wasdat controller | ||
| 9 | Hardware Availability: [maartenwut.com](https://maartenwut.com/product/wasdat/) | ||
| 10 | |||
| 11 | ## Flashing | ||
| 12 | |||
| 13 | The WASD has no reset button, but it does have a bank of DIP switches on the bottom, so to enter the bootloader on this board, simply toggle the first one on and off. | ||
| 14 | |||
| 15 | --- | ||
| 16 | |||
| 17 | Make example for this keyboard (after setting up your build environment): | ||
| 18 | |||
| 19 | make wasdat:default | ||
| 20 | |||
| 21 | 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/wasdat/rules.mk b/keyboards/wasdat/rules.mk new file mode 100644 index 000000000..c9deae5c5 --- /dev/null +++ b/keyboards/wasdat/rules.mk | |||
| @@ -0,0 +1,84 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = atmega32u4 | ||
| 3 | |||
| 4 | # Processor frequency. | ||
| 5 | # This will define a symbol, F_CPU, in all source code files equal to the | ||
| 6 | # processor frequency in Hz. You can then use this symbol in your source code to | ||
| 7 | # calculate timings. Do NOT tack on a 'UL' at the end, this will be done | ||
| 8 | # automatically to create a 32-bit value in your source code. | ||
| 9 | # | ||
| 10 | # This will be an integer division of F_USB below, as it is sourced by | ||
| 11 | # F_USB after it has run through any CPU prescalers. Note that this value | ||
| 12 | # does not *change* the processor frequency - it should merely be updated to | ||
| 13 | # reflect the processor speed set externally so that the code can use accurate | ||
| 14 | # software delays. | ||
| 15 | F_CPU = 16000000 | ||
| 16 | |||
| 17 | |||
| 18 | # | ||
| 19 | # LUFA specific | ||
| 20 | # | ||
| 21 | # Target architecture (see library "Board Types" documentation). | ||
| 22 | ARCH = AVR8 | ||
| 23 | |||
| 24 | # Input clock frequency. | ||
| 25 | # This will define a symbol, F_USB, in all source code files equal to the | ||
| 26 | # input clock frequency (before any prescaling is performed) in Hz. This value may | ||
| 27 | # differ from F_CPU if prescaling is used on the latter, and is required as the | ||
| 28 | # raw input clock is fed directly to the PLL sections of the AVR for high speed | ||
| 29 | # clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL' | ||
| 30 | # at the end, this will be done automatically to create a 32-bit value in your | ||
| 31 | # source code. | ||
| 32 | # | ||
| 33 | # If no clock division is performed on the input clock inside the AVR (via the | ||
| 34 | # CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU. | ||
| 35 | F_USB = $(F_CPU) | ||
| 36 | |||
| 37 | # Interrupt driven control endpoint task(+60) | ||
| 38 | OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT | ||
| 39 | |||
| 40 | |||
| 41 | # Bootloader selection | ||
| 42 | # Teensy halfkay | ||
| 43 | # Pro Micro caterina | ||
| 44 | # Atmel DFU atmel-dfu | ||
| 45 | # LUFA DFU lufa-dfu | ||
| 46 | # QMK DFU qmk-dfu | ||
| 47 | # atmega32a bootloadHID | ||
| 48 | BOOTLOADER = qmk-dfu | ||
| 49 | |||
| 50 | |||
| 51 | # If you don't know the bootloader type, then you can specify the | ||
| 52 | # Boot Section Size in *bytes* by uncommenting out the OPT_DEFS line | ||
| 53 | # Teensy halfKay 512 | ||
| 54 | # Teensy++ halfKay 1024 | ||
| 55 | # Atmel DFU loader 4096 | ||
| 56 | # LUFA bootloader 4096 | ||
| 57 | # USBaspLoader 2048 | ||
| 58 | # OPT_DEFS += -DBOOTLOADER_SIZE=4096 | ||
| 59 | |||
| 60 | |||
| 61 | # Build Options | ||
| 62 | # change yes to no to disable | ||
| 63 | # | ||
| 64 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000) | ||
| 65 | MOUSEKEY_ENABLE = no # Mouse keys(+4700) | ||
| 66 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | ||
| 67 | CONSOLE_ENABLE = no # Console for debug(+400) | ||
| 68 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
| 69 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 70 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 71 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 72 | NKRO_ENABLE = yes # USB Nkey Rollover | ||
| 73 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality on B7 by default | ||
| 74 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
| 75 | MIDI_ENABLE = no # MIDI support (+2400 to 4200, depending on config) | ||
| 76 | UNICODE_ENABLE = no # Unicode | ||
| 77 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
| 78 | AUDIO_ENABLE = no # Audio output on port C6 | ||
| 79 | FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches | ||
| 80 | HD44780_ENABLE = no # Enable support for HD44780 based LCDs (+400) | ||
| 81 | |||
| 82 | CUSTOM_MATRIX = yes | ||
| 83 | SRC += matrix.c | ||
| 84 | LAYOUTS = fullsize_ansi fullsize_iso tkl_ansi tkl_iso | ||
diff --git a/keyboards/wasdat/wasdat.c b/keyboards/wasdat/wasdat.c new file mode 100644 index 000000000..11338634d --- /dev/null +++ b/keyboards/wasdat/wasdat.c | |||
| @@ -0,0 +1,58 @@ | |||
| 1 | /* Copyright 2019 Maarten Dekkers <maartenwut@gmail.com> | ||
| 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 "wasdat.h" | ||
| 17 | |||
| 18 | // Optional override functions below. | ||
| 19 | // You can leave any or all of these undefined. | ||
| 20 | // These are only required if you want to perform custom actions. | ||
| 21 | |||
| 22 | void matrix_init_kb(void) { | ||
| 23 | // put your keyboard start-up code here | ||
| 24 | // runs once when the firmware starts up | ||
| 25 | |||
| 26 | matrix_init_user(); | ||
| 27 | led_init_ports(); | ||
| 28 | } | ||
| 29 | |||
| 30 | void led_init_ports(void) { | ||
| 31 | setPinOutput(B0); | ||
| 32 | setPinOutput(B1); | ||
| 33 | setPinOutput(B2); | ||
| 34 | } | ||
| 35 | |||
| 36 | void led_set_kb(uint8_t usb_led) { | ||
| 37 | // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here | ||
| 38 | |||
| 39 | if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) { | ||
| 40 | writePinLow(B0); | ||
| 41 | } else { | ||
| 42 | writePinHigh(B0); | ||
| 43 | } | ||
| 44 | |||
| 45 | if (IS_LED_ON(usb_led, USB_LED_SCROLL_LOCK)) { | ||
| 46 | writePinLow(B1); | ||
| 47 | } else { | ||
| 48 | writePinHigh(B1); | ||
| 49 | } | ||
| 50 | |||
| 51 | if (IS_LED_ON(usb_led, USB_LED_NUM_LOCK)) { | ||
| 52 | writePinLow(B2); | ||
| 53 | } else { | ||
| 54 | writePinHigh(B2); | ||
| 55 | } | ||
| 56 | |||
| 57 | led_set_user(usb_led); | ||
| 58 | } | ||
diff --git a/keyboards/wasdat/wasdat.h b/keyboards/wasdat/wasdat.h new file mode 100644 index 000000000..508ada485 --- /dev/null +++ b/keyboards/wasdat/wasdat.h | |||
| @@ -0,0 +1,104 @@ | |||
| 1 | /* Copyright 2019 Maarten Dekkers <maartenwut@gmail.com> | ||
| 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 | #pragma once | ||
| 17 | |||
| 18 | #include "quantum.h" | ||
| 19 | |||
| 20 | #define XXX KC_NO | ||
| 21 | |||
| 22 | /* This a shortcut to help you visually see your layout. | ||
| 23 | * | ||
| 24 | * The first section contains all of the arguments representing the physical | ||
| 25 | * layout of the board and position of the keys. | ||
| 26 | * | ||
| 27 | * The second converts the arguments into a two-dimensional array which | ||
| 28 | * represents the switch matrix. | ||
| 29 | */ | ||
| 30 | #define LAYOUT_fullsize_ansi( \ | ||
| 31 | K05, K44, K42, K32, K02, K21, K0A, K3E, K4E, K4D, K2D, K0D, K7D, K23, K53, K51, \ | ||
| 32 | K45, K25, K24, K22, K20, K40, K48, K28, K2A, K2E, K2F, K4F, K4A, K3D, K47, K4C, K46, K69, K67, K66, K76, \ | ||
| 33 | K35, K55, K54, K52, K50, K30, K38, K58, K5A, K5E, K5F, K3F, K3A, K1D, K49, K2C, K26, K59, K57, K56, K5C, \ | ||
| 34 | K34, K15, K14, K12, K10, K00, K08, K18, K1A, K1E, K1F, K0F, K6D, K39, K37, K36, \ | ||
| 35 | K3B, K65, K64, K62, K60, K70, K78, K68, K6A, K6E, K7F, K1B, K0C, K19, K17, K16, K1C, \ | ||
| 36 | K41, K31, K03, K09, K73, K11, K33, K61, K7C, K79, K77, K07, K06 \ | ||
| 37 | ) \ | ||
| 38 | { \ | ||
| 39 | { K00, XXX, K02, K03, XXX, K05, K06, K07, K08, K09, K0A, XXX, K0C, K0D, XXX, K0F }, \ | ||
| 40 | { K10, K11, K12, XXX, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E, K1F }, \ | ||
| 41 | { K20, K21, K22, K23, K24, K25, K26, XXX, K28, XXX, K2A, XXX, K2C, K2D, K2E, K2F }, \ | ||
| 42 | { K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, XXX, K3D, K3E, K3F }, \ | ||
| 43 | { K40, K41, K42, XXX, K44, K45, K46, K47, K48, K49, K4A, XXX, K4C, K4D, K4E, K4F }, \ | ||
| 44 | { K50, K51, K52, K53, K54, K55, K56, K57, K58, K59, K5A, XXX, K5C, XXX, K5E, K5F }, \ | ||
| 45 | { K60, K61, K62, XXX, K64, K65, K66, K67, K68, K69, K6A, XXX, XXX, K6D, K6E, XXX }, \ | ||
| 46 | { K70, XXX, XXX, K73, XXX, XXX, K76, K77, K78, K79, XXX, XXX, K7C, K7D, XXX, K7F } \ | ||
| 47 | } | ||
| 48 | |||
| 49 | #define LAYOUT_fullsize_iso( \ | ||
| 50 | K05, K44, K42, K32, K02, K21, K0A, K3E, K4E, K4D, K2D, K0D, K7D, K23, K53, K51, \ | ||
| 51 | K45, K25, K24, K22, K20, K40, K48, K28, K2A, K2E, K2F, K4F, K4A, K3D, K47, K4C, K46, K69, K67, K66, K76, \ | ||
| 52 | K35, K55, K54, K52, K50, K30, K38, K58, K5A, K5E, K5F, K3F, K3A, K49, K2C, K26, K59, K57, K56, K5C, \ | ||
| 53 | K34, K15, K14, K12, K10, K00, K08, K18, K1A, K1E, K1F, K0F, K1D, K6D, K39, K37, K36, \ | ||
| 54 | K3B, K04, K65, K64, K62, K60, K70, K78, K68, K6A, K6E, K7F, K1B, K0C, K19, K17, K16, K1C, \ | ||
| 55 | K41, K31, K03, K09, K73, K11, K33, K61, K7C, K79, K77, K07, K06 \ | ||
| 56 | ) \ | ||
| 57 | { \ | ||
| 58 | { K00, XXX, K02, K03, K04, K05, K06, K07, K08, K09, K0A, XXX, K0C, K0D, XXX, K0F }, \ | ||
| 59 | { K10, K11, K12, XXX, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E, K1F }, \ | ||
| 60 | { K20, K21, K22, K23, K24, K25, K26, XXX, K28, XXX, K2A, XXX, K2C, K2D, K2E, K2F }, \ | ||
| 61 | { K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, XXX, K3D, K3E, K3F }, \ | ||
| 62 | { K40, K41, K42, XXX, K44, K45, K46, K47, K48, K49, K4A, XXX, K4C, K4D, K4E, K4F }, \ | ||
| 63 | { K50, K51, K52, K53, K54, K55, K56, K57, K58, K59, K5A, XXX, K5C, XXX, K5E, K5F }, \ | ||
| 64 | { K60, K61, K62, XXX, K64, K65, K66, K67, K68, K69, K6A, XXX, XXX, K6D, K6E, XXX }, \ | ||
| 65 | { K70, XXX, XXX, K73, XXX, XXX, K76, K77, K78, K79, XXX, XXX, K7C, K7D, XXX, K7F } \ | ||
| 66 | } | ||
| 67 | |||
| 68 | #define LAYOUT_tkl_ansi( \ | ||
| 69 | K05, K44, K42, K32, K02, K21, K0A, K3E, K4E, K4D, K2D, K0D, K7D, K23, K53, K51, \ | ||
| 70 | K45, K25, K24, K22, K20, K40, K48, K28, K2A, K2E, K2F, K4F, K4A, K3D, K47, K4C, K46, \ | ||
| 71 | K35, K55, K54, K52, K50, K30, K38, K58, K5A, K5E, K5F, K3F, K3A, K1D, K49, K2C, K26, \ | ||
| 72 | K34, K15, K14, K12, K10, K00, K08, K18, K1A, K1E, K1F, K0F, K6D, \ | ||
| 73 | K3B, K65, K64, K62, K60, K70, K78, K68, K6A, K6E, K7F, K1B, K0C, \ | ||
| 74 | K41, K31, K03, K09, K73, K11, K33, K61, K7C, K79, K77 \ | ||
| 75 | ) \ | ||
| 76 | { \ | ||
| 77 | { K00, XXX, K02, K03, XXX, K05, XXX, XXX, K08, K09, K0A, XXX, K0C, K0D, XXX, K0F }, \ | ||
| 78 | { K10, K11, K12, XXX, K14, K15, XXX, XXX, K18, XXX, K1A, K1B, XXX, K1D, K1E, K1F }, \ | ||
| 79 | { K20, K21, K22, K23, K24, K25, K26, XXX, K28, XXX, K2A, XXX, K2C, K2D, K2E, K2F }, \ | ||
| 80 | { K30, K31, K32, K33, K34, K35, XXX, XXX, K38, XXX, K3A, K3B, XXX, K3D, K3E, K3F }, \ | ||
| 81 | { K40, K41, K42, XXX, K44, K45, K46, K47, K48, K49, K4A, XXX, K4C, K4D, K4E, K4F }, \ | ||
| 82 | { K50, K51, K52, K53, K54, K55, XXX, XXX, K58, XXX, K5A, XXX, XXX, XXX, K5E, K5F }, \ | ||
| 83 | { K60, K61, K62, XXX, K64, K65, XXX, XXX, K68, XXX, K6A, XXX, XXX, K6D, K6E, XXX }, \ | ||
| 84 | { K70, XXX, XXX, K73, XXX, XXX, XXX, K77, K78, K79, XXX, XXX, K7C, K7D, XXX, K7F } \ | ||
| 85 | } | ||
| 86 | |||
| 87 | #define LAYOUT_tkl_iso( \ | ||
| 88 | K05, K44, K42, K32, K02, K21, K0A, K3E, K4E, K4D, K2D, K0D, K7D, K23, K53, K51, \ | ||
| 89 | K45, K25, K24, K22, K20, K40, K48, K28, K2A, K2E, K2F, K4F, K4A, K3D, K47, K4C, K46, \ | ||
| 90 | K35, K55, K54, K52, K50, K30, K38, K58, K5A, K5E, K5F, K3F, K3A, K49, K2C, K26, \ | ||
| 91 | K34, K15, K14, K12, K10, K00, K08, K18, K1A, K1E, K1F, K0F, K1D, K6D, \ | ||
| 92 | K3B, K04, K65, K64, K62, K60, K70, K78, K68, K6A, K6E, K7F, K1B, K0C, \ | ||
| 93 | K41, K31, K03, K09, K73, K11, K33, K61, K7C, K79, K77 \ | ||
| 94 | ) \ | ||
| 95 | { \ | ||
| 96 | { K00, XXX, K02, K03, K04, K05, XXX, XXX, K08, K09, K0A, XXX, K0C, K0D, XXX, K0F }, \ | ||
| 97 | { K10, K11, K12, XXX, K14, K15, XXX, XXX, K18, XXX, K1A, K1B, XXX, K1D, K1E, K1F }, \ | ||
| 98 | { K20, K21, K22, K23, K24, K25, K26, XXX, K28, XXX, K2A, XXX, K2C, K2D, K2E, K2F }, \ | ||
| 99 | { K30, K31, K32, K33, K34, K35, XXX, XXX, K38, XXX, K3A, K3B, XXX, K3D, K3E, K3F }, \ | ||
| 100 | { K40, K41, K42, XXX, K44, K45, K46, K47, K48, K49, K4A, XXX, K4C, K4D, K4E, K4F }, \ | ||
| 101 | { K50, K51, K52, K53, K54, K55, XXX, XXX, K58, XXX, K5A, XXX, XXX, XXX, K5E, K5F }, \ | ||
| 102 | { K60, K61, K62, XXX, K64, K65, XXX, XXX, K68, XXX, K6A, XXX, XXX, K6D, K6E, XXX }, \ | ||
| 103 | { K70, XXX, XXX, K73, XXX, XXX, XXX, K77, K78, K79, XXX, XXX, K7C, K7D, XXX, K7F } \ | ||
| 104 | } | ||
