diff options
| author | James <13719009+quadcube@users.noreply.github.com> | 2021-02-22 11:46:08 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-21 19:46:08 -0800 |
| commit | 37e14fd02bd71ffd32fe381b10ce72f2b85b4049 (patch) | |
| tree | e5840a51cefac215297178ad46d632c71bb9da40 | |
| parent | 36999494d6eee6d5f7e6795899131a7aca782c32 (diff) | |
| download | qmk_firmware-37e14fd02bd71ffd32fe381b10ce72f2b85b4049.tar.gz qmk_firmware-37e14fd02bd71ffd32fe381b10ce72f2b85b4049.zip | |
[Keyboard] Tokyo Keyboard alix40 initial commit (#11918)
Co-authored-by: Ryan <fauxpark@gmail.com>
Co-authored-by: Drashna Jaelre <drashna@live.com>
Co-authored-by: QuadCube <quadcube@QuadCube-Mac-mini.local>
| -rw-r--r-- | keyboards/tokyokeyboard/alix40/alix40.c | 15 | ||||
| -rw-r--r-- | keyboards/tokyokeyboard/alix40/alix40.h | 29 | ||||
| -rw-r--r-- | keyboards/tokyokeyboard/alix40/config.h | 71 | ||||
| -rw-r--r-- | keyboards/tokyokeyboard/alix40/info.json | 242 | ||||
| -rw-r--r-- | keyboards/tokyokeyboard/alix40/keymaps/default/keymap.c | 73 | ||||
| -rw-r--r-- | keyboards/tokyokeyboard/alix40/keymaps/via/keymap.c | 47 | ||||
| -rw-r--r-- | keyboards/tokyokeyboard/alix40/keymaps/via/rules.mk | 2 | ||||
| -rw-r--r-- | keyboards/tokyokeyboard/alix40/readme.md | 22 | ||||
| -rw-r--r-- | keyboards/tokyokeyboard/alix40/rules.mk | 26 |
9 files changed, 527 insertions, 0 deletions
diff --git a/keyboards/tokyokeyboard/alix40/alix40.c b/keyboards/tokyokeyboard/alix40/alix40.c new file mode 100644 index 000000000..af0f36119 --- /dev/null +++ b/keyboards/tokyokeyboard/alix40/alix40.c | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2021 quadcube <james@quadcube.xyz> | ||
| 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 | This program is distributed in the hope that it will be useful, | ||
| 8 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 9 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 10 | GNU General Public License for more details. | ||
| 11 | You should have received a copy of the GNU General Public License | ||
| 12 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 13 | */ | ||
| 14 | |||
| 15 | #include "alix40.h" | ||
diff --git a/keyboards/tokyokeyboard/alix40/alix40.h b/keyboards/tokyokeyboard/alix40/alix40.h new file mode 100644 index 000000000..4a322a10b --- /dev/null +++ b/keyboards/tokyokeyboard/alix40/alix40.h | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2021 quadcube <james@quadcube.xyz> | ||
| 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 | This program is distributed in the hope that it will be useful, | ||
| 8 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 9 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 10 | GNU General Public License for more details. | ||
| 11 | You should have received a copy of the GNU General Public License | ||
| 12 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 13 | */ | ||
| 14 | |||
| 15 | #pragma once | ||
| 16 | |||
| 17 | #include "quantum.h" | ||
| 18 | |||
| 19 | #define LAYOUT_40_alix( \ | ||
| 20 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, \ | ||
| 21 | K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, \ | ||
| 22 | K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, \ | ||
| 23 | K30, K31, K33, K34, K35, K36, K37, K38, K3A, K3B \ | ||
| 24 | ) { \ | ||
| 25 | { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B }, \ | ||
| 26 | { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B }, \ | ||
| 27 | { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B }, \ | ||
| 28 | { K30, K31, KC_NO, K33, K34, K35, K36, K37, K38, KC_NO, K3A, K3B } \ | ||
| 29 | } | ||
diff --git a/keyboards/tokyokeyboard/alix40/config.h b/keyboards/tokyokeyboard/alix40/config.h new file mode 100644 index 000000000..ec6f98d54 --- /dev/null +++ b/keyboards/tokyokeyboard/alix40/config.h | |||
| @@ -0,0 +1,71 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2021 quadcube <james@quadcube.xyz> | ||
| 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 | This program is distributed in the hope that it will be useful, | ||
| 8 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 9 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 10 | GNU General Public License for more details. | ||
| 11 | You should have received a copy of the GNU General Public License | ||
| 12 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 13 | */ | ||
| 14 | |||
| 15 | #pragma once | ||
| 16 | |||
| 17 | #include "config_common.h" | ||
| 18 | |||
| 19 | /* USB Device descriptor parameter */ | ||
| 20 | #define VENDOR_ID 0x5143 // QC | ||
| 21 | #define PRODUCT_ID 0x4134 // A4 | ||
| 22 | #define DEVICE_VER 0x0001 | ||
| 23 | #define MANUFACTURER quadcube | ||
| 24 | #define PRODUCT alix40 | ||
| 25 | |||
| 26 | /* key matrix size */ | ||
| 27 | #define MATRIX_ROWS 4 | ||
| 28 | #define MATRIX_COLS 12 | ||
| 29 | |||
| 30 | /* number of backlight levels */ | ||
| 31 | #define BACKLIGHT_PIN B7 | ||
| 32 | #ifdef BACKLIGHT_PIN | ||
| 33 | #define BACKLIGHT_LEVELS 31 | ||
| 34 | #define BACKLIGHT_BREATHING | ||
| 35 | #endif | ||
| 36 | |||
| 37 | /* COL2ROW or ROW2COL */ | ||
| 38 | #define DIODE_DIRECTION ROW2COL | ||
| 39 | |||
| 40 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 41 | #define DEBOUNCE 5 | ||
| 42 | |||
| 43 | /* key matrix pins */ | ||
| 44 | #define MATRIX_ROW_PINS { D7, C6, C7, B5 } | ||
| 45 | #define MATRIX_COL_PINS { F7, F6, F5, F4, F1, F0, D0, D1, D2, D3, D5, D6 } | ||
| 46 | #define UNUSED_PINS | ||
| 47 | |||
| 48 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 49 | #define LOCKING_SUPPORT_ENABLE | ||
| 50 | |||
| 51 | /* Locking resynchronize hack */ | ||
| 52 | #define LOCKING_RESYNC_ENABLE | ||
| 53 | |||
| 54 | #define RGB_DI_PIN B0 | ||
| 55 | #ifdef RGB_DI_PIN | ||
| 56 | #define RGBLIGHT_ANIMATIONS | ||
| 57 | #define RGBLED_NUM 12 | ||
| 58 | #define RGBLIGHT_HUE_STEP 10 | ||
| 59 | #define RGBLIGHT_SAT_STEP 10 | ||
| 60 | #define RGBLIGHT_VAL_STEP 10 | ||
| 61 | #endif | ||
| 62 | |||
| 63 | /* For Production */ | ||
| 64 | #define QMK_ESC_OUTPUT F7 // usually COL | ||
| 65 | #define QMK_ESC_INPUT D7 // usually ROW | ||
| 66 | |||
| 67 | /* Bluetooth */ | ||
| 68 | #define AdafruitBleResetPin D4 | ||
| 69 | #define AdafruitBleCSPin B4 | ||
| 70 | #define AdafruitBleIRQPin E6 | ||
| 71 | #define BATTERY_LEVEL_PIN B6 | ||
diff --git a/keyboards/tokyokeyboard/alix40/info.json b/keyboards/tokyokeyboard/alix40/info.json new file mode 100644 index 000000000..dbc0f5cbf --- /dev/null +++ b/keyboards/tokyokeyboard/alix40/info.json | |||
| @@ -0,0 +1,242 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "alix40", | ||
| 3 | "url": "https://tokyokeyboard.com/", | ||
| 4 | "maintainer": "qmk", | ||
| 5 | "width": 12, | ||
| 6 | "height": 4, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT_40_alix": { | ||
| 9 | "layout": [{ | ||
| 10 | "label": "Tab", | ||
| 11 | "x": 0, | ||
| 12 | "y": 0 | ||
| 13 | }, | ||
| 14 | { | ||
| 15 | "label": "Q", | ||
| 16 | "x": 1, | ||
| 17 | "y": 0 | ||
| 18 | }, | ||
| 19 | { | ||
| 20 | "label": "W", | ||
| 21 | "x": 2, | ||
| 22 | "y": 0 | ||
| 23 | }, | ||
| 24 | { | ||
| 25 | "label": "E", | ||
| 26 | "x": 3, | ||
| 27 | "y": 0 | ||
| 28 | }, | ||
| 29 | { | ||
| 30 | "label": "R", | ||
| 31 | "x": 4, | ||
| 32 | "y": 0 | ||
| 33 | }, | ||
| 34 | { | ||
| 35 | "label": "T", | ||
| 36 | "x": 5, | ||
| 37 | "y": 0 | ||
| 38 | }, | ||
| 39 | { | ||
| 40 | "label": "Y", | ||
| 41 | "x": 7.5, | ||
| 42 | "y": 0 | ||
| 43 | }, | ||
| 44 | { | ||
| 45 | "label": "U", | ||
| 46 | "x": 8.5, | ||
| 47 | "y": 0 | ||
| 48 | }, | ||
| 49 | { | ||
| 50 | "label": "I", | ||
| 51 | "x": 9.5, | ||
| 52 | "y": 0 | ||
| 53 | }, | ||
| 54 | { | ||
| 55 | "label": "O", | ||
| 56 | "x": 10.5, | ||
| 57 | "y": 0 | ||
| 58 | }, | ||
| 59 | { | ||
| 60 | "label": "P", | ||
| 61 | "x": 11.5, | ||
| 62 | "y": 0 | ||
| 63 | }, | ||
| 64 | { | ||
| 65 | "label": "`", | ||
| 66 | "x": 12.5, | ||
| 67 | "y": 0 | ||
| 68 | }, | ||
| 69 | { | ||
| 70 | "label": "Esc", | ||
| 71 | "x": 0.25, | ||
| 72 | "y": 1 | ||
| 73 | }, | ||
| 74 | { | ||
| 75 | "label": "A", | ||
| 76 | "x": 1.25, | ||
| 77 | "y": 1 | ||
| 78 | }, | ||
| 79 | { | ||
| 80 | "label": "S", | ||
| 81 | "x": 2.25, | ||
| 82 | "y": 1 | ||
| 83 | }, | ||
| 84 | { | ||
| 85 | "label": "D", | ||
| 86 | "x": 3.25, | ||
| 87 | "y": 1 | ||
| 88 | }, | ||
| 89 | { | ||
| 90 | "label": "F", | ||
| 91 | "x": 4.25, | ||
| 92 | "y": 1 | ||
| 93 | }, | ||
| 94 | { | ||
| 95 | "label": "G", | ||
| 96 | "x": 5.25, | ||
| 97 | "y": 1 | ||
| 98 | }, | ||
| 99 | { | ||
| 100 | "label": "H", | ||
| 101 | "x": 7.75, | ||
| 102 | "y": 1 | ||
| 103 | }, | ||
| 104 | { | ||
| 105 | "label": "J", | ||
| 106 | "x": 8.75, | ||
| 107 | "y": 1 | ||
| 108 | }, | ||
| 109 | { | ||
| 110 | "label": "K", | ||
| 111 | "x": 9.75, | ||
| 112 | "y": 1 | ||
| 113 | }, | ||
| 114 | { | ||
| 115 | "label": "L", | ||
| 116 | "x": 10.75, | ||
| 117 | "y": 1 | ||
| 118 | }, | ||
| 119 | { | ||
| 120 | "label": ";", | ||
| 121 | "x": 11.75, | ||
| 122 | "y": 1 | ||
| 123 | }, | ||
| 124 | { | ||
| 125 | "label": "'", | ||
| 126 | "x": 12.75, | ||
| 127 | "y": 1 | ||
| 128 | }, | ||
| 129 | { | ||
| 130 | "label": "Shift", | ||
| 131 | "x": 0.75, | ||
| 132 | "y": 2 | ||
| 133 | }, | ||
| 134 | { | ||
| 135 | "label": "Z", | ||
| 136 | "x": 1.75, | ||
| 137 | "y": 2 | ||
| 138 | }, | ||
| 139 | { | ||
| 140 | "label": "X", | ||
| 141 | "x": 2.75, | ||
| 142 | "y": 2 | ||
| 143 | }, | ||
| 144 | { | ||
| 145 | "label": "C", | ||
| 146 | "x": 3.75, | ||
| 147 | "y": 2 | ||
| 148 | }, | ||
| 149 | { | ||
| 150 | "label": "V", | ||
| 151 | "x": 4.75, | ||
| 152 | "y": 2 | ||
| 153 | }, | ||
| 154 | { | ||
| 155 | "label": "B", | ||
| 156 | "x": 5.75, | ||
| 157 | "y": 2 | ||
| 158 | }, | ||
| 159 | { | ||
| 160 | "label": "Enter", | ||
| 161 | "x": 7.25, | ||
| 162 | "y": 2 | ||
| 163 | }, | ||
| 164 | { | ||
| 165 | "label": "N", | ||
| 166 | "x": 7.25, | ||
| 167 | "y": 2 | ||
| 168 | }, | ||
| 169 | { | ||
| 170 | "label": "M", | ||
| 171 | "x": 7.25, | ||
| 172 | "y": 2 | ||
| 173 | }, | ||
| 174 | { | ||
| 175 | "label": ",", | ||
| 176 | "x": 7.25, | ||
| 177 | "y": 2 | ||
| 178 | }, | ||
| 179 | { | ||
| 180 | "label": ".", | ||
| 181 | "x": 7.25, | ||
| 182 | "y": 2 | ||
| 183 | }, | ||
| 184 | { | ||
| 185 | "label": "/", | ||
| 186 | "x": 7.25, | ||
| 187 | "y": 2 | ||
| 188 | }, | ||
| 189 | { | ||
| 190 | "label": "Ctrl", | ||
| 191 | "x": 0.5, | ||
| 192 | "y": 3 | ||
| 193 | }, | ||
| 194 | { | ||
| 195 | "label": "Alt", | ||
| 196 | "x": 1.5, | ||
| 197 | "y": 3 | ||
| 198 | }, | ||
| 199 | { | ||
| 200 | "label": "Gui", | ||
| 201 | "x": 3.75, | ||
| 202 | "y": 3 | ||
| 203 | }, | ||
| 204 | { | ||
| 205 | "label": "NO", | ||
| 206 | "x": 4.75, | ||
| 207 | "y": 3 | ||
| 208 | }, | ||
| 209 | { | ||
| 210 | "label": "Bksp", | ||
| 211 | "x": 5.75, | ||
| 212 | "y": 3 | ||
| 213 | }, | ||
| 214 | { | ||
| 215 | "label": "Space", | ||
| 216 | "x": 7.25, | ||
| 217 | "y": 3 | ||
| 218 | }, | ||
| 219 | { | ||
| 220 | "label": "NO", | ||
| 221 | "x": 8.25, | ||
| 222 | "y": 3 | ||
| 223 | }, | ||
| 224 | { | ||
| 225 | "label": "Gui", | ||
| 226 | "x": 9.25, | ||
| 227 | "y": 3 | ||
| 228 | }, | ||
| 229 | { | ||
| 230 | "label": "[", | ||
| 231 | "x": 11.5, | ||
| 232 | "y": 3 | ||
| 233 | }, | ||
| 234 | { | ||
| 235 | "label": "]", | ||
| 236 | "x": 12.5, | ||
| 237 | "y": 3 | ||
| 238 | } | ||
| 239 | ] | ||
| 240 | } | ||
| 241 | } | ||
| 242 | } | ||
diff --git a/keyboards/tokyokeyboard/alix40/keymaps/default/keymap.c b/keyboards/tokyokeyboard/alix40/keymaps/default/keymap.c new file mode 100644 index 000000000..ae8f1d0ad --- /dev/null +++ b/keyboards/tokyokeyboard/alix40/keymaps/default/keymap.c | |||
| @@ -0,0 +1,73 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2021 quadcube <james@quadcube.xyz> | ||
| 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 | This program is distributed in the hope that it will be useful, | ||
| 8 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 9 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 10 | GNU General Public License for more details. | ||
| 11 | You should have received a copy of the GNU General Public License | ||
| 12 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 13 | */ | ||
| 14 | |||
| 15 | #include QMK_KEYBOARD_H | ||
| 16 | |||
| 17 | /* | ||
| 18 | * Default Alix Layout | ||
| 19 | */ | ||
| 20 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 21 | /* 0: Default layer | ||
| 22 | ┌─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┐ | ||
| 23 | │ Tab │ Q │ W │ E │ R │ T │ Y │ U │ I │ O │ P │ ` │ | ||
| 24 | ├─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┤ | ||
| 25 | │ Esc │ A │ S │ D │ F │ G │ H │ J │ K │ L │ ; │ ' │ | ||
| 26 | ├─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┤ | ||
| 27 | │Shift│ Z │ X │ C │ V │ B │Enter│ N │ M │ , │ . │ / │ | ||
| 28 | ├─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┤ | ||
| 29 | │Ctrl │ Alt │ │ Gui │█████│Bksp │Space│█████│ Gui │ │ [ │ ] │ | ||
| 30 | └─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┘ | ||
| 31 | */ | ||
| 32 | [0] = LAYOUT_40_alix( | ||
| 33 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_GRV, | ||
| 34 | KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, | ||
| 35 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_ENT, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, | ||
| 36 | KC_LCTL, KC_RALT, KC_LGUI,KC_NO, LT(1, KC_BSPC), LT(2, KC_SPC), KC_NO, KC_RGUI, KC_LBRC, KC_RBRC | ||
| 37 | ), | ||
| 38 | /* 1: Lower Layer | ||
| 39 | ┌─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┐ | ||
| 40 | │ ~ │ ! │ @ │ # │ $ │ % │ ^ │ & │ * │ ( │ ) │ | │ | ||
| 41 | ├─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┤ | ||
| 42 | │ DEL | F1 | F2 | F3 | F4 | F5 │Left │Down │ Up │Right│ ; │ ' │ | ||
| 43 | ├─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┤ | ||
| 44 | │Shift│ F6 │ F7 │ F8 │ F9 │ F10 │Enter|Next |Vol- |Vol+ | Play│ / │ | ||
| 45 | ├─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┤ | ||
| 46 | │Ctrl │ Alt │ │ Gui │█████│Bksp │Space│█████│ Gui │ │ _ │ + │ | ||
| 47 | └─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┘ | ||
| 48 | */ | ||
| 49 | [1]= LAYOUT_40_alix( | ||
| 50 | KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_PIPE, | ||
| 51 | KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, KC_SCLN, KC_QUOT, | ||
| 52 | KC_LSFT, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_ENT, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY, KC_SLSH, | ||
| 53 | KC_LCTL, KC_RALT, KC_LGUI, KC_NO, LT(1, KC_BSPC), LT(2, KC_SPC), KC_NO, KC_RGUI, KC_UNDS, KC_PLUS | ||
| 54 | ), | ||
| 55 | |||
| 56 | /* 2: Raise Layer | ||
| 57 | ┌─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┐ | ||
| 58 | │ ~ │ 1 │ 2 │ 3 │ 4 │ 5 │ 6 │ 7 │ 8 │ 9 │ 0 │ \ │ | ||
| 59 | ├─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┤ | ||
| 60 | │ DEL │ F1 │ F2 │ F3 │ F4 │ F5 │Left │Down │ Up │Right│ ; │ ' │ | ||
| 61 | ├─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┤ | ||
| 62 | │Shift│ F6 │ F7 │ F8 │ F9 │ F10 │Enter│Next │PgDn │PgUp │Home │ End │ | ||
| 63 | ├─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┤ | ||
| 64 | │Ctrl │ Alt │ │ Gui │█████│Bksp │Space│█████│ Gui │ │ - │ = │ | ||
| 65 | └─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┘ | ||
| 66 | */ | ||
| 67 | [2]= LAYOUT_40_alix( | ||
| 68 | KC_TILD, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSLS, | ||
| 69 | KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, KC_SCLN, KC_QUOT, | ||
| 70 | KC_LSFT, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_ENT, KC_MNXT, KC_PGDN, KC_PGUP, KC_HOME, KC_END, | ||
| 71 | KC_LCTL, KC_RALT, KC_LGUI, KC_NO, LT(1, KC_BSPC), LT(2, KC_SPC), KC_NO, KC_RGUI, KC_MINS, KC_EQL | ||
| 72 | ), | ||
| 73 | }; | ||
diff --git a/keyboards/tokyokeyboard/alix40/keymaps/via/keymap.c b/keyboards/tokyokeyboard/alix40/keymaps/via/keymap.c new file mode 100644 index 000000000..7bd091591 --- /dev/null +++ b/keyboards/tokyokeyboard/alix40/keymaps/via/keymap.c | |||
| @@ -0,0 +1,47 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2021 quadcube <james@quadcube.xyz> | ||
| 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 | This program is distributed in the hope that it will be useful, | ||
| 8 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 9 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 10 | GNU General Public License for more details. | ||
| 11 | You should have received a copy of the GNU General Public License | ||
| 12 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 13 | */ | ||
| 14 | |||
| 15 | #include QMK_KEYBOARD_H | ||
| 16 | |||
| 17 | #define BL 0 | ||
| 18 | #define FN 1 | ||
| 19 | /* | ||
| 20 | * Default alix40 Layout | ||
| 21 | */ | ||
| 22 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 23 | |||
| 24 | [BL] = LAYOUT_40_alix( | ||
| 25 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_GRV, | ||
| 26 | KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, | ||
| 27 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_ENT, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, | ||
| 28 | KC_LCTL, KC_RALT, KC_LGUI,KC_NO, LT(1, KC_BSPC), LT(2, KC_SPC), KC_NO, KC_RGUI, KC_LBRC, KC_RBRC), | ||
| 29 | |||
| 30 | [FN]= LAYOUT_40_alix( | ||
| 31 | KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_PIPE, | ||
| 32 | KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, KC_SCLN, KC_QUOT, | ||
| 33 | KC_LSFT, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_ENT, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY, KC_SLSH, | ||
| 34 | KC_LCTL, KC_RALT, KC_LGUI, KC_NO, LT(1, KC_BSPC), LT(2, KC_SPC), KC_NO, KC_RGUI, KC_UNDS, KC_PLUS), | ||
| 35 | |||
| 36 | [2]= LAYOUT_40_alix( | ||
| 37 | KC_TILD, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSLS, | ||
| 38 | KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, KC_SCLN, KC_QUOT, | ||
| 39 | KC_LSFT, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_ENT, KC_MNXT, KC_PGDN, KC_PGUP, KC_HOME, KC_END, | ||
| 40 | KC_LCTL, KC_RALT, KC_LGUI, KC_NO, LT(1, KC_BSPC), LT(2, KC_SPC), KC_NO, KC_RGUI, KC_MINS, KC_EQL), | ||
| 41 | |||
| 42 | [3]= LAYOUT_40_alix( | ||
| 43 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 44 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 45 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 46 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______), | ||
| 47 | }; | ||
diff --git a/keyboards/tokyokeyboard/alix40/keymaps/via/rules.mk b/keyboards/tokyokeyboard/alix40/keymaps/via/rules.mk new file mode 100644 index 000000000..36b7ba9cb --- /dev/null +++ b/keyboards/tokyokeyboard/alix40/keymaps/via/rules.mk | |||
| @@ -0,0 +1,2 @@ | |||
| 1 | VIA_ENABLE = yes | ||
| 2 | LTO_ENABLE = yes | ||
diff --git a/keyboards/tokyokeyboard/alix40/readme.md b/keyboards/tokyokeyboard/alix40/readme.md new file mode 100644 index 000000000..b3db0c210 --- /dev/null +++ b/keyboards/tokyokeyboard/alix40/readme.md | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | # alix40 | ||
| 2 | | ||
| 3 |  | ||
| 4 | | ||
| 5 | Minimal hacker style mechanical keyboard designed in Tokyo. Cherry MX compatible. More Info at [Tokyo Keyboard](http://tokyokeyboard.com). | ||
| 6 | | ||
| 7 | * Keyboard Maintainer: [quadcube](https://github.com/quadcube) | ||
| 8 | * Hardware Supported: alix40 rev1 | ||
| 9 | * Hardware Availability: [Tokyo Keyboard](http://tokyokeyboard.com) | ||
| 10 | | ||
| 11 | Make example for this keyboard (after setting up your build environment): | ||
| 12 | | ||
| 13 | make tokyokeyboard/alix40:default | ||
| 14 | | ||
| 15 | See [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) then the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. | ||
| 16 | |||
| 17 | Note: | ||
| 18 | 1. Be very careful and gentle when disassembling the PCB from the bottom case | ||
| 19 | 2. alix40 battery power switch (shown in the image below) is used to toggle battery usage (on: battery will be charged when USB is connected, keyboard will be on when USB is disconnected/off:battery will not be charged when USB is connected, keyboard will be off when USB is disconnected) | ||
| 20 |  | ||
| 21 | 3. Install the slider on the battery power switch (bundled together with the 3M feets) | ||
| 22 | 4. Underglow RGBs are switched off when alix40 is running on battery power (hardware feature to extend battery usage time) | ||
diff --git a/keyboards/tokyokeyboard/alix40/rules.mk b/keyboards/tokyokeyboard/alix40/rules.mk new file mode 100644 index 000000000..66097b63e --- /dev/null +++ b/keyboards/tokyokeyboard/alix40/rules.mk | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = atmega32u4 | ||
| 3 | |||
| 4 | # Processor frequency | ||
| 5 | F_CPU = 8000000 | ||
| 6 | |||
| 7 | # Bootloader selection | ||
| 8 | BOOTLOADER = atmel-dfu | ||
| 9 | |||
| 10 | # Build Options | ||
| 11 | # change yes to no to disable | ||
| 12 | # | ||
| 13 | BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration | ||
| 14 | MOUSEKEY_ENABLE = no # Mouse keys | ||
| 15 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
| 16 | CONSOLE_ENABLE = no # Console for debug | ||
| 17 | COMMAND_ENABLE = yes # Commands for debug and configuration | ||
| 18 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 19 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 20 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 21 | NKRO_ENABLE = no # USB Nkey Rollover | ||
| 22 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 23 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
| 24 | BLUETOOTH_ENABLE = no # Enable Bluetooth | ||
| 25 | AUDIO_ENABLE = no # Audio output | ||
| 26 | BLUETOOTH = AdafruitBLE | ||
