diff options
| author | Sendy YK <69058604+mrsendyyk@users.noreply.github.com> | 2020-09-24 09:34:22 +0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-23 19:34:22 -0700 |
| commit | ec7ce15c111b14c04b826a7adad1ea089cc18be0 (patch) | |
| tree | 4371bd5fe578b264a1620f45ca2f118fce4a1fab | |
| parent | 30ffae2317936ece2f3275f6fab5a5df212afb85 (diff) | |
| download | qmk_firmware-ec7ce15c111b14c04b826a7adad1ea089cc18be0.tar.gz qmk_firmware-ec7ce15c111b14c04b826a7adad1ea089cc18be0.zip | |
Add ai03/soyuz VIA Support (#10336)
* Add ai03/soyuz:via
* Update config.h
* Update keymap.c
* Revert "Update keymap.c"
This reverts commit e3766b3b603aecca82b337e5ae8d5613f47526d6.
* Update keymap.c
* Update keymap.c
* Update keyboards/ai03/soyuz/config.h
| -rw-r--r-- | keyboards/ai03/soyuz/config.h | 79 | ||||
| -rw-r--r-- | keyboards/ai03/soyuz/keymaps/via/keymap.c | 59 | ||||
| -rw-r--r-- | keyboards/ai03/soyuz/keymaps/via/rules.mk | 1 |
3 files changed, 61 insertions, 78 deletions
diff --git a/keyboards/ai03/soyuz/config.h b/keyboards/ai03/soyuz/config.h index 213b6509b..feb55107c 100644 --- a/keyboards/ai03/soyuz/config.h +++ b/keyboards/ai03/soyuz/config.h | |||
| @@ -21,11 +21,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 21 | 21 | ||
| 22 | /* USB Device descriptor parameter */ | 22 | /* USB Device descriptor parameter */ |
| 23 | #define VENDOR_ID 0xA103 | 23 | #define VENDOR_ID 0xA103 |
| 24 | #define PRODUCT_ID 0x0004 | 24 | #define PRODUCT_ID 0x0018 |
| 25 | #define DEVICE_VER 0x0001 | 25 | #define DEVICE_VER 0x0001 |
| 26 | #define MANUFACTURER ai03 Design Studio | 26 | #define MANUFACTURER ai03 Design Studio |
| 27 | #define PRODUCT Soyuz | 27 | #define PRODUCT Soyuz |
| 28 | #define DESCRIPTION Single-PCB Numpad Kit | ||
| 29 | 28 | ||
| 30 | /* key matrix size */ | 29 | /* key matrix size */ |
| 31 | #define MATRIX_ROWS 5 | 30 | #define MATRIX_ROWS 5 |
| @@ -119,59 +118,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 119 | //#define FORCE_NKRO | 118 | //#define FORCE_NKRO |
| 120 | 119 | ||
| 121 | /* | 120 | /* |
| 122 | * Magic Key Options | ||
| 123 | * | ||
| 124 | * Magic keys are hotkey commands that allow control over firmware functions of | ||
| 125 | * the keyboard. They are best used in combination with the HID Listen program, | ||
| 126 | * found here: https://www.pjrc.com/teensy/hid_listen.html | ||
| 127 | * | ||
| 128 | * The options below allow the magic key functionality to be changed. This is | ||
| 129 | * useful if your keyboard/keypad is missing keys and you want magic key support. | ||
| 130 | * | ||
| 131 | */ | ||
| 132 | |||
| 133 | /* key combination for magic key command */ | ||
| 134 | /* defined by default; to change, uncomment and set to the combination you want */ | ||
| 135 | // #define IS_COMMAND() (get_mods() == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT))) | ||
| 136 | |||
| 137 | /* control how magic key switches layers */ | ||
| 138 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS true | ||
| 139 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS true | ||
| 140 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM false | ||
| 141 | |||
| 142 | /* override magic key keymap */ | ||
| 143 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS | ||
| 144 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS | ||
| 145 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM | ||
| 146 | //#define MAGIC_KEY_HELP H | ||
| 147 | //#define MAGIC_KEY_HELP_ALT SLASH | ||
| 148 | //#define MAGIC_KEY_DEBUG D | ||
| 149 | //#define MAGIC_KEY_DEBUG_MATRIX X | ||
| 150 | //#define MAGIC_KEY_DEBUG_KBD K | ||
| 151 | //#define MAGIC_KEY_DEBUG_MOUSE M | ||
| 152 | //#define MAGIC_KEY_VERSION V | ||
| 153 | //#define MAGIC_KEY_STATUS S | ||
| 154 | //#define MAGIC_KEY_CONSOLE C | ||
| 155 | //#define MAGIC_KEY_LAYER0 0 | ||
| 156 | //#define MAGIC_KEY_LAYER0_ALT GRAVE | ||
| 157 | //#define MAGIC_KEY_LAYER1 1 | ||
| 158 | //#define MAGIC_KEY_LAYER2 2 | ||
| 159 | //#define MAGIC_KEY_LAYER3 3 | ||
| 160 | //#define MAGIC_KEY_LAYER4 4 | ||
| 161 | //#define MAGIC_KEY_LAYER5 5 | ||
| 162 | //#define MAGIC_KEY_LAYER6 6 | ||
| 163 | //#define MAGIC_KEY_LAYER7 7 | ||
| 164 | //#define MAGIC_KEY_LAYER8 8 | ||
| 165 | //#define MAGIC_KEY_LAYER9 9 | ||
| 166 | //#define MAGIC_KEY_BOOTLOADER B | ||
| 167 | //#define MAGIC_KEY_BOOTLOADER_ALT ESC | ||
| 168 | //#define MAGIC_KEY_LOCK CAPS | ||
| 169 | //#define MAGIC_KEY_EEPROM E | ||
| 170 | //#define MAGIC_KEY_EEPROM_CLEAR BSPACE | ||
| 171 | //#define MAGIC_KEY_NKRO N | ||
| 172 | //#define MAGIC_KEY_SLEEP_LED Z | ||
| 173 | |||
| 174 | /* | ||
| 175 | * Feature disable options | 121 | * Feature disable options |
| 176 | * These options are also useful to firmware size reduction. | 122 | * These options are also useful to firmware size reduction. |
| 177 | */ | 123 | */ |
| @@ -189,29 +135,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 189 | //#define NO_ACTION_MACRO | 135 | //#define NO_ACTION_MACRO |
| 190 | //#define NO_ACTION_FUNCTION | 136 | //#define NO_ACTION_FUNCTION |
| 191 | 137 | ||
| 192 | /* | ||
| 193 | * MIDI options | ||
| 194 | */ | ||
| 195 | |||
| 196 | /* Prevent use of disabled MIDI features in the keymap */ | ||
| 197 | //#define MIDI_ENABLE_STRICT 1 | ||
| 198 | |||
| 199 | /* enable basic MIDI features: | ||
| 200 | - MIDI notes can be sent when in Music mode is on | ||
| 201 | */ | ||
| 202 | //#define MIDI_BASIC | ||
| 203 | |||
| 204 | /* enable advanced MIDI features: | ||
| 205 | - MIDI notes can be added to the keymap | ||
| 206 | - Octave shift and transpose | ||
| 207 | - Virtual sustain, portamento, and modulation wheel | ||
| 208 | - etc. | ||
| 209 | */ | ||
| 210 | //#define MIDI_ADVANCED | ||
| 211 | |||
| 212 | /* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */ | ||
| 213 | //#define MIDI_TONE_KEYCODE_OCTAVES 1 | ||
| 214 | |||
| 215 | /* Bootmagic Lite key configuration */ | 138 | /* Bootmagic Lite key configuration */ |
| 216 | // #define BOOTMAGIC_LITE_ROW 0 | 139 | // #define BOOTMAGIC_LITE_ROW 0 |
| 217 | // #define BOOTMAGIC_LITE_COLUMN 0 | 140 | // #define BOOTMAGIC_LITE_COLUMN 0 |
diff --git a/keyboards/ai03/soyuz/keymaps/via/keymap.c b/keyboards/ai03/soyuz/keymaps/via/keymap.c new file mode 100644 index 000000000..9b62ca217 --- /dev/null +++ b/keyboards/ai03/soyuz/keymaps/via/keymap.c | |||
| @@ -0,0 +1,59 @@ | |||
| 1 | /* Copyright (C) 2020 Sendy YK (https://mr.sendyyk.com). | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 3 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 <https://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | |||
| 17 | #include QMK_KEYBOARD_H | ||
| 18 | |||
| 19 | enum layer_names { | ||
| 20 | _BASE, // Default Layer | ||
| 21 | _FN, // Fn Layer 1 | ||
| 22 | _FN2, // Fn Layer 2 | ||
| 23 | _FN3 // Fn Layer 3 | ||
| 24 | }; | ||
| 25 | |||
| 26 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 27 | // Default Layer | ||
| 28 | [_BASE] = LAYOUT_ortho_5x4( | ||
| 29 | KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS, | ||
| 30 | KC_P7, KC_P8, KC_P9, KC_PPLS, | ||
| 31 | KC_P4, KC_P5, KC_P6, KC_PPLS, | ||
| 32 | KC_P1, KC_P2, KC_P3, KC_PENT, | ||
| 33 | KC_P0, KC_P0, KC_PDOT, KC_PENT | ||
| 34 | ), | ||
| 35 | // Fn Layer 1 | ||
| 36 | [_FN] = LAYOUT_ortho_5x4( | ||
| 37 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 38 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 39 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 40 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 41 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
| 42 | ), | ||
| 43 | // Fn Layer 2 | ||
| 44 | [_FN2] = LAYOUT_ortho_5x4( | ||
| 45 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 46 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 47 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 48 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 49 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
| 50 | ), | ||
| 51 | // Fn Layer 3 | ||
| 52 | [_FN3] = LAYOUT_ortho_5x4( | ||
| 53 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 54 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 55 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 56 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 57 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
| 58 | ) | ||
| 59 | }; | ||
diff --git a/keyboards/ai03/soyuz/keymaps/via/rules.mk b/keyboards/ai03/soyuz/keymaps/via/rules.mk new file mode 100644 index 000000000..1e5b99807 --- /dev/null +++ b/keyboards/ai03/soyuz/keymaps/via/rules.mk | |||
| @@ -0,0 +1 @@ | |||
| VIA_ENABLE = yes | |||
