diff options
| author | Ramon Imbao <ramonimbao@gmail.com> | 2021-06-24 10:53:38 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-24 12:53:38 +1000 |
| commit | 02fcb1069ac034d593e02484604ddc0c2ebc2dc2 (patch) | |
| tree | af0975a4d55ee47e48c90980524db9248935d618 /keyboards/ramonimbao | |
| parent | 3cc037d8d86a148a8a61e594ad87766f9d0ddbd5 (diff) | |
| download | qmk_firmware-02fcb1069ac034d593e02484604ddc0c2ebc2dc2.tar.gz qmk_firmware-02fcb1069ac034d593e02484604ddc0c2ebc2dc2.zip | |
Add the SquishyTKL and SquishyFRL (#12764)
* Add SquishyTKL
* Add SquishyTKL-FRL
* Adjust readme.md and info.json
* Add JIS support for SquishyTKL
* Fix JIS layout macro
* Fix via layout and keymap
* Migrate SquishyTKL to STM32duino bootloader
* Make chibios conf files generic
* Change TKL via keymap to match number of layers
* Apply chibios changes to FRL as well
* Adjust README regarding flashing with dfu-util
* Add license and header guard
Diffstat (limited to 'keyboards/ramonimbao')
31 files changed, 1799 insertions, 0 deletions
diff --git a/keyboards/ramonimbao/squishyfrl/chconf.h b/keyboards/ramonimbao/squishyfrl/chconf.h new file mode 100644 index 000000000..ce018f56a --- /dev/null +++ b/keyboards/ramonimbao/squishyfrl/chconf.h | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | /* Copyright 2020 QMK | ||
| 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 | |||
| 18 | #pragma once | ||
| 19 | |||
| 20 | #define CH_CFG_ST_TIMEDELTA 0 | ||
| 21 | |||
| 22 | #define CH_CFG_USE_CONDVARS_TIMEOUT FALSE | ||
| 23 | |||
| 24 | #include_next <chconf.h> | ||
diff --git a/keyboards/ramonimbao/squishyfrl/config.h b/keyboards/ramonimbao/squishyfrl/config.h new file mode 100644 index 000000000..0c1d417b8 --- /dev/null +++ b/keyboards/ramonimbao/squishyfrl/config.h | |||
| @@ -0,0 +1,157 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2021 Ramon Imbao | ||
| 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 0xB16B | ||
| 24 | #define PRODUCT_ID 0x4BE5 | ||
| 25 | #define DEVICE_VER 0x0001 | ||
| 26 | #define MANUFACTURER Ramon Imbao | ||
| 27 | #define PRODUCT SquishyFRL | ||
| 28 | |||
| 29 | /* key matrix size */ | ||
| 30 | #define MATRIX_ROWS 9 | ||
| 31 | #define MATRIX_COLS 21 | ||
| 32 | |||
| 33 | /* | ||
| 34 | * Keyboard Matrix Assignments | ||
| 35 | * | ||
| 36 | * Change this to how you wired your keyboard | ||
| 37 | * COLS: AVR pins used for columns, left to right | ||
| 38 | * ROWS: AVR pins used for rows, top to bottom | ||
| 39 | * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) | ||
| 40 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | ||
| 41 | * | ||
| 42 | */ | ||
| 43 | #define MATRIX_ROW_PINS { B9, B8, A0, A1, A9, A8, B11, A6, A5} | ||
| 44 | #define MATRIX_COL_PINS { A7, C4, C5, B0, B1, B2, B10, B12, B13, B14, B15, C6, C9, C7, C8, A10, A4, C14, A3, A2, C3 } | ||
| 45 | |||
| 46 | #define UNUSED_PINS | ||
| 47 | |||
| 48 | /* COL2ROW, ROW2COL */ | ||
| 49 | #define DIODE_DIRECTION COL2ROW | ||
| 50 | |||
| 51 | /* | ||
| 52 | * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN. | ||
| 53 | */ | ||
| 54 | #define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6 | ||
| 55 | |||
| 56 | //#define LED_NUM_LOCK_PIN B0 | ||
| 57 | //#define LED_CAPS_LOCK_PIN B1 | ||
| 58 | //#define LED_SCROLL_LOCK_PIN B2 | ||
| 59 | //#define LED_COMPOSE_PIN B3 | ||
| 60 | //#define LED_KANA_PIN B4 | ||
| 61 | |||
| 62 | //#define BACKLIGHT_PIN B7 | ||
| 63 | //#define BACKLIGHT_LEVELS 3 | ||
| 64 | //#define BACKLIGHT_BREATHING | ||
| 65 | |||
| 66 | #define RGB_DI_PIN C15 | ||
| 67 | #ifdef RGB_DI_PIN | ||
| 68 | # define RGBLED_NUM 16 | ||
| 69 | //# define RGBLIGHT_HUE_STEP 8 | ||
| 70 | //# define RGBLIGHT_SAT_STEP 8 | ||
| 71 | //# define RGBLIGHT_VAL_STEP 8 | ||
| 72 | //# define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */ | ||
| 73 | //# define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */ | ||
| 74 | /*== all animations enable ==*/ | ||
| 75 | # define RGBLIGHT_ANIMATIONS | ||
| 76 | /*== or choose animations ==*/ | ||
| 77 | //# define RGBLIGHT_EFFECT_BREATHING | ||
| 78 | //# define RGBLIGHT_EFFECT_RAINBOW_MOOD | ||
| 79 | //# define RGBLIGHT_EFFECT_RAINBOW_SWIRL | ||
| 80 | //# define RGBLIGHT_EFFECT_SNAKE | ||
| 81 | //# define RGBLIGHT_EFFECT_KNIGHT | ||
| 82 | //# define RGBLIGHT_EFFECT_CHRISTMAS | ||
| 83 | //# define RGBLIGHT_EFFECT_STATIC_GRADIENT | ||
| 84 | //# define RGBLIGHT_EFFECT_RGB_TEST | ||
| 85 | //# define RGBLIGHT_EFFECT_ALTERNATING | ||
| 86 | /*== customize breathing effect ==*/ | ||
| 87 | /*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/ | ||
| 88 | //# define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64 | ||
| 89 | /*==== use exp() and sin() ====*/ | ||
| 90 | //# define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7 | ||
| 91 | //# define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255 | ||
| 92 | #endif | ||
| 93 | |||
| 94 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 95 | #define DEBOUNCE 5 | ||
| 96 | |||
| 97 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | ||
| 98 | //#define MATRIX_HAS_GHOST | ||
| 99 | |||
| 100 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 101 | #define LOCKING_SUPPORT_ENABLE | ||
| 102 | /* Locking resynchronize hack */ | ||
| 103 | #define LOCKING_RESYNC_ENABLE | ||
| 104 | |||
| 105 | /* If defined, GRAVE_ESC will always act as ESC when CTRL is held. | ||
| 106 | * This is useful for the Windows task manager shortcut (ctrl+shift+esc). | ||
| 107 | */ | ||
| 108 | //#define GRAVE_ESC_CTRL_OVERRIDE | ||
| 109 | |||
| 110 | /* | ||
| 111 | * Force NKRO | ||
| 112 | * | ||
| 113 | * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved | ||
| 114 | * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the | ||
| 115 | * makefile for this to work.) | ||
| 116 | * | ||
| 117 | * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N) | ||
| 118 | * until the next keyboard reset. | ||
| 119 | * | ||
| 120 | * NKRO may prevent your keystrokes from being detected in the BIOS, but it is | ||
| 121 | * fully operational during normal computer usage. | ||
| 122 | * | ||
| 123 | * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N) | ||
| 124 | * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by | ||
| 125 | * bootmagic, NKRO mode will always be enabled until it is toggled again during a | ||
| 126 | * power-up. | ||
| 127 | * | ||
| 128 | */ | ||
| 129 | //#define FORCE_NKRO | ||
| 130 | |||
| 131 | /* | ||
| 132 | * Feature disable options | ||
| 133 | * These options are also useful to firmware size reduction. | ||
| 134 | */ | ||
| 135 | |||
| 136 | /* disable debug print */ | ||
| 137 | //#define NO_DEBUG | ||
| 138 | |||
| 139 | /* disable print */ | ||
| 140 | //#define NO_PRINT | ||
| 141 | |||
| 142 | /* disable action features */ | ||
| 143 | //#define NO_ACTION_LAYER | ||
| 144 | //#define NO_ACTION_TAPPING | ||
| 145 | //#define NO_ACTION_ONESHOT | ||
| 146 | |||
| 147 | /* disable these deprecated features by default */ | ||
| 148 | #define NO_ACTION_MACRO | ||
| 149 | #define NO_ACTION_FUNCTION | ||
| 150 | |||
| 151 | /* Bootmagic Lite key configuration */ | ||
| 152 | //#define BOOTMAGIC_LITE_ROW 0 | ||
| 153 | //#define BOOTMAGIC_LITE_COLUMN 0 | ||
| 154 | |||
| 155 | /* QoL improvements */ | ||
| 156 | #define PERMISSIVE_HOLD | ||
| 157 | #define IGNORE_MOD_TAP_INTERRUPT | ||
diff --git a/keyboards/ramonimbao/squishyfrl/halconf.h b/keyboards/ramonimbao/squishyfrl/halconf.h new file mode 100644 index 000000000..344e66379 --- /dev/null +++ b/keyboards/ramonimbao/squishyfrl/halconf.h | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | /* Copyright 2020 QMK | ||
| 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 | #define HAL_USE_PWM TRUE | ||
| 20 | |||
| 21 | #include_next <halconf.h> | ||
| 22 | |||
| 23 | |||
diff --git a/keyboards/ramonimbao/squishyfrl/info.json b/keyboards/ramonimbao/squishyfrl/info.json new file mode 100644 index 000000000..585bce495 --- /dev/null +++ b/keyboards/ramonimbao/squishyfrl/info.json | |||
| @@ -0,0 +1,254 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "SquishyTKL", | ||
| 3 | "url": "", | ||
| 4 | "maintainer": "Ramon Imbao", | ||
| 5 | "width": 18.25, | ||
| 6 | "height": 5, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT_ansi": { | ||
| 9 | "layout": [ | ||
| 10 | {"x":0, "y":0}, | ||
| 11 | {"x":1, "y":0}, | ||
| 12 | {"x":2, "y":0}, | ||
| 13 | {"x":3, "y":0}, | ||
| 14 | {"x":4, "y":0}, | ||
| 15 | {"x":5, "y":0}, | ||
| 16 | {"x":6, "y":0}, | ||
| 17 | {"x":7, "y":0}, | ||
| 18 | {"x":8, "y":0}, | ||
| 19 | {"x":9, "y":0}, | ||
| 20 | {"x":10, "y":0}, | ||
| 21 | {"x":11, "y":0}, | ||
| 22 | {"x":12, "y":0}, | ||
| 23 | {"x":13, "y":0, "w":2}, | ||
| 24 | {"x":15.25, "y":0}, | ||
| 25 | {"x":16.25, "y":0}, | ||
| 26 | {"x":17.25, "y":0}, | ||
| 27 | |||
| 28 | {"x":0, "y":1, "w":1.5}, | ||
| 29 | {"x":1.5, "y":1}, | ||
| 30 | {"x":2.5, "y":1}, | ||
| 31 | {"x":3.5, "y":1}, | ||
| 32 | {"x":4.5, "y":1}, | ||
| 33 | {"x":5.5, "y":1}, | ||
| 34 | {"x":6.5, "y":1}, | ||
| 35 | {"x":7.5, "y":1}, | ||
| 36 | {"x":8.5, "y":1}, | ||
| 37 | {"x":9.5, "y":1}, | ||
| 38 | {"x":10.5, "y":1}, | ||
| 39 | {"x":11.5, "y":1}, | ||
| 40 | {"x":12.5, "y":1}, | ||
| 41 | {"x":13.5, "y":1, "w":1.5}, | ||
| 42 | {"x":15.25, "y":1}, | ||
| 43 | {"x":16.25, "y":1}, | ||
| 44 | {"x":17.25, "y":1}, | ||
| 45 | |||
| 46 | {"x":0, "y":2, "w":1.75}, | ||
| 47 | {"x":1.75, "y":2}, | ||
| 48 | {"x":2.75, "y":2}, | ||
| 49 | {"x":3.75, "y":2}, | ||
| 50 | {"x":4.75, "y":2}, | ||
| 51 | {"x":5.75, "y":2}, | ||
| 52 | {"x":6.75, "y":2}, | ||
| 53 | {"x":7.75, "y":2}, | ||
| 54 | {"x":8.75, "y":2}, | ||
| 55 | {"x":9.75, "y":2}, | ||
| 56 | {"x":10.75, "y":2}, | ||
| 57 | {"x":11.75, "y":2}, | ||
| 58 | {"x":12.75, "y":2, "w":2.25}, | ||
| 59 | |||
| 60 | {"x":0, "y":3, "w":2.25}, | ||
| 61 | {"x":2.25, "y":3}, | ||
| 62 | {"x":3.25, "y":3}, | ||
| 63 | {"x":4.25, "y":3}, | ||
| 64 | {"x":5.25, "y":3}, | ||
| 65 | {"x":6.25, "y":3}, | ||
| 66 | {"x":7.25, "y":3}, | ||
| 67 | {"x":8.25, "y":3}, | ||
| 68 | {"x":9.25, "y":3}, | ||
| 69 | {"x":10.25, "y":3}, | ||
| 70 | {"x":11.25, "y":3}, | ||
| 71 | {"x":12.25, "y":3, "w":1.75}, | ||
| 72 | {"x":14, "y":3} | ||
| 73 | {"x":16.25, "y":3}, | ||
| 74 | |||
| 75 | {"x":0, "y":4, "w":1.25}, | ||
| 76 | {"x":1.25, "y":4, "w":1.25}, | ||
| 77 | {"x":2.5, "y":4, "w":1.25}, | ||
| 78 | {"x":3.75, "y":4, "w":6.25}, | ||
| 79 | {"x":10, "y":4, "w":1.25}, | ||
| 80 | {"x":11.25, "y":4, "w":1.25}, | ||
| 81 | {"x":12.5, "y":4, "w":1.25}, | ||
| 82 | {"x":13.75, "y":4, "w":1.25}, | ||
| 83 | {"x":15.25, "y":4}, | ||
| 84 | {"x":16.25, "y":4}, | ||
| 85 | {"x":17.25, "y":4} | ||
| 86 | ] | ||
| 87 | }, | ||
| 88 | "LAYOUT_iso": { | ||
| 89 | "layout": [ | ||
| 90 | {"x":0, "y":0}, | ||
| 91 | {"x":1, "y":0}, | ||
| 92 | {"x":2, "y":0}, | ||
| 93 | {"x":3, "y":0}, | ||
| 94 | {"x":4, "y":0}, | ||
| 95 | {"x":5, "y":0}, | ||
| 96 | {"x":6, "y":0}, | ||
| 97 | {"x":7, "y":0}, | ||
| 98 | {"x":8, "y":0}, | ||
| 99 | {"x":9, "y":0}, | ||
| 100 | {"x":10, "y":0}, | ||
| 101 | {"x":11, "y":0}, | ||
| 102 | {"x":12, "y":0}, | ||
| 103 | {"x":13, "y":0, "w":2}, | ||
| 104 | {"x":15.25, "y":0}, | ||
| 105 | {"x":16.25, "y":0}, | ||
| 106 | {"x":17.25, "y":0}, | ||
| 107 | |||
| 108 | {"x":0, "y":1, "w":1.5}, | ||
| 109 | {"x":1.5, "y":1}, | ||
| 110 | {"x":2.5, "y":1}, | ||
| 111 | {"x":3.5, "y":1}, | ||
| 112 | {"x":4.5, "y":1}, | ||
| 113 | {"x":5.5, "y":1}, | ||
| 114 | {"x":6.5, "y":1}, | ||
| 115 | {"x":7.5, "y":1}, | ||
| 116 | {"x":8.5, "y":1}, | ||
| 117 | {"x":9.5, "y":1}, | ||
| 118 | {"x":10.5, "y":1}, | ||
| 119 | {"x":11.5, "y":1}, | ||
| 120 | {"x":12.5, "y":1}, | ||
| 121 | {"x":15.25, "y":1}, | ||
| 122 | {"x":16.25, "y":1}, | ||
| 123 | {"x":17.25, "y":1}, | ||
| 124 | |||
| 125 | {"x":0, "y":2, "w":1.75}, | ||
| 126 | {"x":1.75, "y":2}, | ||
| 127 | {"x":2.75, "y":2}, | ||
| 128 | {"x":3.75, "y":2}, | ||
| 129 | {"x":4.75, "y":2}, | ||
| 130 | {"x":5.75, "y":2}, | ||
| 131 | {"x":6.75, "y":2}, | ||
| 132 | {"x":7.75, "y":2}, | ||
| 133 | {"x":8.75, "y":2}, | ||
| 134 | {"x":9.75, "y":2}, | ||
| 135 | {"x":10.75, "y":2}, | ||
| 136 | {"x":11.75, "y":2}, | ||
| 137 | {"x":12.75, "y":2}, | ||
| 138 | {"x":13.75, "y":1, "w":1.25, "h":2}, | ||
| 139 | |||
| 140 | {"x":0, "y":3, "w":1.25}, | ||
| 141 | {"x":1.25, "y":3}, | ||
| 142 | {"x":2.25, "y":3}, | ||
| 143 | {"x":3.25, "y":3}, | ||
| 144 | {"x":4.25, "y":3}, | ||
| 145 | {"x":5.25, "y":3}, | ||
| 146 | {"x":6.25, "y":3}, | ||
| 147 | {"x":7.25, "y":3}, | ||
| 148 | {"x":8.25, "y":3}, | ||
| 149 | {"x":9.25, "y":3}, | ||
| 150 | {"x":10.25, "y":3}, | ||
| 151 | {"x":11.25, "y":3}, | ||
| 152 | {"x":12.25, "y":3, "w":1.75}, | ||
| 153 | {"x":14, "y":3}, | ||
| 154 | {"x":16.25, "y":3}, | ||
| 155 | |||
| 156 | {"x":0, "y":4, "w":1.25}, | ||
| 157 | {"x":1.25, "y":4, "w":1.25}, | ||
| 158 | {"x":2.5, "y":4, "w":1.25}, | ||
| 159 | {"x":3.75, "y":4, "w":6.25}, | ||
| 160 | {"x":10, "y":4, "w":1.25}, | ||
| 161 | {"x":11.25, "y":4, "w":1.25}, | ||
| 162 | {"x":12.5, "y":4, "w":1.25}, | ||
| 163 | {"x":13.75, "y":4, "w":1.25}, | ||
| 164 | {"x":15.25, "y":4}, | ||
| 165 | {"x":16.25, "y":4}, | ||
| 166 | {"x":17.25, "y":4} | ||
| 167 | ] | ||
| 168 | }, | ||
| 169 | "LAYOUT_all": { | ||
| 170 | "layout": [ | ||
| 171 | {"x":0, "y":0}, | ||
| 172 | {"x":1, "y":0}, | ||
| 173 | {"x":2, "y":0}, | ||
| 174 | {"x":3, "y":0}, | ||
| 175 | {"x":4, "y":0}, | ||
| 176 | {"x":5, "y":0}, | ||
| 177 | {"x":6, "y":0}, | ||
| 178 | {"x":7, "y":0}, | ||
| 179 | {"x":8, "y":0}, | ||
| 180 | {"x":9, "y":0}, | ||
| 181 | {"x":10, "y":0}, | ||
| 182 | {"x":11, "y":0}, | ||
| 183 | {"x":12, "y":0}, | ||
| 184 | {"x":13, "y":0}, | ||
| 185 | {"x":14, "y":0}, | ||
| 186 | {"x":15.25, "y":0}, | ||
| 187 | {"x":16.25, "y":0}, | ||
| 188 | {"x":17.25, "y":0}, | ||
| 189 | |||
| 190 | {"x":0, "y":1, "w":1.5}, | ||
| 191 | {"x":1.5, "y":1}, | ||
| 192 | {"x":2.5, "y":1}, | ||
| 193 | {"x":3.5, "y":1}, | ||
| 194 | {"x":4.5, "y":1}, | ||
| 195 | {"x":5.5, "y":1}, | ||
| 196 | {"x":6.5, "y":1}, | ||
| 197 | {"x":7.5, "y":1}, | ||
| 198 | {"x":8.5, "y":1}, | ||
| 199 | {"x":9.5, "y":1}, | ||
| 200 | {"x":10.5, "y":1}, | ||
| 201 | {"x":11.5, "y":1}, | ||
| 202 | {"x":12.5, "y":1}, | ||
| 203 | {"x":13.5, "y":1, "w":1.5}, | ||
| 204 | {"x":15.25, "y":1}, | ||
| 205 | {"x":16.25, "y":1}, | ||
| 206 | {"x":17.25, "y":1}, | ||
| 207 | |||
| 208 | {"x":0, "y":2, "w":1.75}, | ||
| 209 | {"x":1.75, "y":2}, | ||
| 210 | {"x":2.75, "y":2}, | ||
| 211 | {"x":3.75, "y":2}, | ||
| 212 | {"x":4.75, "y":2}, | ||
| 213 | {"x":5.75, "y":2}, | ||
| 214 | {"x":6.75, "y":2}, | ||
| 215 | {"x":7.75, "y":2}, | ||
| 216 | {"x":8.75, "y":2}, | ||
| 217 | {"x":9.75, "y":2}, | ||
| 218 | {"x":10.75, "y":2}, | ||
| 219 | {"x":11.75, "y":2}, | ||
| 220 | {"x":12.75, "y":2, "w":2.25}, | ||
| 221 | |||
| 222 | {"x":0, "y":3, "w":1.25}, | ||
| 223 | {"x":1.25, "y":3}, | ||
| 224 | {"x":2.25, "y":3}, | ||
| 225 | {"x":3.25, "y":3}, | ||
| 226 | {"x":4.25, "y":3}, | ||
| 227 | {"x":5.25, "y":3}, | ||
| 228 | {"x":6.25, "y":3}, | ||
| 229 | {"x":7.25, "y":3}, | ||
| 230 | {"x":8.25, "y":3}, | ||
| 231 | {"x":9.25, "y":3}, | ||
| 232 | {"x":10.25, "y":3}, | ||
| 233 | {"x":11.25, "y":3}, | ||
| 234 | {"x":12.25, "y":3, "w":1.75}, | ||
| 235 | {"x":14, "y":3}, | ||
| 236 | {"x":16.25, "y":3}, | ||
| 237 | |||
| 238 | {"x":0, "y":4, "w":1.25}, | ||
| 239 | {"x":1.25, "y":4, "w":1.25}, | ||
| 240 | {"x":2.5, "y":4, "w":1.25}, | ||
| 241 | {"x":3.75, "y":4, "w":3}, | ||
| 242 | {"x":6.75, "y":4}, | ||
| 243 | {"x":7.75, "y":4, "w":2.25}, | ||
| 244 | {"x":10, "y":4, "w":1.25}, | ||
| 245 | {"x":11.25, "y":4, "w":1.25}, | ||
| 246 | {"x":12.5, "y":4, "w":1.25}, | ||
| 247 | {"x":13.75, "y":4, "w":1.25}, | ||
| 248 | {"x":15.25, "y":4}, | ||
| 249 | {"x":16.25, "y":4}, | ||
| 250 | {"x":17.25, "y":4} | ||
| 251 | ] | ||
| 252 | } | ||
| 253 | } | ||
| 254 | } | ||
diff --git a/keyboards/ramonimbao/squishyfrl/keymaps/default/keymap.c b/keyboards/ramonimbao/squishyfrl/keymaps/default/keymap.c new file mode 100644 index 000000000..c29df874c --- /dev/null +++ b/keyboards/ramonimbao/squishyfrl/keymaps/default/keymap.c | |||
| @@ -0,0 +1,33 @@ | |||
| 1 | /* Copyright 2021 Ramon Imbao | ||
| 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 | [0] = LAYOUT_ansi( | ||
| 20 | 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_INS, KC_HOME, KC_PGUP, | ||
| 21 | 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, | ||
| 22 | 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, | ||
| 23 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, MO(1), KC_UP, | ||
| 24 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RGUI, KC_MENU, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT | ||
| 25 | ), | ||
| 26 | [1] = LAYOUT_ansi( | ||
| 27 | _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, _______, _______, | ||
| 28 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 29 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 30 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 31 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 32 | ) | ||
| 33 | }; | ||
diff --git a/keyboards/ramonimbao/squishyfrl/keymaps/default/readme.md b/keyboards/ramonimbao/squishyfrl/keymaps/default/readme.md new file mode 100644 index 000000000..b20cf7436 --- /dev/null +++ b/keyboards/ramonimbao/squishyfrl/keymaps/default/readme.md | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | # The default keymap for SquishyTKL | ||
| 2 | |||
| 3 | ANSI, 6.25u bottom row | ||
diff --git a/keyboards/ramonimbao/squishyfrl/keymaps/iso/keymap.c b/keyboards/ramonimbao/squishyfrl/keymaps/iso/keymap.c new file mode 100644 index 000000000..e6dc1c974 --- /dev/null +++ b/keyboards/ramonimbao/squishyfrl/keymaps/iso/keymap.c | |||
| @@ -0,0 +1,33 @@ | |||
| 1 | /* Copyright 2021 Ramon Imbao | ||
| 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 | [0] = LAYOUT_iso( | ||
| 20 | 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_INS, KC_HOME, KC_PGUP, | ||
| 21 | 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, | ||
| 22 | 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, | ||
| 23 | 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, MO(1), KC_UP, | ||
| 24 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RGUI, KC_MENU, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT | ||
| 25 | ), | ||
| 26 | [1] = LAYOUT_iso( | ||
| 27 | _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, _______, _______, | ||
| 28 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 29 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,_______, _______, | ||
| 30 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 31 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 32 | ) | ||
| 33 | }; | ||
diff --git a/keyboards/ramonimbao/squishyfrl/keymaps/via/config.h b/keyboards/ramonimbao/squishyfrl/keymaps/via/config.h new file mode 100644 index 000000000..c7cec8a9d --- /dev/null +++ b/keyboards/ramonimbao/squishyfrl/keymaps/via/config.h | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2021 Ramon Imbao | ||
| 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 | #define DYNAMIC_KEYMAP_LAYER_COUNT 2 | ||
diff --git a/keyboards/ramonimbao/squishyfrl/keymaps/via/keymap.c b/keyboards/ramonimbao/squishyfrl/keymaps/via/keymap.c new file mode 100644 index 000000000..e1158c2a2 --- /dev/null +++ b/keyboards/ramonimbao/squishyfrl/keymaps/via/keymap.c | |||
| @@ -0,0 +1,33 @@ | |||
| 1 | /* Copyright 2021 Ramon Imbao | ||
| 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 | [0] = LAYOUT_all( | ||
| 20 | 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_BSPC, KC_INS, KC_HOME, KC_PGUP, | ||
| 21 | 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, | ||
| 22 | 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, | ||
| 23 | KC_LSFT, KC_NO, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, MO(1), KC_UP, | ||
| 24 | KC_LCTL, KC_LGUI, KC_LALT, KC_NO, KC_SPC, KC_NO, KC_RALT, KC_RGUI, KC_MENU, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT | ||
| 25 | ), | ||
| 26 | [1] = LAYOUT_all( | ||
| 27 | RESET, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, _______, _______, _______, | ||
| 28 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 29 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 30 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 31 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 32 | ), | ||
| 33 | }; | ||
diff --git a/keyboards/ramonimbao/squishyfrl/keymaps/via/rules.mk b/keyboards/ramonimbao/squishyfrl/keymaps/via/rules.mk new file mode 100644 index 000000000..1e5b99807 --- /dev/null +++ b/keyboards/ramonimbao/squishyfrl/keymaps/via/rules.mk | |||
| @@ -0,0 +1 @@ | |||
| VIA_ENABLE = yes | |||
diff --git a/keyboards/ramonimbao/squishyfrl/mcuconf.h b/keyboards/ramonimbao/squishyfrl/mcuconf.h new file mode 100644 index 000000000..b14bd32f8 --- /dev/null +++ b/keyboards/ramonimbao/squishyfrl/mcuconf.h | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | /* Copyright 2020 QMK | ||
| 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_next <mcuconf.h> | ||
| 18 | |||
| 19 | #undef STM32_PWM_USE_TIM2 | ||
| 20 | #define STM32_PWM_USE_TIM2 TRUE | ||
| 21 | |||
| 22 | #undef STM32_SPI_USE_SPI2 | ||
| 23 | #define STM32_SPI_USE_SPI2 FALSE | ||
| 24 | |||
diff --git a/keyboards/ramonimbao/squishyfrl/readme.md b/keyboards/ramonimbao/squishyfrl/readme.md new file mode 100644 index 000000000..e1039d560 --- /dev/null +++ b/keyboards/ramonimbao/squishyfrl/readme.md | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | # SquishyFRL | ||
| 2 | |||
| 3 |  | ||
| 4 | |||
| 5 | A stacked acrylic o-ring gasket mounted F-row-less TKL keyboard with a twist! | ||
| 6 | |||
| 7 | * Keyboard Maintainer: [Ramon Imbao](https://github.com/ramonimbao) | ||
| 8 | * Hardware Supported: STM32F103RB | ||
| 9 | |||
| 10 | Make example for this keyboard (after setting up your build environment): | ||
| 11 | |||
| 12 | make ramonimbao/squishyfrl:via | ||
| 13 | |||
| 14 | Flashing example for this keyboard: | ||
| 15 | |||
| 16 | dfu-util -d 1eaf:0003 -a 2 -D path/to/ramonimbao_squishyfrl_via.bin | ||
| 17 | |||
| 18 | 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/ramonimbao/squishyfrl/rules.mk b/keyboards/ramonimbao/squishyfrl/rules.mk new file mode 100644 index 000000000..955c819c7 --- /dev/null +++ b/keyboards/ramonimbao/squishyfrl/rules.mk | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = STM32F103 | ||
| 3 | |||
| 4 | # Bootloader selection | ||
| 5 | BOOTLOADER = stm32duino | ||
| 6 | |||
| 7 | # Build Options | ||
| 8 | # change yes to no to disable | ||
| 9 | # | ||
| 10 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration | ||
| 11 | MOUSEKEY_ENABLE = yes # Mouse keys | ||
| 12 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
| 13 | CONSOLE_ENABLE = no # Console for debug | ||
| 14 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
| 15 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 16 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 17 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 18 | NKRO_ENABLE = no # USB Nkey Rollover | ||
| 19 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 20 | RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow | ||
| 21 | BLUETOOTH_ENABLE = no # Enable Bluetooth | ||
| 22 | AUDIO_ENABLE = no # Audio output | ||
| 23 | |||
| 24 | # Enter lower-power sleep mode when on the ChibiOS idle thread | ||
| 25 | OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE | ||
diff --git a/keyboards/ramonimbao/squishyfrl/squishyfrl.c b/keyboards/ramonimbao/squishyfrl/squishyfrl.c new file mode 100644 index 000000000..db2a2ae93 --- /dev/null +++ b/keyboards/ramonimbao/squishyfrl/squishyfrl.c | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | /* Copyright 2021 Ramon Imbao | ||
| 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 "squishyfrl.h" | ||
diff --git a/keyboards/ramonimbao/squishyfrl/squishyfrl.h b/keyboards/ramonimbao/squishyfrl/squishyfrl.h new file mode 100644 index 000000000..e98139da1 --- /dev/null +++ b/keyboards/ramonimbao/squishyfrl/squishyfrl.h | |||
| @@ -0,0 +1,91 @@ | |||
| 1 | /* Copyright 2021 Ramon Imbao | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | |||
| 17 | #pragma once | ||
| 18 | |||
| 19 | #include "quantum.h" | ||
| 20 | |||
| 21 | /* This is a shortcut to help you visually see your layout. | ||
| 22 | * | ||
| 23 | * The first section contains all of the arguments representing the physical | ||
| 24 | * layout of the board and position of the keys. | ||
| 25 | * | ||
| 26 | * The second converts the arguments into a two-dimensional array which | ||
| 27 | * represents the switch matrix. | ||
| 28 | */ | ||
| 29 | |||
| 30 | #define ___ KC_NO | ||
| 31 | |||
| 32 | #define LAYOUT_ansi( \ | ||
| 33 | k85, k86, k87, k88, k89, k8a, k8b, k8c, k8d, k8e, k8f, k8g, k8h, k8i, k4k, k4l, k4m, \ | ||
| 34 | k95, k96, k97, k98, k99, k9a, k9b, k9c, k9d, k9e, k9f, k9g, k9h, k9j, k5k, k5l, k5m, \ | ||
| 35 | ka5, ka6, ka7, ka8, ka9, kaa, kab, kac, kad, kae, kaf, kag, kai, \ | ||
| 36 | kb5, kb7, kb8, kb9, kba, kbb, kbc, kbd, kbe, kbf, kbg, kbi, kbj, k6l, \ | ||
| 37 | kc5, kc6, kc7, kcd, kcf, kcg, kch, kci, k7k, k7l, k7m \ | ||
| 38 | ) { \ | ||
| 39 | /* 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 */ \ | ||
| 40 | /* 0 1 2 3 4 5 6 7 8 9 a b c d e f g h i j k */ \ | ||
| 41 | /* 0 | 0 */ { ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, k4k, k4l, k4m, ___, ___, ___ }, \ | ||
| 42 | /* 1 | 1 */ { ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, k5k, k5l, k5m, ___, ___, ___ }, \ | ||
| 43 | /* 2 | 2 */ { ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, k6l, ___ }, \ | ||
| 44 | /* 3 | 3 */ { ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, k7k, k7l, k7m }, \ | ||
| 45 | /* 4 | 4 */ { k85, k86, k87, k88, k89, k8a, k8b, k8c, k8d, k8e, k8f, k8g, k8h, k8i, ___, ___, ___, ___, ___, ___, ___ }, \ | ||
| 46 | /* 5 | 5 */ { k95, k96, k97, k98, k99, k9a, k9b, k9c, k9d, k9e, k9f, k9g, k9h, ___, k9j, ___, ___, ___, ___, ___, ___ }, \ | ||
| 47 | /* 6 | 6 */ { ka5, ka6, ka7, ka8, ka9, kaa, kab, kac, kad, kae, kaf, kag, ___, kai, ___, ___, ___, ___, ___, ___, ___ }, \ | ||
| 48 | /* 7 | 7 */ { kb5, ___, kb7, kb8, kb9, kba, kbb, kbc, kbd, kbe, kbf, kbg, ___, kbi, kbj, ___, ___, ___, ___, ___, ___ }, \ | ||
| 49 | /* 8 | 8 */ { kc5, kc6, kc7, ___, ___, ___, ___, ___, kcd, ___, kcf, kcg, ___, kch, kci, ___, ___, ___, ___, ___, ___ }, \ | ||
| 50 | } | ||
| 51 | |||
| 52 | #define LAYOUT_iso( \ | ||
| 53 | k85, k86, k87, k88, k89, k8a, k8b, k8c, k8d, k8e, k8f, k8g, k8h, k8i, k4k, k4l, k4m, \ | ||
| 54 | k95, k96, k97, k98, k99, k9a, k9b, k9c, k9d, k9e, k9f, k9g, k9h, k5k, k5l, k5m, \ | ||
| 55 | ka5, ka6, ka7, ka8, ka9, kaa, kab, kac, kad, kae, kaf, kag, kai, k9j, \ | ||
| 56 | kb5, kb6, kb7, kb8, kb9, kba, kbb, kbc, kbd, kbe, kbf, kbg, kbi, kbj, k6l, \ | ||
| 57 | kc5, kc6, kc7, kcd, kcf, kcg, kch, kci, k7k, k7l, k7m \ | ||
| 58 | ) { \ | ||
| 59 | /* 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 */ \ | ||
| 60 | /* 0 1 2 3 4 5 6 7 8 9 a b c d e f g h i j k */ \ | ||
| 61 | /* 0 | 0 */ { ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, k4k, k4l, k4m, ___, ___, ___ }, \ | ||
| 62 | /* 1 | 1 */ { ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, k5k, k5l, k5m, ___, ___, ___ }, \ | ||
| 63 | /* 2 | 2 */ { ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, k6l, ___ }, \ | ||
| 64 | /* 3 | 3 */ { ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, k7k, k7l, k7m }, \ | ||
| 65 | /* 4 | 4 */ { k85, k86, k87, k88, k89, k8a, k8b, k8c, k8d, k8e, k8f, k8g, k8h, k8i, ___, ___, ___, ___, ___, ___, ___ }, \ | ||
| 66 | /* 5 | 5 */ { k95, k96, k97, k98, k99, k9a, k9b, k9c, k9d, k9e, k9f, k9g, k9h, ___, k9j, ___, ___, ___, ___, ___, ___ }, \ | ||
| 67 | /* 6 | 6 */ { ka5, ka6, ka7, ka8, ka9, kaa, kab, kac, kad, kae, kaf, kag, ___, kai, ___, ___, ___, ___, ___, ___, ___ }, \ | ||
| 68 | /* 7 | 7 */ { kb5, kb6, kb7, kb8, kb9, kba, kbb, kbc, kbd, kbe, kbf, kbg, ___, kbi, kbj, ___, ___, ___, ___, ___, ___ }, \ | ||
| 69 | /* 8 | 8 */ { kc5, kc6, kc7, ___, ___, ___, ___, ___, kcd, ___, kcf, kcg, ___, kch, kci, ___, ___, ___, ___, ___, ___ }, \ | ||
| 70 | } | ||
| 71 | |||
| 72 | |||
| 73 | #define LAYOUT_all( \ | ||
| 74 | k85, k86, k87, k88, k89, k8a, k8b, k8c, k8d, k8e, k8f, k8g, k8h, k8i, k8j, k4k, k4l, k4m, \ | ||
| 75 | k95, k96, k97, k98, k99, k9a, k9b, k9c, k9d, k9e, k9f, k9g, k9h, k9j, k5k, k5l, k5m, \ | ||
| 76 | ka5, ka6, ka7, ka8, ka9, kaa, kab, kac, kad, kae, kaf, kag, kai, \ | ||
| 77 | kb5, kb6, kb7, kb8, kb9, kba, kbb, kbc, kbd, kbe, kbf, kbg, kbi, kbj, k6l, \ | ||
| 78 | kc5, kc6, kc7, kc8, kcd, kce, kcf, kcg, kch, kci, k7k, k7l, k7m \ | ||
| 79 | ) { \ | ||
| 80 | /* 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 */ \ | ||
| 81 | /* 0 1 2 3 4 5 6 7 8 9 a b c d e f g h i j k */ \ | ||
| 82 | /* 0 | 0 */ { ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, k4k, k4l, k4m, ___, ___, ___ }, \ | ||
| 83 | /* 1 | 1 */ { ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, k5k, k5l, k5m, ___, ___, ___ }, \ | ||
| 84 | /* 2 | 2 */ { ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, k6l, ___ }, \ | ||
| 85 | /* 3 | 3 */ { ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, k7k, k7l, k7m }, \ | ||
| 86 | /* 4 | 4 */ { k85, k86, k87, k88, k89, k8a, k8b, k8c, k8d, k8e, k8f, k8g, k8h, k8i, k8j, ___, ___, ___, ___, ___, ___ }, \ | ||
| 87 | /* 5 | 5 */ { k95, k96, k97, k98, k99, k9a, k9b, k9c, k9d, k9e, k9f, k9g, k9h, ___, k9j, ___, ___, ___, ___, ___, ___ }, \ | ||
| 88 | /* 6 | 6 */ { ka5, ka6, ka7, ka8, ka9, kaa, kab, kac, kad, kae, kaf, kag, ___, kai, ___, ___, ___, ___, ___, ___, ___ }, \ | ||
| 89 | /* 7 | 7 */ { kb5, kb6, kb7, kb8, kb9, kba, kbb, kbc, kbd, kbe, kbf, kbg, ___, kbi, kbj, ___, ___, ___, ___, ___, ___ }, \ | ||
| 90 | /* 8 | 8 */ { kc5, kc6, kc7, kc8, ___, ___, ___, ___, kcd, kce, kcf, kcg, ___, kch, kci, ___, ___, ___, ___, ___, ___ }, \ | ||
| 91 | } | ||
diff --git a/keyboards/ramonimbao/squishytkl/chconf.h b/keyboards/ramonimbao/squishytkl/chconf.h new file mode 100644 index 000000000..ce018f56a --- /dev/null +++ b/keyboards/ramonimbao/squishytkl/chconf.h | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | /* Copyright 2020 QMK | ||
| 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 | |||
| 18 | #pragma once | ||
| 19 | |||
| 20 | #define CH_CFG_ST_TIMEDELTA 0 | ||
| 21 | |||
| 22 | #define CH_CFG_USE_CONDVARS_TIMEOUT FALSE | ||
| 23 | |||
| 24 | #include_next <chconf.h> | ||
diff --git a/keyboards/ramonimbao/squishytkl/config.h b/keyboards/ramonimbao/squishytkl/config.h new file mode 100644 index 000000000..3e0812bb1 --- /dev/null +++ b/keyboards/ramonimbao/squishytkl/config.h | |||
| @@ -0,0 +1,165 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2021 Ramon Imbao | ||
| 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 0xB16B | ||
| 24 | #define PRODUCT_ID 0x00B1 | ||
| 25 | #define DEVICE_VER 0xE500 | ||
| 26 | #define MANUFACTURER Ramon Imbao | ||
| 27 | #define PRODUCT SquishyTKL | ||
| 28 | |||
| 29 | /* key matrix size */ | ||
| 30 | #define MATRIX_ROWS 14 | ||
| 31 | #define MATRIX_COLS 26 | ||
| 32 | |||
| 33 | /* | ||
| 34 | * Keyboard Matrix Assignments | ||
| 35 | * | ||
| 36 | * Change this to how you wired your keyboard | ||
| 37 | * COLS: AVR pins used for columns, left to right | ||
| 38 | * ROWS: AVR pins used for rows, top to bottom | ||
| 39 | * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) | ||
| 40 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | ||
| 41 | * | ||
| 42 | */ | ||
| 43 | #define MATRIX_ROW_PINS { B3, B4, B5, C13, B9, B8, A0, A1, A9, A8, B11, A6, A5, C0 } | ||
| 44 | #define MATRIX_COL_PINS { A15, C10, C11, C12, D2, A7, C4, C5, B0, B1, B2, B10, B12, B13, B14, B15, C6, C9, C7, C8, A10, A4, C14, A3, A2, C3 } | ||
| 45 | |||
| 46 | #define UNUSED_PINS | ||
| 47 | |||
| 48 | /* COL2ROW, ROW2COL */ | ||
| 49 | #define DIODE_DIRECTION COL2ROW | ||
| 50 | |||
| 51 | /* | ||
| 52 | * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN. | ||
| 53 | */ | ||
| 54 | #define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6 | ||
| 55 | |||
| 56 | //#define LED_NUM_LOCK_PIN B0 | ||
| 57 | //#define LED_CAPS_LOCK_PIN B1 | ||
| 58 | //#define LED_SCROLL_LOCK_PIN B2 | ||
| 59 | //#define LED_COMPOSE_PIN B3 | ||
| 60 | //#define LED_KANA_PIN B4 | ||
| 61 | |||
| 62 | //#define BACKLIGHT_PIN B7 | ||
| 63 | //#define BACKLIGHT_LEVELS 3 | ||
| 64 | //#define BACKLIGHT_BREATHING | ||
| 65 | |||
| 66 | #define RGB_DI_PIN C15 | ||
| 67 | #ifdef RGB_DI_PIN | ||
| 68 | # define RGBLED_NUM 16 | ||
| 69 | //# define RGBLIGHT_HUE_STEP 8 | ||
| 70 | //# define RGBLIGHT_SAT_STEP 8 | ||
| 71 | //# define RGBLIGHT_VAL_STEP 8 | ||
| 72 | //# define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */ | ||
| 73 | //# define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */ | ||
| 74 | /*== all animations enable ==*/ | ||
| 75 | # define RGBLIGHT_ANIMATIONS | ||
| 76 | /*== or choose animations ==*/ | ||
| 77 | //# define RGBLIGHT_EFFECT_BREATHING | ||
| 78 | //# define RGBLIGHT_EFFECT_RAINBOW_MOOD | ||
| 79 | //# define RGBLIGHT_EFFECT_RAINBOW_SWIRL | ||
| 80 | //# define RGBLIGHT_EFFECT_SNAKE | ||
| 81 | //# define RGBLIGHT_EFFECT_KNIGHT | ||
| 82 | //# define RGBLIGHT_EFFECT_CHRISTMAS | ||
| 83 | //# define RGBLIGHT_EFFECT_STATIC_GRADIENT | ||
| 84 | //# define RGBLIGHT_EFFECT_RGB_TEST | ||
| 85 | //# define RGBLIGHT_EFFECT_ALTERNATING | ||
| 86 | /*== customize breathing effect ==*/ | ||
| 87 | /*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/ | ||
| 88 | //# define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64 | ||
| 89 | /*==== use exp() and sin() ====*/ | ||
| 90 | //# define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7 | ||
| 91 | //# define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255 | ||
| 92 | #endif | ||
| 93 | |||
| 94 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 95 | #define DEBOUNCE 5 | ||
| 96 | |||
| 97 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | ||
| 98 | //#define MATRIX_HAS_GHOST | ||
| 99 | |||
| 100 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 101 | #define LOCKING_SUPPORT_ENABLE | ||
| 102 | /* Locking resynchronize hack */ | ||
| 103 | #define LOCKING_RESYNC_ENABLE | ||
| 104 | |||
| 105 | /* If defined, GRAVE_ESC will always act as ESC when CTRL is held. | ||
| 106 | * This is useful for the Windows task manager shortcut (ctrl+shift+esc). | ||
| 107 | */ | ||
| 108 | //#define GRAVE_ESC_CTRL_OVERRIDE | ||
| 109 | |||
| 110 | /* | ||
| 111 | * Force NKRO | ||
| 112 | * | ||
| 113 | * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved | ||
| 114 | * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the | ||
| 115 | * makefile for this to work.) | ||
| 116 | * | ||
| 117 | * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N) | ||
| 118 | * until the next keyboard reset. | ||
| 119 | * | ||
| 120 | * NKRO may prevent your keystrokes from being detected in the BIOS, but it is | ||
| 121 | * fully operational during normal computer usage. | ||
| 122 | * | ||
| 123 | * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N) | ||
| 124 | * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by | ||
| 125 | * bootmagic, NKRO mode will always be enabled until it is toggled again during a | ||
| 126 | * power-up. | ||
| 127 | * | ||
| 128 | */ | ||
| 129 | //#define FORCE_NKRO | ||
| 130 | |||
| 131 | /* | ||
| 132 | * Feature disable options | ||
| 133 | * These options are also useful to firmware size reduction. | ||
| 134 | */ | ||
| 135 | |||
| 136 | /* disable debug print */ | ||
| 137 | //#define NO_DEBUG | ||
| 138 | |||
| 139 | /* disable print */ | ||
| 140 | //#define NO_PRINT | ||
| 141 | |||
| 142 | /* disable action features */ | ||
| 143 | //#define NO_ACTION_LAYER | ||
| 144 | //#define NO_ACTION_TAPPING | ||
| 145 | //#define NO_ACTION_ONESHOT | ||
| 146 | |||
| 147 | /* disable these deprecated features by default */ | ||
| 148 | #define NO_ACTION_MACRO | ||
| 149 | #define NO_ACTION_FUNCTION | ||
| 150 | |||
| 151 | /* Bootmagic Lite key configuration */ | ||
| 152 | //#define BOOTMAGIC_LITE_ROW 0 | ||
| 153 | //#define BOOTMAGIC_LITE_COLUMN 0 | ||
| 154 | |||
| 155 | /* QoL improvements */ | ||
| 156 | #define PERMISSIVE_HOLD | ||
| 157 | #define IGNORE_MOD_TAP_INTERRUPT | ||
| 158 | |||
| 159 | /* Rotary encoder */ | ||
| 160 | #define ENCODERS_PAD_A { B6 } | ||
| 161 | #define ENCODERS_PAD_B { B7 } | ||
| 162 | |||
| 163 | #define ENCODER_RESOLUTION 1 | ||
| 164 | |||
| 165 | //#define ENCODER_DIRECTION_FLIP | ||
diff --git a/keyboards/ramonimbao/squishytkl/halconf.h b/keyboards/ramonimbao/squishytkl/halconf.h new file mode 100644 index 000000000..344e66379 --- /dev/null +++ b/keyboards/ramonimbao/squishytkl/halconf.h | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | /* Copyright 2020 QMK | ||
| 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 | #define HAL_USE_PWM TRUE | ||
| 20 | |||
| 21 | #include_next <halconf.h> | ||
| 22 | |||
| 23 | |||
diff --git a/keyboards/ramonimbao/squishytkl/info.json b/keyboards/ramonimbao/squishytkl/info.json new file mode 100644 index 000000000..f845e2bed --- /dev/null +++ b/keyboards/ramonimbao/squishytkl/info.json | |||
| @@ -0,0 +1,411 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "SquishyTKL", | ||
| 3 | "url": "", | ||
| 4 | "maintainer": "Ramon Imbao", | ||
| 5 | "width": 19.5, | ||
| 6 | "height": 6.25, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT_ansi": { | ||
| 9 | "layout": [ | ||
| 10 | {"x":0, "y":0.5}, | ||
| 11 | {"x":1.25, "y":0.5}, | ||
| 12 | {"x":2.25, "y":0.5}, | ||
| 13 | {"x":3.25, "y":0.5}, | ||
| 14 | {"x":4.25, "y":0.5}, | ||
| 15 | {"x":5.5, "y":0.5}, | ||
| 16 | {"x":6.5, "y":0.5}, | ||
| 17 | {"x":7.5, "y":0.5}, | ||
| 18 | {"x":8.5, "y":0.5}, | ||
| 19 | {"x":9.75, "y":0.5}, | ||
| 20 | {"x":10.75, "y":0.5}, | ||
| 21 | {"x":11.75, "y":0.5}, | ||
| 22 | {"x":12.75, "y":0.5}, | ||
| 23 | {"x":14, "y":0.5}, | ||
| 24 | {"x":15.25, "y":0.5}, | ||
| 25 | {"x":16.25, "y":0.5}, | ||
| 26 | {"x":17.25, "y":0.5}, | ||
| 27 | |||
| 28 | {"x":0, "y":1.75}, | ||
| 29 | {"x":1, "y":1.75}, | ||
| 30 | {"x":2, "y":1.75}, | ||
| 31 | {"x":3, "y":1.75}, | ||
| 32 | {"x":4, "y":1.75}, | ||
| 33 | {"x":5, "y":1.75}, | ||
| 34 | {"x":6, "y":1.75}, | ||
| 35 | {"x":7, "y":1.75}, | ||
| 36 | {"x":8, "y":1.75}, | ||
| 37 | {"x":9, "y":1.75}, | ||
| 38 | {"x":10, "y":1.75}, | ||
| 39 | {"x":11, "y":1.75}, | ||
| 40 | {"x":12, "y":1.75}, | ||
| 41 | {"x":13, "y":1.75, "w":2}, | ||
| 42 | {"x":15.25, "y":1.75}, | ||
| 43 | {"x":16.25, "y":1.75}, | ||
| 44 | {"x":17.25, "y":1.75}, | ||
| 45 | |||
| 46 | {"x":0, "y":2.75, "w":1.5}, | ||
| 47 | {"x":1.5, "y":2.75}, | ||
| 48 | {"x":2.5, "y":2.75}, | ||
| 49 | {"x":3.5, "y":2.75}, | ||
| 50 | {"x":4.5, "y":2.75}, | ||
| 51 | {"x":5.5, "y":2.75}, | ||
| 52 | {"x":6.5, "y":2.75}, | ||
| 53 | {"x":7.5, "y":2.75}, | ||
| 54 | {"x":8.5, "y":2.75}, | ||
| 55 | {"x":9.5, "y":2.75}, | ||
| 56 | {"x":10.5, "y":2.75}, | ||
| 57 | {"x":11.5, "y":2.75}, | ||
| 58 | {"x":12.5, "y":2.75}, | ||
| 59 | {"x":13.5, "y":2.75, "w":1.5}, | ||
| 60 | {"x":15.25, "y":2.75}, | ||
| 61 | {"x":16.25, "y":2.75}, | ||
| 62 | {"x":17.25, "y":2.75}, | ||
| 63 | |||
| 64 | {"x":0, "y":3.75, "w":1.75}, | ||
| 65 | {"x":1.75, "y":3.75}, | ||
| 66 | {"x":2.75, "y":3.75}, | ||
| 67 | {"x":3.75, "y":3.75}, | ||
| 68 | {"x":4.75, "y":3.75}, | ||
| 69 | {"x":5.75, "y":3.75}, | ||
| 70 | {"x":6.75, "y":3.75}, | ||
| 71 | {"x":7.75, "y":3.75}, | ||
| 72 | {"x":8.75, "y":3.75}, | ||
| 73 | {"x":9.75, "y":3.75}, | ||
| 74 | {"x":10.75, "y":3.75}, | ||
| 75 | {"x":11.75, "y":3.75}, | ||
| 76 | {"x":12.75, "y":3.75, "w":2.25}, | ||
| 77 | |||
| 78 | {"x":0, "y":4.75, "w":2.25}, | ||
| 79 | {"x":2.25, "y":4.75}, | ||
| 80 | {"x":3.25, "y":4.75}, | ||
| 81 | {"x":4.25, "y":4.75}, | ||
| 82 | {"x":5.25, "y":4.75}, | ||
| 83 | {"x":6.25, "y":4.75}, | ||
| 84 | {"x":7.25, "y":4.75}, | ||
| 85 | {"x":8.25, "y":4.75}, | ||
| 86 | {"x":9.25, "y":4.75}, | ||
| 87 | {"x":10.25, "y":4.75}, | ||
| 88 | {"x":11.25, "y":4.75}, | ||
| 89 | {"x":12.25, "y":4.75, "w":2.75}, | ||
| 90 | {"x":16.25, "y":4.75}, | ||
| 91 | |||
| 92 | {"x":0, "y":5.75, "w":1.25}, | ||
| 93 | {"x":1.25, "y":5.75, "w":1.25}, | ||
| 94 | {"x":2.5, "y":5.75, "w":1.25}, | ||
| 95 | {"x":3.75, "y":5.75, "w":6.25}, | ||
| 96 | {"x":10, "y":5.75, "w":1.25}, | ||
| 97 | {"x":11.25, "y":5.75, "w":1.25}, | ||
| 98 | {"x":12.5, "y":5.75, "w":1.25}, | ||
| 99 | {"x":13.75, "y":5.75, "w":1.25}, | ||
| 100 | {"x":15.25, "y":5.75}, | ||
| 101 | {"x":16.25, "y":5.75}, | ||
| 102 | {"x":17.25, "y":5.75} | ||
| 103 | ] | ||
| 104 | }, | ||
| 105 | "LAYOUT_iso": { | ||
| 106 | "layout": [ | ||
| 107 | {"x":0, "y":0.5}, | ||
| 108 | {"x":1.25, "y":0.5}, | ||
| 109 | {"x":2.25, "y":0.5}, | ||
| 110 | {"x":3.25, "y":0.5}, | ||
| 111 | {"x":4.25, "y":0.5}, | ||
| 112 | {"x":5.5, "y":0.5}, | ||
| 113 | {"x":6.5, "y":0.5}, | ||
| 114 | {"x":7.5, "y":0.5}, | ||
| 115 | {"x":8.5, "y":0.5}, | ||
| 116 | {"x":9.75, "y":0.5}, | ||
| 117 | {"x":10.75, "y":0.5}, | ||
| 118 | {"x":11.75, "y":0.5}, | ||
| 119 | {"x":12.75, "y":0.5}, | ||
| 120 | {"x":14, "y":0.5}, | ||
| 121 | {"x":15.25, "y":0.5}, | ||
| 122 | {"x":16.25, "y":0.5}, | ||
| 123 | {"x":17.25, "y":0.5}, | ||
| 124 | |||
| 125 | {"x":0, "y":1.75}, | ||
| 126 | {"x":1, "y":1.75}, | ||
| 127 | {"x":2, "y":1.75}, | ||
| 128 | {"x":3, "y":1.75}, | ||
| 129 | {"x":4, "y":1.75}, | ||
| 130 | {"x":5, "y":1.75}, | ||
| 131 | {"x":6, "y":1.75}, | ||
| 132 | {"x":7, "y":1.75}, | ||
| 133 | {"x":8, "y":1.75}, | ||
| 134 | {"x":9, "y":1.75}, | ||
| 135 | {"x":10, "y":1.75}, | ||
| 136 | {"x":11, "y":1.75}, | ||
| 137 | {"x":12, "y":1.75}, | ||
| 138 | {"x":13, "y":1.75, "w":2}, | ||
| 139 | {"x":15.25, "y":1.75}, | ||
| 140 | {"x":16.25, "y":1.75}, | ||
| 141 | {"x":17.25, "y":1.75}, | ||
| 142 | |||
| 143 | {"x":0, "y":2.75, "w":1.5}, | ||
| 144 | {"x":1.5, "y":2.75}, | ||
| 145 | {"x":2.5, "y":2.75}, | ||
| 146 | {"x":3.5, "y":2.75}, | ||
| 147 | {"x":4.5, "y":2.75}, | ||
| 148 | {"x":5.5, "y":2.75}, | ||
| 149 | {"x":6.5, "y":2.75}, | ||
| 150 | {"x":7.5, "y":2.75}, | ||
| 151 | {"x":8.5, "y":2.75}, | ||
| 152 | {"x":9.5, "y":2.75}, | ||
| 153 | {"x":10.5, "y":2.75}, | ||
| 154 | {"x":11.5, "y":2.75}, | ||
| 155 | {"x":12.5, "y":2.75}, | ||
| 156 | {"x":15.25, "y":2.75}, | ||
| 157 | {"x":16.25, "y":2.75}, | ||
| 158 | {"x":17.25, "y":2.75}, | ||
| 159 | |||
| 160 | {"x":0, "y":3.75, "w":1.75}, | ||
| 161 | {"x":1.75, "y":3.75}, | ||
| 162 | {"x":2.75, "y":3.75}, | ||
| 163 | {"x":3.75, "y":3.75}, | ||
| 164 | {"x":4.75, "y":3.75}, | ||
| 165 | {"x":5.75, "y":3.75}, | ||
| 166 | {"x":6.75, "y":3.75}, | ||
| 167 | {"x":7.75, "y":3.75}, | ||
| 168 | {"x":8.75, "y":3.75}, | ||
| 169 | {"x":9.75, "y":3.75}, | ||
| 170 | {"x":10.75, "y":3.75}, | ||
| 171 | {"x":11.75, "y":3.75}, | ||
| 172 | {"x":12.75, "y":3.75}, | ||
| 173 | {"x":13.75, "y":2.75, "w":1.25, "h":2}, | ||
| 174 | |||
| 175 | {"x":0, "y":4.75, "w":1.25}, | ||
| 176 | {"x":1.25, "y":4.75}, | ||
| 177 | {"x":2.25, "y":4.75}, | ||
| 178 | {"x":3.25, "y":4.75}, | ||
| 179 | {"x":4.25, "y":4.75}, | ||
| 180 | {"x":5.25, "y":4.75}, | ||
| 181 | {"x":6.25, "y":4.75}, | ||
| 182 | {"x":7.25, "y":4.75}, | ||
| 183 | {"x":8.25, "y":4.75}, | ||
| 184 | {"x":9.25, "y":4.75}, | ||
| 185 | {"x":10.25, "y":4.75}, | ||
| 186 | {"x":11.25, "y":4.75}, | ||
| 187 | {"x":12.25, "y":4.75, "w":2.75}, | ||
| 188 | {"x":16.25, "y":4.75}, | ||
| 189 | |||
| 190 | {"x":0, "y":5.75, "w":1.25}, | ||
| 191 | {"x":1.25, "y":5.75, "w":1.25}, | ||
| 192 | {"x":2.5, "y":5.75, "w":1.25}, | ||
| 193 | {"x":3.75, "y":5.75, "w":6.25}, | ||
| 194 | {"x":10, "y":5.75, "w":1.25}, | ||
| 195 | {"x":11.25, "y":5.75, "w":1.25}, | ||
| 196 | {"x":12.5, "y":5.75, "w":1.25}, | ||
| 197 | {"x":13.75, "y":5.75, "w":1.25}, | ||
| 198 | {"x":15.25, "y":5.75}, | ||
| 199 | {"x":16.25, "y":5.75}, | ||
| 200 | {"x":17.25, "y":5.75} | ||
| 201 | ] | ||
| 202 | }, | ||
| 203 | "LAYOUT_jis": { | ||
| 204 | "layout": [ | ||
| 205 | {"x":0, "y":0}, | ||
| 206 | {"x":1.25, "y":0}, | ||
| 207 | {"x":2.25, "y":0}, | ||
| 208 | {"x":3.25, "y":0}, | ||
| 209 | {"x":4.25, "y":0}, | ||
| 210 | {"x":5.5, "y":0}, | ||
| 211 | {"x":6.5, "y":0}, | ||
| 212 | {"x":7.5, "y":0}, | ||
| 213 | {"x":8.5, "y":0}, | ||
| 214 | {"x":9.75, "y":0}, | ||
| 215 | {"x":10.75, "y":0}, | ||
| 216 | {"x":11.75, "y":0}, | ||
| 217 | {"x":12.75, "y":0}, | ||
| 218 | {"x":14, "y":0}, | ||
| 219 | {"x":15.25, "y":0}, | ||
| 220 | {"x":16.25, "y":0}, | ||
| 221 | {"x":17.25, "y":0}, | ||
| 222 | |||
| 223 | {"x":0, "y":1.25}, | ||
| 224 | {"x":1, "y":1.25}, | ||
| 225 | {"x":2, "y":1.25}, | ||
| 226 | {"x":3, "y":1.25}, | ||
| 227 | {"x":4, "y":1.25}, | ||
| 228 | {"x":5, "y":1.25}, | ||
| 229 | {"x":6, "y":1.25}, | ||
| 230 | {"x":7, "y":1.25}, | ||
| 231 | {"x":8, "y":1.25}, | ||
| 232 | {"x":9, "y":1.25}, | ||
| 233 | {"x":10, "y":1.25}, | ||
| 234 | {"x":11, "y":1.25}, | ||
| 235 | {"x":12, "y":1.25}, | ||
| 236 | {"x":13, "y":1.25}, | ||
| 237 | {"x":14, "y":1.25}, | ||
| 238 | {"x":15.25, "y":1.25}, | ||
| 239 | {"x":16.25, "y":1.25}, | ||
| 240 | {"x":17.25, "y":1.25}, | ||
| 241 | |||
| 242 | {"x":0, "y":2.25, "w":1.5}, | ||
| 243 | {"x":1.5, "y":2.25}, | ||
| 244 | {"x":2.5, "y":2.25}, | ||
| 245 | {"x":3.5, "y":2.25}, | ||
| 246 | {"x":4.5, "y":2.25}, | ||
| 247 | {"x":5.5, "y":2.25}, | ||
| 248 | {"x":6.5, "y":2.25}, | ||
| 249 | {"x":7.5, "y":2.25}, | ||
| 250 | {"x":8.5, "y":2.25}, | ||
| 251 | {"x":9.5, "y":2.25}, | ||
| 252 | {"x":10.5, "y":2.25}, | ||
| 253 | {"x":11.5, "y":2.25}, | ||
| 254 | {"x":12.5, "y":2.25}, | ||
| 255 | {"x":15.25, "y":2.25}, | ||
| 256 | {"x":16.25, "y":2.25}, | ||
| 257 | {"x":17.25, "y":2.25}, | ||
| 258 | |||
| 259 | {"x":0, "y":3.25, "w":1.75}, | ||
| 260 | {"x":1.75, "y":3.25}, | ||
| 261 | {"x":2.75, "y":3.25}, | ||
| 262 | {"x":3.75, "y":3.25}, | ||
| 263 | {"x":4.75, "y":3.25}, | ||
| 264 | {"x":5.75, "y":3.25}, | ||
| 265 | {"x":6.75, "y":3.25}, | ||
| 266 | {"x":7.75, "y":3.25}, | ||
| 267 | {"x":8.75, "y":3.25}, | ||
| 268 | {"x":9.75, "y":3.25}, | ||
| 269 | {"x":10.75, "y":3.25}, | ||
| 270 | {"x":11.75, "y":3.25}, | ||
| 271 | {"x":12.75, "y":3.25}, | ||
| 272 | {"x":13.75, "y":2.25, "w":1.25, "h":2}, | ||
| 273 | |||
| 274 | {"x":0, "y":4.25, "w":2.25}, | ||
| 275 | {"x":2.25, "y":4.25}, | ||
| 276 | {"x":3.25, "y":4.25}, | ||
| 277 | {"x":4.25, "y":4.25}, | ||
| 278 | {"x":5.25, "y":4.25}, | ||
| 279 | {"x":6.25, "y":4.25}, | ||
| 280 | {"x":7.25, "y":4.25}, | ||
| 281 | {"x":8.25, "y":4.25}, | ||
| 282 | {"x":9.25, "y":4.25}, | ||
| 283 | {"x":10.25, "y":4.25}, | ||
| 284 | {"x":11.25, "y":4.25}, | ||
| 285 | {"x":12.25, "y":4.25}, | ||
| 286 | {"x":13.25, "y":4.25, "w":1.75}, | ||
| 287 | {"x":16.25, "y":4.25}, | ||
| 288 | |||
| 289 | {"x":0, "y":5.25, "w":1.5}, | ||
| 290 | {"x":1.5, "y":5.25}, | ||
| 291 | {"x":2.5, "y":5.25, "w":1.5}, | ||
| 292 | {"x":4, "y":5.25}, | ||
| 293 | {"x":5, "y":5.25}, | ||
| 294 | {"x":6, "y":5.25, "w":3}, | ||
| 295 | {"x":9, "y":5.25}, | ||
| 296 | {"x":10, "y":5.25}, | ||
| 297 | {"x":11, "y":5.25, "w":1.5}, | ||
| 298 | {"x":12.5, "y":5.25}, | ||
| 299 | {"x":13.5, "y":5.25, "w":1.5}, | ||
| 300 | {"x":15.25, "y":5.25}, | ||
| 301 | {"x":16.25, "y":5.25}, | ||
| 302 | {"x":17.25, "y":5.25} | ||
| 303 | ] | ||
| 304 | }, | ||
| 305 | "LAYOUT_all": { | ||
| 306 | "layout": [ | ||
| 307 | {"x":0, "y":0.5}, | ||
| 308 | {"x":1.25, "y":0.5}, | ||
| 309 | {"x":2.25, "y":0.5}, | ||
| 310 | {"x":3.25, "y":0.5}, | ||
| 311 | {"x":4.25, "y":0.5}, | ||
| 312 | {"x":5.5, "y":0.5}, | ||
| 313 | {"x":6.5, "y":0.5}, | ||
| 314 | {"x":7.5, "y":0.5}, | ||
| 315 | {"x":8.5, "y":0.5}, | ||
| 316 | {"x":9.75, "y":0.5}, | ||
| 317 | {"x":10.75, "y":0.5}, | ||
| 318 | {"x":11.75, "y":0.5}, | ||
| 319 | {"x":12.75, "y":0.5}, | ||
| 320 | {"x":14, "y":0.5}, | ||
| 321 | {"x":15.25, "y":0.5}, | ||
| 322 | {"x":16.25, "y":0.5}, | ||
| 323 | {"x":17.25, "y":0.5}, | ||
| 324 | |||
| 325 | {"x":0, "y":1.75}, | ||
| 326 | {"x":1, "y":1.75}, | ||
| 327 | {"x":2, "y":1.75}, | ||
| 328 | {"x":3, "y":1.75}, | ||
| 329 | {"x":4, "y":1.75}, | ||
| 330 | {"x":5, "y":1.75}, | ||
| 331 | {"x":6, "y":1.75}, | ||
| 332 | {"x":7, "y":1.75}, | ||
| 333 | {"x":8, "y":1.75}, | ||
| 334 | {"x":9, "y":1.75}, | ||
| 335 | {"x":10, "y":1.75}, | ||
| 336 | {"x":11, "y":1.75}, | ||
| 337 | {"x":12, "y":1.75}, | ||
| 338 | {"x":13, "y":1.75}, | ||
| 339 | {"x":14, "y":1.75}, | ||
| 340 | {"x":15.25, "y":1.75}, | ||
| 341 | {"x":16.25, "y":1.75}, | ||
| 342 | {"x":17.25, "y":1.75}, | ||
| 343 | |||
| 344 | {"x":0, "y":2.75, "w":1.5}, | ||
| 345 | {"x":1.5, "y":2.75}, | ||
| 346 | {"x":2.5, "y":2.75}, | ||
| 347 | {"x":3.5, "y":2.75}, | ||
| 348 | {"x":4.5, "y":2.75}, | ||
| 349 | {"x":5.5, "y":2.75}, | ||
| 350 | {"x":6.5, "y":2.75}, | ||
| 351 | {"x":7.5, "y":2.75}, | ||
| 352 | {"x":8.5, "y":2.75}, | ||
| 353 | {"x":9.5, "y":2.75}, | ||
| 354 | {"x":10.5, "y":2.75}, | ||
| 355 | {"x":11.5, "y":2.75}, | ||
| 356 | {"x":12.5, "y":2.75}, | ||
| 357 | {"x":13.5, "y":2.75, "w":1.5}, | ||
| 358 | {"x":15.25, "y":2.75}, | ||
| 359 | {"x":16.25, "y":2.75}, | ||
| 360 | {"x":17.25, "y":2.75}, | ||
| 361 | |||
| 362 | {"x":0, "y":3.75, "w":1.75}, | ||
| 363 | {"x":1.75, "y":3.75}, | ||
| 364 | {"x":2.75, "y":3.75}, | ||
| 365 | {"x":3.75, "y":3.75}, | ||
| 366 | {"x":4.75, "y":3.75}, | ||
| 367 | {"x":5.75, "y":3.75}, | ||
| 368 | {"x":6.75, "y":3.75}, | ||
| 369 | {"x":7.75, "y":3.75}, | ||
| 370 | {"x":8.75, "y":3.75}, | ||
| 371 | {"x":9.75, "y":3.75}, | ||
| 372 | {"x":10.75, "y":3.75}, | ||
| 373 | {"x":11.75, "y":3.75}, | ||
| 374 | {"x":12.75, "y":3.75, "w":2.25}, | ||
| 375 | |||
| 376 | {"x":0, "y":4.75, "w":1.25}, | ||
| 377 | {"x":1.25, "y":4.75}, | ||
| 378 | {"x":2.25, "y":4.75}, | ||
| 379 | {"x":3.25, "y":4.75}, | ||
| 380 | {"x":4.25, "y":4.75}, | ||
| 381 | {"x":5.25, "y":4.75}, | ||
| 382 | {"x":6.25, "y":4.75}, | ||
| 383 | {"x":7.25, "y":4.75}, | ||
| 384 | {"x":8.25, "y":4.75}, | ||
| 385 | {"x":9.25, "y":4.75}, | ||
| 386 | {"x":10.25, "y":4.75}, | ||
| 387 | {"x":11.25, "y":4.75}, | ||
| 388 | {"x":12.25, "y":4.75, "w":1.75}, | ||
| 389 | {"x":14, "y":4.75}, | ||
| 390 | {"x":16.25, "y":4.75}, | ||
| 391 | |||
| 392 | {"x":0, "y":5.75, "w":1.25}, | ||
| 393 | {"x":1.25, "y":5.75, "w":1.25}, | ||
| 394 | {"x":2.5, "y":5.75, "w":1.25}, | ||
| 395 | {"x":3.75, "y":5.75, "w":2.5}, | ||
| 396 | {"x":6.25, "y":5.75}, | ||
| 397 | {"x":7.25, "y":5.75, "w":2.75}, | ||
| 398 | {"x":10, "y":5.75, "w":1.25}, | ||
| 399 | {"x":11.25, "y":5.75, "w":1.25}, | ||
| 400 | {"x":12.5, "y":5.75, "w":1.25}, | ||
| 401 | {"x":13.75, "y":5.75, "w":1.25}, | ||
| 402 | {"x":15.25, "y":5.75}, | ||
| 403 | {"x":16.25, "y":5.75}, | ||
| 404 | {"x":17.25, "y":5.75}, | ||
| 405 | |||
| 406 | {"x":18.5, "y":0}, | ||
| 407 | {"x":18.5, "y":1} | ||
| 408 | ] | ||
| 409 | } | ||
| 410 | } | ||
| 411 | } | ||
diff --git a/keyboards/ramonimbao/squishytkl/keymaps/default/keymap.c b/keyboards/ramonimbao/squishytkl/keymaps/default/keymap.c new file mode 100644 index 000000000..c55c4aed6 --- /dev/null +++ b/keyboards/ramonimbao/squishytkl/keymaps/default/keymap.c | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | /* Copyright 2021 Ramon Imbao | ||
| 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 | [0] = LAYOUT_ansi( | ||
| 20 | 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_MUTE, KC_PSCR, KC_SLCK, KC_PAUS, | ||
| 21 | 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, | ||
| 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, KC_END, KC_PGDN, | ||
| 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, | ||
| 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, | ||
| 25 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RGUI, KC_MENU, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT | ||
| 26 | ) | ||
| 27 | }; | ||
| 28 | |||
| 29 | void encoder_update_user(uint8_t index, bool clockwise) { | ||
| 30 | if (clockwise) { | ||
| 31 | tap_code(KC_VOLU); | ||
| 32 | } else { | ||
| 33 | tap_code(KC_VOLD); | ||
| 34 | } | ||
| 35 | } | ||
diff --git a/keyboards/ramonimbao/squishytkl/keymaps/default/readme.md b/keyboards/ramonimbao/squishytkl/keymaps/default/readme.md new file mode 100644 index 000000000..b20cf7436 --- /dev/null +++ b/keyboards/ramonimbao/squishytkl/keymaps/default/readme.md | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | # The default keymap for SquishyTKL | ||
| 2 | |||
| 3 | ANSI, 6.25u bottom row | ||
diff --git a/keyboards/ramonimbao/squishytkl/keymaps/iso/keymap.c b/keyboards/ramonimbao/squishytkl/keymaps/iso/keymap.c new file mode 100644 index 000000000..4caf9e8b5 --- /dev/null +++ b/keyboards/ramonimbao/squishytkl/keymaps/iso/keymap.c | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | /* Copyright 2021 Ramon Imbao | ||
| 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 | [0] = LAYOUT_iso( | ||
| 20 | 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_MUTE, KC_PSCR, KC_SLCK, KC_PAUS, | ||
| 21 | 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, | ||
| 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_DEL, KC_END, KC_PGDN, | ||
| 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_NUHS, KC_ENT, | ||
| 24 | 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, | ||
| 25 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RGUI, KC_MENU, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT | ||
| 26 | ) | ||
| 27 | }; | ||
| 28 | |||
| 29 | void encoder_update_user(uint8_t index, bool clockwise) { | ||
| 30 | if (clockwise) { | ||
| 31 | tap_code(KC_VOLU); | ||
| 32 | } else { | ||
| 33 | tap_code(KC_VOLD); | ||
| 34 | } | ||
| 35 | } | ||
diff --git a/keyboards/ramonimbao/squishytkl/keymaps/jis/keymap.c b/keyboards/ramonimbao/squishytkl/keymaps/jis/keymap.c new file mode 100644 index 000000000..dc0d1d5ba --- /dev/null +++ b/keyboards/ramonimbao/squishytkl/keymaps/jis/keymap.c | |||
| @@ -0,0 +1,37 @@ | |||
| 1 | /* Copyright 2021 Ramon Imbao | ||
| 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 | #include "keymap_jp.h" | ||
| 19 | |||
| 20 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 21 | [0] = LAYOUT_jis( | ||
| 22 | 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_MUTE, KC_PSCR, KC_SLCK, KC_PAUS, | ||
| 23 | JP_ZHTG, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, JP_MINS, JP_CIRC, JP_YEN, KC_BSPC, KC_INS, KC_HOME, KC_PGUP, | ||
| 24 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, JP_AT, JP_LBRC, KC_DEL, KC_END, KC_PGDN, | ||
| 25 | KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, JP_SCLN, JP_COLN, JP_RBRC, KC_ENT, | ||
| 26 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, JP_COMM, JP_DOT, JP_SLSH, JP_BSLS, KC_RSFT, KC_UP, | ||
| 27 | KC_LCTL, KC_LGUI, KC_LALT, KC_MENU, JP_MHEN, KC_SPC, JP_HENK, JP_KANA, KC_RALT, KC_RGUI, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT | ||
| 28 | ) | ||
| 29 | }; | ||
| 30 | |||
| 31 | void encoder_update_user(uint8_t index, bool clockwise) { | ||
| 32 | if (clockwise) { | ||
| 33 | tap_code(KC_VOLU); | ||
| 34 | } else { | ||
| 35 | tap_code(KC_VOLD); | ||
| 36 | } | ||
| 37 | } | ||
diff --git a/keyboards/ramonimbao/squishytkl/keymaps/via/config.h b/keyboards/ramonimbao/squishytkl/keymaps/via/config.h new file mode 100644 index 000000000..884fbd487 --- /dev/null +++ b/keyboards/ramonimbao/squishytkl/keymaps/via/config.h | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2021 Ramon Imbao | ||
| 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 | #define DYNAMIC_KEYMAP_LAYER_COUNT 1 | ||
| 21 | // Only way to get this to compile is to reduce layer count to 1. | ||
| 22 | // Do TKL users even need more than 1 layer? | ||
| 23 | // I'd like that option though. Below also works. | ||
| 24 | // #define DYNAMIC_KEYMAP_LAYER_COUNT 2 | ||
| 25 | // #define DYNAMIC_KEYMAP_EEPROM_MAX_ADDR 2047 | ||
diff --git a/keyboards/ramonimbao/squishytkl/keymaps/via/keymap.c b/keyboards/ramonimbao/squishytkl/keymaps/via/keymap.c new file mode 100644 index 000000000..fa7214149 --- /dev/null +++ b/keyboards/ramonimbao/squishytkl/keymaps/via/keymap.c | |||
| @@ -0,0 +1,64 @@ | |||
| 1 | /* Copyright 2021 Ramon Imbao | ||
| 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 | [0] = LAYOUT_all( | ||
| 20 | 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_MUTE, KC_PSCR, KC_SLCK, KC_PAUS, | ||
| 21 | 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_BSPC, KC_INS, KC_HOME, KC_PGUP, | ||
| 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, KC_END, KC_PGDN, | ||
| 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, | ||
| 24 | KC_LSFT, KC_NO, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_NO, KC_UP, | ||
| 25 | KC_LCTL, KC_LGUI, KC_LALT, KC_NO, KC_NO, KC_SPC, KC_NO, KC_RALT, KC_RGUI, KC_MENU, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT, | ||
| 26 | KC_VOLU, KC_VOLD | ||
| 27 | ), | ||
| 28 | }; | ||
| 29 | |||
| 30 | keyevent_t encoder_ccw = { | ||
| 31 | .key = (keypos_t){.row = 13, .col = 0}, | ||
| 32 | .pressed = false | ||
| 33 | }; | ||
| 34 | |||
| 35 | keyevent_t encoder_cw = { | ||
| 36 | .key = (keypos_t){.row = 13, .col = 1}, | ||
| 37 | .pressed = false | ||
| 38 | }; | ||
| 39 | |||
| 40 | void matrix_scan_user(void) { | ||
| 41 | if (IS_PRESSED(encoder_ccw)) { | ||
| 42 | encoder_ccw.pressed = false; | ||
| 43 | encoder_ccw.time = (timer_read() | 1); | ||
| 44 | action_exec(encoder_ccw); | ||
| 45 | } | ||
| 46 | |||
| 47 | if (IS_PRESSED(encoder_cw)) { | ||
| 48 | encoder_cw.pressed = false; | ||
| 49 | encoder_cw.time = (timer_read() | 1); | ||
| 50 | action_exec(encoder_cw); | ||
| 51 | } | ||
| 52 | } | ||
| 53 | |||
| 54 | void encoder_update_user(uint8_t index, bool clockwise) { | ||
| 55 | if (clockwise) { | ||
| 56 | encoder_cw.pressed = true; | ||
| 57 | encoder_cw.time = (timer_read() | 1); | ||
| 58 | action_exec(encoder_cw); | ||
| 59 | } else { | ||
| 60 | encoder_ccw.pressed = true; | ||
| 61 | encoder_ccw.time = (timer_read() | 1); | ||
| 62 | action_exec(encoder_ccw); | ||
| 63 | } | ||
| 64 | } | ||
diff --git a/keyboards/ramonimbao/squishytkl/keymaps/via/rules.mk b/keyboards/ramonimbao/squishytkl/keymaps/via/rules.mk new file mode 100644 index 000000000..1e5b99807 --- /dev/null +++ b/keyboards/ramonimbao/squishytkl/keymaps/via/rules.mk | |||
| @@ -0,0 +1 @@ | |||
| VIA_ENABLE = yes | |||
diff --git a/keyboards/ramonimbao/squishytkl/mcuconf.h b/keyboards/ramonimbao/squishytkl/mcuconf.h new file mode 100644 index 000000000..b14bd32f8 --- /dev/null +++ b/keyboards/ramonimbao/squishytkl/mcuconf.h | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | /* Copyright 2020 QMK | ||
| 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_next <mcuconf.h> | ||
| 18 | |||
| 19 | #undef STM32_PWM_USE_TIM2 | ||
| 20 | #define STM32_PWM_USE_TIM2 TRUE | ||
| 21 | |||
| 22 | #undef STM32_SPI_USE_SPI2 | ||
| 23 | #define STM32_SPI_USE_SPI2 FALSE | ||
| 24 | |||
diff --git a/keyboards/ramonimbao/squishytkl/readme.md b/keyboards/ramonimbao/squishytkl/readme.md new file mode 100644 index 000000000..29655d29d --- /dev/null +++ b/keyboards/ramonimbao/squishytkl/readme.md | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | # SquishyTKL | ||
| 2 | |||
| 3 |  | ||
| 4 | |||
| 5 | A stacked acrylic o-ring gasket mounted TKL-sized keyboard with a twist! | ||
| 6 | |||
| 7 | * Keyboard Maintainer: [Ramon Imbao](https://github.com/ramonimbao) | ||
| 8 | * Hardware Supported: STM32F103RB | ||
| 9 | |||
| 10 | Make example for this keyboard (after setting up your build environment): | ||
| 11 | |||
| 12 | make ramonimbao/squishytkl:via | ||
| 13 | |||
| 14 | Flashing example for this keyboard: | ||
| 15 | |||
| 16 | dfu-util -d 1eaf:0003 -a 2 -D path/to/ramonimbao_squishytkl_via.bin | ||
| 17 | |||
| 18 | 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/ramonimbao/squishytkl/rules.mk b/keyboards/ramonimbao/squishytkl/rules.mk new file mode 100644 index 000000000..df02200ec --- /dev/null +++ b/keyboards/ramonimbao/squishytkl/rules.mk | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = STM32F103 | ||
| 3 | |||
| 4 | # Bootloader selection | ||
| 5 | BOOTLOADER = stm32duino | ||
| 6 | |||
| 7 | # Build Options | ||
| 8 | # change yes to no to disable | ||
| 9 | # | ||
| 10 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration | ||
| 11 | MOUSEKEY_ENABLE = yes # Mouse keys | ||
| 12 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
| 13 | CONSOLE_ENABLE = no # Console for debug | ||
| 14 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
| 15 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 16 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 17 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 18 | NKRO_ENABLE = no # USB Nkey Rollover | ||
| 19 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 20 | RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow | ||
| 21 | BLUETOOTH_ENABLE = no # Enable Bluetooth | ||
| 22 | AUDIO_ENABLE = no # Audio output | ||
| 23 | ENCODER_ENABLE = yes # Enable rotary encoder fuctionality | ||
| 24 | |||
| 25 | # Enter lower-power sleep mode when on the ChibiOS idle thread | ||
| 26 | OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE \ No newline at end of file | ||
diff --git a/keyboards/ramonimbao/squishytkl/squishytkl.c b/keyboards/ramonimbao/squishytkl/squishytkl.c new file mode 100644 index 000000000..9a63c8136 --- /dev/null +++ b/keyboards/ramonimbao/squishytkl/squishytkl.c | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | /* Copyright 2021 Ramon Imbao | ||
| 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 "squishytkl.h" | ||
diff --git a/keyboards/ramonimbao/squishytkl/squishytkl.h b/keyboards/ramonimbao/squishytkl/squishytkl.h new file mode 100644 index 000000000..53d91c27e --- /dev/null +++ b/keyboards/ramonimbao/squishytkl/squishytkl.h | |||
| @@ -0,0 +1,135 @@ | |||
| 1 | /* Copyright 2021 Ramon Imbao | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | |||
| 17 | #pragma once | ||
| 18 | |||
| 19 | #include "quantum.h" | ||
| 20 | |||
| 21 | /* This is a shortcut to help you visually see your layout. | ||
| 22 | * | ||
| 23 | * The first section contains all of the arguments representing the physical | ||
| 24 | * layout of the board and position of the keys. | ||
| 25 | * | ||
| 26 | * The second converts the arguments into a two-dimensional array which | ||
| 27 | * represents the switch matrix. | ||
| 28 | */ | ||
| 29 | |||
| 30 | #define ___ KC_NO | ||
| 31 | |||
| 32 | #define LAYOUT_ansi( \ | ||
| 33 | k00, k01, k02, k03, k04, k10, k11, k12, k13, k20, k21, k22, k23, k24, k3k, k3l, k3m, \ | ||
| 34 | k85, k86, k87, k88, k89, k8a, k8b, k8c, k8d, k8e, k8f, k8g, k8h, k8i, k4k, k4l, k4m, \ | ||
| 35 | k95, k96, k97, k98, k99, k9a, k9b, k9c, k9d, k9e, k9f, k9g, k9h, k9j, k5k, k5l, k5m, \ | ||
| 36 | ka5, ka6, ka7, ka8, ka9, kaa, kab, kac, kad, kae, kaf, kag, kai, \ | ||
| 37 | kb5, kb7, kb8, kb9, kba, kbb, kbc, kbd, kbe, kbf, kbg, kbi, k6l, \ | ||
| 38 | kc5, kc6, kc7, kcd, kcf, kcg, kch, kci, k7k, k7l, k7m \ | ||
| 39 | ) { \ | ||
| 40 | /* 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 */ \ | ||
| 41 | /* 0 1 2 3 4 5 6 7 8 9 a b c d e f g h i j k l m n o p */ \ | ||
| 42 | /* 0 | 0 */ { k00, k01, k02, k03, k04, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___ }, \ | ||
| 43 | /* 1 | 1 */ { k10, k11, k12, k13, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___ }, \ | ||
| 44 | /* 2 | 2 */ { k20, k21, k22, k23, k24, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___ }, \ | ||
| 45 | /* 3 | 3 */ { ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, k3k, k3l, k3m, ___, ___, ___ }, \ | ||
| 46 | /* 4 | 4 */ { ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, k4k, k4l, k4m, ___, ___, ___ }, \ | ||
| 47 | /* 5 | 5 */ { ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, k5k, k5l, k5m, ___, ___, ___ }, \ | ||
| 48 | /* 6 | 6 */ { ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, k6l, ___ }, \ | ||
| 49 | /* 7 | 7 */ { ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, k7k, k7l, k7m }, \ | ||
| 50 | /* 8 | 8 */ { ___, ___, ___, ___, ___, k85, k86, k87, k88, k89, k8a, k8b, k8c, k8d, k8e, k8f, k8g, k8h, k8i, ___, ___, ___, ___, ___, ___, ___ }, \ | ||
| 51 | /* 9 | 9 */ { ___, ___, ___, ___, ___, k95, k96, k97, k98, k99, k9a, k9b, k9c, k9d, k9e, k9f, k9g, k9h, ___, k9j, ___, ___, ___, ___, ___, ___ }, \ | ||
| 52 | /* 10 | a */ { ___, ___, ___, ___, ___, ka5, ka6, ka7, ka8, ka9, kaa, kab, kac, kad, kae, kaf, kag, ___, kai, ___, ___, ___, ___, ___, ___, ___ }, \ | ||
| 53 | /* 11 | b */ { ___, ___, ___, ___, ___, kb5, ___, kb7, kb8, kb9, kba, kbb, kbc, kbd, kbe, kbf, kbg, ___, kbi, ___, ___, ___, ___, ___, ___, ___ }, \ | ||
| 54 | /* 12 | c */ { ___, ___, ___, ___, ___, kc5, kc6, kc7, ___, ___, ___, ___, ___, kcd, ___, kcf, kcg, ___, kch, kci, ___, ___, ___, ___, ___, ___ }, \ | ||
| 55 | /* 13 | c */ { ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___ }, \ | ||
| 56 | } | ||
| 57 | |||
| 58 | #define LAYOUT_iso( \ | ||
| 59 | k00, k01, k02, k03, k04, k10, k11, k12, k13, k20, k21, k22, k23, k24, k3k, k3l, k3m, \ | ||
| 60 | k85, k86, k87, k88, k89, k8a, k8b, k8c, k8d, k8e, k8f, k8g, k8h, k8i, k4k, k4l, k4m, \ | ||
| 61 | k95, k96, k97, k98, k99, k9a, k9b, k9c, k9d, k9e, k9f, k9g, k9h, k5k, k5l, k5m, \ | ||
| 62 | ka5, ka6, ka7, ka8, ka9, kaa, kab, kac, kad, kae, kaf, kag, kai, k9j, \ | ||
| 63 | kb5, kb6, kb7, kb8, kb9, kba, kbb, kbc, kbd, kbe, kbf, kbg, kbi, k6l, \ | ||
| 64 | kc5, kc6, kc7, kcd, kcf, kcg, kch, kci, k7k, k7l, k7m \ | ||
| 65 | ) { \ | ||
| 66 | /* 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 */ \ | ||
| 67 | /* 0 1 2 3 4 5 6 7 8 9 a b c d e f g h i j k l m n o p */ \ | ||
| 68 | /* 0 | 0 */ { k00, k01, k02, k03, k04, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___ }, \ | ||
| 69 | /* 1 | 1 */ { k10, k11, k12, k13, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___ }, \ | ||
| 70 | /* 2 | 2 */ { k20, k21, k22, k23, k24, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___ }, \ | ||
| 71 | /* 3 | 3 */ { ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, k3k, k3l, k3m, ___, ___, ___ }, \ | ||
| 72 | /* 4 | 4 */ { ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, k4k, k4l, k4m, ___, ___, ___ }, \ | ||
| 73 | /* 5 | 5 */ { ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, k5k, k5l, k5m, ___, ___, ___ }, \ | ||
| 74 | /* 6 | 6 */ { ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, k6l, ___ }, \ | ||
| 75 | /* 7 | 7 */ { ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, k7k, k7l, k7m }, \ | ||
| 76 | /* 8 | 8 */ { ___, ___, ___, ___, ___, k85, k86, k87, k88, k89, k8a, k8b, k8c, k8d, k8e, k8f, k8g, k8h, k8i, ___, ___, ___, ___, ___, ___, ___ }, \ | ||
| 77 | /* 9 | 9 */ { ___, ___, ___, ___, ___, k95, k96, k97, k98, k99, k9a, k9b, k9c, k9d, k9e, k9f, k9g, k9h, ___, k9j, ___, ___, ___, ___, ___, ___ }, \ | ||
| 78 | /* 10 | a */ { ___, ___, ___, ___, ___, ka5, ka6, ka7, ka8, ka9, kaa, kab, kac, kad, kae, kaf, kag, ___, kai, ___, ___, ___, ___, ___, ___, ___ }, \ | ||
| 79 | /* 11 | b */ { ___, ___, ___, ___, ___, kb5, kb6, kb7, kb8, kb9, kba, kbb, kbc, kbd, kbe, kbf, kbg, ___, kbi, ___, ___, ___, ___, ___, ___, ___ }, \ | ||
| 80 | /* 12 | c */ { ___, ___, ___, ___, ___, kc5, kc6, kc7, ___, ___, ___, ___, ___, kcd, ___, kcf, kcg, ___, kch, kci, ___, ___, ___, ___, ___, ___ }, \ | ||
| 81 | /* 13 | c */ { ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___ }, \ | ||
| 82 | } | ||
| 83 | |||
| 84 | #define LAYOUT_jis( \ | ||
| 85 | k00, k01, k02, k03, k04, k10, k11, k12, k13, k20, k21, k22, k23, k24, k3k, k3l, k3m, \ | ||
| 86 | k85, k86, k87, k88, k89, k8a, k8b, k8c, k8d, k8e, k8f, k8g, k8h, k8i, k8j, k4k, k4l, k4m, \ | ||
| 87 | k95, k96, k97, k98, k99, k9a, k9b, k9c, k9d, k9e, k9f, k9g, k9h, k5k, k5l, k5m, \ | ||
| 88 | ka5, ka6, ka7, ka8, ka9, kaa, kab, kac, kad, kae, kaf, kag, kai, k9j, \ | ||
| 89 | kb5, kb7, kb8, kb9, kba, kbb, kbc, kbd, kbe, kbf, kbg, kbi, kbj, k6l, \ | ||
| 90 | kc5, kc6, kc7, kc8, kc9, kcd, kce, kcf, kcg, kch, kci, k7k, k7l, k7m \ | ||
| 91 | ) { \ | ||
| 92 | /* 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 */ \ | ||
| 93 | /* 0 1 2 3 4 5 6 7 8 9 a b c d e f g h i j k l m n o p */ \ | ||
| 94 | /* 0 | 0 */ { k00, k01, k02, k03, k04, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___ }, \ | ||
| 95 | /* 1 | 1 */ { k10, k11, k12, k13, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___ }, \ | ||
| 96 | /* 2 | 2 */ { k20, k21, k22, k23, k24, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___ }, \ | ||
| 97 | /* 3 | 3 */ { ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, k3k, k3l, k3m, ___, ___, ___ }, \ | ||
| 98 | /* 4 | 4 */ { ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, k4k, k4l, k4m, ___, ___, ___ }, \ | ||
| 99 | /* 5 | 5 */ { ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, k5k, k5l, k5m, ___, ___, ___ }, \ | ||
| 100 | /* 6 | 6 */ { ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, k6l, ___ }, \ | ||
| 101 | /* 7 | 7 */ { ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, k7k, k7l, k7m }, \ | ||
| 102 | /* 8 | 8 */ { ___, ___, ___, ___, ___, k85, k86, k87, k88, k89, k8a, k8b, k8c, k8d, k8e, k8f, k8g, k8h, k8i, k8j, ___, ___, ___, ___, ___, ___ }, \ | ||
| 103 | /* 9 | 9 */ { ___, ___, ___, ___, ___, k95, k96, k97, k98, k99, k9a, k9b, k9c, k9d, k9e, k9f, k9g, k9h, ___, k9j, ___, ___, ___, ___, ___, ___ }, \ | ||
| 104 | /* 10 | a */ { ___, ___, ___, ___, ___, ka5, ka6, ka7, ka8, ka9, kaa, kab, kac, kad, kae, kaf, kag, ___, kai, ___, ___, ___, ___, ___, ___, ___ }, \ | ||
| 105 | /* 11 | b */ { ___, ___, ___, ___, ___, kb5, ___, kb7, kb8, kb9, kba, kbb, kbc, kbd, kbe, kbf, kbg, ___, kbi, kbj, ___, ___, ___, ___, ___, ___ }, \ | ||
| 106 | /* 12 | c */ { ___, ___, ___, ___, ___, kc5, kc6, kc7, kc8, kc9, ___, ___, ___, kcd, kce, kcf, kcg, ___, kch, kci, ___, ___, ___, ___, ___, ___ }, \ | ||
| 107 | /* 13 | c */ { ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___ }, \ | ||
| 108 | } | ||
| 109 | |||
| 110 | #define LAYOUT_all( \ | ||
| 111 | k00, k01, k02, k03, k04, k10, k11, k12, k13, k20, k21, k22, k23, k24, k3k, k3l, k3m, \ | ||
| 112 | k85, k86, k87, k88, k89, k8a, k8b, k8c, k8d, k8e, k8f, k8g, k8h, k8i, k8j, k4k, k4l, k4m, \ | ||
| 113 | k95, k96, k97, k98, k99, k9a, k9b, k9c, k9d, k9e, k9f, k9g, k9h, k9j, k5k, k5l, k5m, \ | ||
| 114 | ka5, ka6, ka7, ka8, ka9, kaa, kab, kac, kad, kae, kaf, kag, kai, \ | ||
| 115 | kb5, kb6, kb7, kb8, kb9, kba, kbb, kbc, kbd, kbe, kbf, kbg, kbi, kbj, k6l, \ | ||
| 116 | kc5, kc6, kc7, kc8, kc9, kcd, kce, kcf, kcg, kch, kci, k7k, k7l, k7m, \ | ||
| 117 | kc0, kc1 \ | ||
| 118 | ) { \ | ||
| 119 | /* 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 */ \ | ||
| 120 | /* 0 1 2 3 4 5 6 7 8 9 a b c d e f g h i j k l m n o p */ \ | ||
| 121 | /* 0 | 0 */ { k00, k01, k02, k03, k04, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___ }, \ | ||
| 122 | /* 1 | 1 */ { k10, k11, k12, k13, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___ }, \ | ||
| 123 | /* 2 | 2 */ { k20, k21, k22, k23, k24, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___ }, \ | ||
| 124 | /* 3 | 3 */ { ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, k3k, k3l, k3m, ___, ___, ___ }, \ | ||
| 125 | /* 4 | 4 */ { ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, k4k, k4l, k4m, ___, ___, ___ }, \ | ||
| 126 | /* 5 | 5 */ { ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, k5k, k5l, k5m, ___, ___, ___ }, \ | ||
| 127 | /* 6 | 6 */ { ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, k6l, ___ }, \ | ||
| 128 | /* 7 | 7 */ { ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, k7k, k7l, k7m }, \ | ||
| 129 | /* 8 | 8 */ { ___, ___, ___, ___, ___, k85, k86, k87, k88, k89, k8a, k8b, k8c, k8d, k8e, k8f, k8g, k8h, k8i, k8j, ___, ___, ___, ___, ___, ___ }, \ | ||
| 130 | /* 9 | 9 */ { ___, ___, ___, ___, ___, k95, k96, k97, k98, k99, k9a, k9b, k9c, k9d, k9e, k9f, k9g, k9h, ___, k9j, ___, ___, ___, ___, ___, ___ }, \ | ||
| 131 | /* 10 | a */ { ___, ___, ___, ___, ___, ka5, ka6, ka7, ka8, ka9, kaa, kab, kac, kad, kae, kaf, kag, ___, kai, ___, ___, ___, ___, ___, ___, ___ }, \ | ||
| 132 | /* 11 | b */ { ___, ___, ___, ___, ___, kb5, kb6, kb7, kb8, kb9, kba, kbb, kbc, kbd, kbe, kbf, kbg, ___, kbi, kbj, ___, ___, ___, ___, ___, ___ }, \ | ||
| 133 | /* 12 | c */ { ___, ___, ___, ___, ___, kc5, kc6, kc7, kc8, kc9, ___, ___, ___, kcd, kce, kcf, kcg, ___, kch, kci, ___, ___, ___, ___, ___, ___ }, \ | ||
| 134 | /* 13 | c */ { kc0, kc1, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___ }, \ | ||
| 135 | } | ||
