diff options
| author | Daniel H Klein <danielklein@utexas.edu> | 2019-01-27 00:12:05 -0800 |
|---|---|---|
| committer | Drashna Jaelre <drashna@live.com> | 2019-01-27 00:12:05 -0800 |
| commit | 9ae800fab3861a96f13b9226fe744b7785c13105 (patch) | |
| tree | c94c59f1e0138747ef26b484c14c345424a5e264 /keyboards/sirius | |
| parent | 5d26ebcbaa8069975411e7acf3d8585c35da394f (diff) | |
| download | qmk_firmware-9ae800fab3861a96f13b9226fe744b7785c13105.tar.gz qmk_firmware-9ae800fab3861a96f13b9226fe744b7785c13105.zip | |
[Keyboard] UniGo66 keyboard added (#4913)
* UniGo66 keyboard added
* UniGo66 keyboard added
* case correction of unigo66 files
* create sirius folder
* Update keyboards/sirius/unigo66/rules.mk
Co-Authored-By: danielhklein <danielklein@utexas.edu>
* Update keyboards/sirius/unigo66/keymaps/danielhklein/keymap.c
Co-Authored-By: danielhklein <danielklein@utexas.edu>
* Update keyboards/sirius/unigo66/keymaps/default/config.h
Co-Authored-By: danielhklein <danielklein@utexas.edu>
* Update keyboards/sirius/unigo66/keymaps/danielhklein/config.h
Co-Authored-By: danielhklein <danielklein@utexas.edu>
* debugging
* correct keymap to layout
* readme
* remove common config
* suggested changes to config.h
* default keymap cleanup
Diffstat (limited to 'keyboards/sirius')
| -rw-r--r-- | keyboards/sirius/unigo66/README.md | 17 | ||||
| -rw-r--r-- | keyboards/sirius/unigo66/config.h | 54 | ||||
| -rw-r--r-- | keyboards/sirius/unigo66/custom_matrix.cpp | 242 | ||||
| -rw-r--r-- | keyboards/sirius/unigo66/info.json | 485 | ||||
| -rw-r--r-- | keyboards/sirius/unigo66/keymaps/danielhklein/config.h | 3 | ||||
| -rw-r--r-- | keyboards/sirius/unigo66/keymaps/danielhklein/keymap.c | 177 | ||||
| -rw-r--r-- | keyboards/sirius/unigo66/keymaps/default/config.h | 3 | ||||
| -rw-r--r-- | keyboards/sirius/unigo66/keymaps/default/keymap.c | 66 | ||||
| -rw-r--r-- | keyboards/sirius/unigo66/main.c | 108 | ||||
| -rw-r--r-- | keyboards/sirius/unigo66/matrix.c | 1 | ||||
| -rw-r--r-- | keyboards/sirius/unigo66/readme.md | 17 | ||||
| -rw-r--r-- | keyboards/sirius/unigo66/rules.mk | 32 | ||||
| -rw-r--r-- | keyboards/sirius/unigo66/unigo66.c | 1 | ||||
| -rw-r--r-- | keyboards/sirius/unigo66/unigo66.h | 103 |
14 files changed, 1309 insertions, 0 deletions
diff --git a/keyboards/sirius/unigo66/README.md b/keyboards/sirius/unigo66/README.md new file mode 100644 index 000000000..78a02ed09 --- /dev/null +++ b/keyboards/sirius/unigo66/README.md | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | # UniGo66 | ||
| 2 | |||
| 3 |  | ||
| 4 | |||
| 5 | The UniGo66 is an ergonomic wireless keyboard designed by Sirius and manufactured by ALF Studios. | ||
| 6 | |||
| 7 | Join ALF Studios on [Discord](https://discord.gg/GJ8bdM) | ||
| 8 | |||
| 9 | Make example: | ||
| 10 | |||
| 11 | make sirius/unigo66:default | ||
| 12 | |||
| 13 | 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). | ||
| 14 | |||
| 15 | To get the U2U into DFU flashing mode, insert the U2U into the computer and press the button in the red circle shown below | ||
| 16 | |||
| 17 |  \ No newline at end of file | ||
diff --git a/keyboards/sirius/unigo66/config.h b/keyboards/sirius/unigo66/config.h new file mode 100644 index 000000000..883de44a2 --- /dev/null +++ b/keyboards/sirius/unigo66/config.h | |||
| @@ -0,0 +1,54 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2017 Balz Guenat <balz.guenat@gmail.com> | ||
| 3 | |||
| 4 | This program is free software: you can redistribute it and/or modify | ||
| 5 | it under the terms of the GNU General Public License as published by | ||
| 6 | the Free Software Foundation, either version 2 of the License, or | ||
| 7 | (at your option) any later version. | ||
| 8 | |||
| 9 | This program is distributed in the hope that it will be useful, | ||
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | GNU General Public License for more details. | ||
| 13 | |||
| 14 | You should have received a copy of the GNU General Public License | ||
| 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 16 | */ | ||
| 17 | |||
| 18 | #pragma once | ||
| 19 | |||
| 20 | #define CUSTOM_MATRIX 2 | ||
| 21 | |||
| 22 | /* USB Device descriptor parameter */ | ||
| 23 | #define VENDOR_ID 0x5369 | ||
| 24 | #define PRODUCT_ID 0x005B | ||
| 25 | #define DEVICE_VER 0x0814 | ||
| 26 | #define MANUFACTURER Sirius | ||
| 27 | #define PRODUCT UniGo66 | ||
| 28 | #define DESCRIPTION UniGo66 Wireless Split keyboard | ||
| 29 | |||
| 30 | |||
| 31 | /* size of virtual matrix */ | ||
| 32 | #define MATRIX_ROWS 16 | ||
| 33 | #define MATRIX_COLS 16 | ||
| 34 | |||
| 35 | /* matrix scanning is done in custom_matrix.cpp */ | ||
| 36 | #define DIODE_DIRECTION CUSTOM_MATRIX | ||
| 37 | |||
| 38 | /* | ||
| 39 | * Feature disable options | ||
| 40 | * These options are also useful to firmware size reduction. | ||
| 41 | */ | ||
| 42 | |||
| 43 | /* disable debug print */ | ||
| 44 | //#define NO_DEBUG | ||
| 45 | |||
| 46 | /* disable print */ | ||
| 47 | //#define NO_PRINT | ||
| 48 | |||
| 49 | /* disable action features */ | ||
| 50 | //#define NO_ACTION_LAYER | ||
| 51 | //#define NO_ACTION_TAPPING | ||
| 52 | //#define NO_ACTION_ONESHOT | ||
| 53 | //#define NO_ACTION_MACRO | ||
| 54 | //#define NO_ACTION_FUNCTION | ||
diff --git a/keyboards/sirius/unigo66/custom_matrix.cpp b/keyboards/sirius/unigo66/custom_matrix.cpp new file mode 100644 index 000000000..fba107c7c --- /dev/null +++ b/keyboards/sirius/unigo66/custom_matrix.cpp | |||
| @@ -0,0 +1,242 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2016 Jun Wako <wakojun@gmail.com> | ||
| 3 | |||
| 4 | This program is free software: you can redistribute it and/or modify | ||
| 5 | it under the terms of the GNU General Public License as published by | ||
| 6 | the Free Software Foundation, either version 2 of the License, or | ||
| 7 | (at your option) any later version. | ||
| 8 | |||
| 9 | This program is distributed in the hope that it will be useful, | ||
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | GNU General Public License for more details. | ||
| 13 | |||
| 14 | You should have received a copy of the GNU General Public License | ||
| 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 16 | */ | ||
| 17 | |||
| 18 | #include <stdint.h> | ||
| 19 | #include <stdbool.h> | ||
| 20 | |||
| 21 | // USB HID host | ||
| 22 | #include "Usb.h" | ||
| 23 | #include "usbhub.h" | ||
| 24 | #include "hid.h" | ||
| 25 | #include "hidboot.h" | ||
| 26 | #include "parser.h" | ||
| 27 | |||
| 28 | #include "keycode.h" | ||
| 29 | #include "util.h" | ||
| 30 | #include "print.h" | ||
| 31 | #include "debug.h" | ||
| 32 | #include "timer.h" | ||
| 33 | #include "matrix.h" | ||
| 34 | #include "led.h" | ||
| 35 | #include "host.h" | ||
| 36 | #include "keyboard.h" | ||
| 37 | |||
| 38 | extern "C" { | ||
| 39 | #include "quantum.h" | ||
| 40 | } | ||
| 41 | |||
| 42 | /* KEY CODE to Matrix | ||
| 43 | * | ||
| 44 | * HID keycode(1 byte): | ||
| 45 | * Higher 5 bits indicates ROW and lower 3 bits COL. | ||
| 46 | * | ||
| 47 | * 7 6 5 4 3 2 1 0 | ||
| 48 | * +---------------+ | ||
| 49 | * | ROW | COL | | ||
| 50 | * +---------------+ | ||
| 51 | * | ||
| 52 | * Matrix space(16 * 16): | ||
| 53 | * r\c0123456789ABCDEF | ||
| 54 | * 0 +----------------+ | ||
| 55 | * : | | | ||
| 56 | * : | | | ||
| 57 | * 16 +----------------+ | ||
| 58 | */ | ||
| 59 | #define ROW_MASK 0xF0 | ||
| 60 | #define COL_MASK 0x0F | ||
| 61 | #define CODE(row, col) (((row) << 4) | (col)) | ||
| 62 | #define ROW(code) (((code) & ROW_MASK) >> 4) | ||
| 63 | #define COL(code) ((code) & COL_MASK) | ||
| 64 | #define ROW_BITS(code) (1 << COL(code)) | ||
| 65 | |||
| 66 | |||
| 67 | // Integrated key state of all keyboards | ||
| 68 | static report_keyboard_t local_keyboard_report; | ||
| 69 | |||
| 70 | static bool matrix_is_mod = false; | ||
| 71 | |||
| 72 | /* | ||
| 73 | * USB Host Shield HID keyboards | ||
| 74 | * This supports two cascaded hubs and four keyboards | ||
| 75 | */ | ||
| 76 | USB usb_host; | ||
| 77 | USBHub hub1(&usb_host); | ||
| 78 | USBHub hub2(&usb_host); | ||
| 79 | HIDBoot<HID_PROTOCOL_KEYBOARD> kbd1(&usb_host); | ||
| 80 | HIDBoot<HID_PROTOCOL_KEYBOARD> kbd2(&usb_host); | ||
| 81 | HIDBoot<HID_PROTOCOL_KEYBOARD> kbd3(&usb_host); | ||
| 82 | HIDBoot<HID_PROTOCOL_KEYBOARD> kbd4(&usb_host); | ||
| 83 | KBDReportParser kbd_parser1; | ||
| 84 | KBDReportParser kbd_parser2; | ||
| 85 | KBDReportParser kbd_parser3; | ||
| 86 | KBDReportParser kbd_parser4; | ||
| 87 | |||
| 88 | |||
| 89 | extern "C" | ||
| 90 | { | ||
| 91 | uint8_t matrix_rows(void) { return MATRIX_ROWS; } | ||
| 92 | uint8_t matrix_cols(void) { return MATRIX_COLS; } | ||
| 93 | bool matrix_has_ghost(void) { return false; } | ||
| 94 | void matrix_init(void) { | ||
| 95 | // USB Host Shield setup | ||
| 96 | usb_host.Init(); | ||
| 97 | kbd1.SetReportParser(0, (HIDReportParser*)&kbd_parser1); | ||
| 98 | kbd2.SetReportParser(0, (HIDReportParser*)&kbd_parser2); | ||
| 99 | kbd3.SetReportParser(0, (HIDReportParser*)&kbd_parser3); | ||
| 100 | kbd4.SetReportParser(0, (HIDReportParser*)&kbd_parser4); | ||
| 101 | } | ||
| 102 | |||
| 103 | static void or_report(report_keyboard_t report) { | ||
| 104 | // integrate reports into local_keyboard_report | ||
| 105 | local_keyboard_report.mods |= report.mods; | ||
| 106 | for (uint8_t i = 0; i < KEYBOARD_REPORT_KEYS; i++) { | ||
| 107 | if (IS_ANY(report.keys[i])) { | ||
| 108 | for (uint8_t j = 0; j < KEYBOARD_REPORT_KEYS; j++) { | ||
| 109 | if (! local_keyboard_report.keys[j]) { | ||
| 110 | local_keyboard_report.keys[j] = report.keys[i]; | ||
| 111 | break; | ||
| 112 | } | ||
| 113 | } | ||
| 114 | } | ||
| 115 | } | ||
| 116 | } | ||
| 117 | |||
| 118 | uint8_t matrix_scan(void) { | ||
| 119 | static uint16_t last_time_stamp1 = 0; | ||
| 120 | static uint16_t last_time_stamp2 = 0; | ||
| 121 | static uint16_t last_time_stamp3 = 0; | ||
| 122 | static uint16_t last_time_stamp4 = 0; | ||
| 123 | |||
| 124 | // check report came from keyboards | ||
| 125 | if (kbd_parser1.time_stamp != last_time_stamp1 || | ||
| 126 | kbd_parser2.time_stamp != last_time_stamp2 || | ||
| 127 | kbd_parser3.time_stamp != last_time_stamp3 || | ||
| 128 | kbd_parser4.time_stamp != last_time_stamp4) { | ||
| 129 | |||
| 130 | last_time_stamp1 = kbd_parser1.time_stamp; | ||
| 131 | last_time_stamp2 = kbd_parser2.time_stamp; | ||
| 132 | last_time_stamp3 = kbd_parser3.time_stamp; | ||
| 133 | last_time_stamp4 = kbd_parser4.time_stamp; | ||
| 134 | |||
| 135 | // clear and integrate all reports | ||
| 136 | local_keyboard_report = {}; | ||
| 137 | or_report(kbd_parser1.report); | ||
| 138 | or_report(kbd_parser2.report); | ||
| 139 | or_report(kbd_parser3.report); | ||
| 140 | or_report(kbd_parser4.report); | ||
| 141 | |||
| 142 | matrix_is_mod = true; | ||
| 143 | |||
| 144 | dprintf("state: %02X %02X", local_keyboard_report.mods, local_keyboard_report.reserved); | ||
| 145 | for (uint8_t i = 0; i < KEYBOARD_REPORT_KEYS; i++) { | ||
| 146 | dprintf(" %02X", local_keyboard_report.keys[i]); | ||
| 147 | } | ||
| 148 | dprint("\r\n"); | ||
| 149 | } else { | ||
| 150 | matrix_is_mod = false; | ||
| 151 | } | ||
| 152 | |||
| 153 | uint16_t timer; | ||
| 154 | timer = timer_read(); | ||
| 155 | usb_host.Task(); | ||
| 156 | timer = timer_elapsed(timer); | ||
| 157 | if (timer > 100) { | ||
| 158 | dprintf("host.Task: %d\n", timer); | ||
| 159 | } | ||
| 160 | |||
| 161 | static uint8_t usb_state = 0; | ||
| 162 | if (usb_state != usb_host.getUsbTaskState()) { | ||
| 163 | usb_state = usb_host.getUsbTaskState(); | ||
| 164 | dprintf("usb_state: %02X\n", usb_state); | ||
| 165 | |||
| 166 | // restore LED state when keyboard comes up | ||
| 167 | if (usb_state == USB_STATE_RUNNING) { | ||
| 168 | dprintf("speed: %s\n", usb_host.getVbusState()==FSHOST ? "full" : "low"); | ||
| 169 | keyboard_set_leds(host_keyboard_leds()); | ||
| 170 | } | ||
| 171 | } | ||
| 172 | return 1; | ||
| 173 | } | ||
| 174 | |||
| 175 | bool matrix_is_modified(void) { | ||
| 176 | return matrix_is_mod; | ||
| 177 | } | ||
| 178 | |||
| 179 | bool matrix_is_on(uint8_t row, uint8_t col) { | ||
| 180 | uint8_t code = CODE(row, col); | ||
| 181 | |||
| 182 | if (IS_MOD(code)) { | ||
| 183 | if (local_keyboard_report.mods & ROW_BITS(code)) { | ||
| 184 | return true; | ||
| 185 | } | ||
| 186 | } | ||
| 187 | for (uint8_t i = 0; i < KEYBOARD_REPORT_KEYS; i++) { | ||
| 188 | if (local_keyboard_report.keys[i] == code) { | ||
| 189 | return true; | ||
| 190 | } | ||
| 191 | } | ||
| 192 | return false; | ||
| 193 | } | ||
| 194 | |||
| 195 | matrix_row_t matrix_get_row(uint8_t row) { | ||
| 196 | uint16_t row_bits = 0; | ||
| 197 | |||
| 198 | if (IS_MOD(CODE(row, 0)) && local_keyboard_report.mods) { | ||
| 199 | row_bits |= local_keyboard_report.mods; | ||
| 200 | } | ||
| 201 | |||
| 202 | for (uint8_t i = 0; i < KEYBOARD_REPORT_KEYS; i++) { | ||
| 203 | if (IS_ANY(local_keyboard_report.keys[i])) { | ||
| 204 | if (row == ROW(local_keyboard_report.keys[i])) { | ||
| 205 | row_bits |= ROW_BITS(local_keyboard_report.keys[i]); | ||
| 206 | } | ||
| 207 | } | ||
| 208 | } | ||
| 209 | return row_bits; | ||
| 210 | } | ||
| 211 | |||
| 212 | uint8_t matrix_key_count(void) { | ||
| 213 | uint8_t count = 0; | ||
| 214 | |||
| 215 | count += bitpop(local_keyboard_report.mods); | ||
| 216 | for (uint8_t i = 0; i < KEYBOARD_REPORT_KEYS; i++) { | ||
| 217 | if (IS_ANY(local_keyboard_report.keys[i])) { | ||
| 218 | count++; | ||
| 219 | } | ||
| 220 | } | ||
| 221 | return count; | ||
| 222 | } | ||
| 223 | |||
| 224 | void matrix_print(void) { | ||
| 225 | print("\nr/c 0123456789ABCDEF\n"); | ||
| 226 | for (uint8_t row = 0; row < matrix_rows(); row++) { | ||
| 227 | xprintf("%02d: ", row); | ||
| 228 | print_bin_reverse16(matrix_get_row(row)); | ||
| 229 | print("\n"); | ||
| 230 | } | ||
| 231 | } | ||
| 232 | |||
| 233 | void led_set(uint8_t usb_led) | ||
| 234 | { | ||
| 235 | kbd1.SetReport(0, 0, 2, 0, 1, &usb_led); | ||
| 236 | kbd2.SetReport(0, 0, 2, 0, 1, &usb_led); | ||
| 237 | kbd3.SetReport(0, 0, 2, 0, 1, &usb_led); | ||
| 238 | kbd4.SetReport(0, 0, 2, 0, 1, &usb_led); | ||
| 239 | led_set_kb(usb_led); | ||
| 240 | } | ||
| 241 | |||
| 242 | }; | ||
diff --git a/keyboards/sirius/unigo66/info.json b/keyboards/sirius/unigo66/info.json new file mode 100644 index 000000000..142e8f1fa --- /dev/null +++ b/keyboards/sirius/unigo66/info.json | |||
| @@ -0,0 +1,485 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "UniGo66", | ||
| 3 | "url": "https://discord.gg/GJ8bdM", | ||
| 4 | "maintainer": "qmk", | ||
| 5 | "width": 22.5, | ||
| 6 | "height": 6.5, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT_all": { | ||
| 9 | "layout": [ | ||
| 10 | {"label":"F13", "x":2, "y":0}, | ||
| 11 | {"label":"F14", "x":3, "y":0}, | ||
| 12 | {"label":"F15", "x":4, "y":0}, | ||
| 13 | {"label":"F16", "x":5, "y":0}, | ||
| 14 | {"label":"F17", "x":6.5, "y":0}, | ||
| 15 | {"label":"F18", "x":7.5, "y":0}, | ||
| 16 | {"label":"F19", "x":8.5, "y":0}, | ||
| 17 | {"label":"F20", "x":9.5, "y":0}, | ||
| 18 | {"label":"F21", "x":11, "y":0}, | ||
| 19 | {"label":"F22", "x":12, "y":0}, | ||
| 20 | {"label":"F23", "x":13, "y":0}, | ||
| 21 | {"label":"F24", "x":14, "y":0}, | ||
| 22 | {"label":"Esc", "x":0, "y":1}, | ||
| 23 | {"label":"F1", "x":2, "y":1}, | ||
| 24 | {"label":"F2", "x":3, "y":1}, | ||
| 25 | {"label":"F3", "x":4, "y":1}, | ||
| 26 | {"label":"F4", "x":5, "y":1}, | ||
| 27 | {"label":"F5", "x":6.5, "y":1}, | ||
| 28 | {"label":"F6", "x":7.5, "y":1}, | ||
| 29 | {"label":"F7", "x":8.5, "y":1}, | ||
| 30 | {"label":"F8", "x":9.5, "y":1}, | ||
| 31 | {"label":"F9", "x":11, "y":1}, | ||
| 32 | {"label":"F10", "x":12, "y":1}, | ||
| 33 | {"label":"F11", "x":13, "y":1}, | ||
| 34 | {"label":"F12", "x":14, "y":1}, | ||
| 35 | {"label":"Print Screen", "x":15.25, "y":1}, | ||
| 36 | {"label":"Scroll Lock", "x":16.25, "y":1}, | ||
| 37 | {"label":"Pause", "x":17.25, "y":1}, | ||
| 38 | {"label":"Volume Down", "x":18.5, "y":1}, | ||
| 39 | {"label":"Vol Up", "x":19.5, "y":1}, | ||
| 40 | {"label":"Mute", "x":20.5, "y":1}, | ||
| 41 | {"label":"Power", "x":21.5, "y":1}, | ||
| 42 | {"label":"Help", "x":22.75, "y":1}, | ||
| 43 | {"label":"`", "x":0, "y":2.5}, | ||
| 44 | {"label":"1", "x":1, "y":2.5}, | ||
| 45 | {"label":"2", "x":2, "y":2.5}, | ||
| 46 | {"label":"3", "x":3, "y":2.5}, | ||
| 47 | {"label":"4", "x":4, "y":2.5}, | ||
| 48 | {"label":"5", "x":5, "y":2.5}, | ||
| 49 | {"label":"6", "x":6, "y":2.5}, | ||
| 50 | {"label":"7", "x":7, "y":2.5}, | ||
| 51 | {"label":"8", "x":8, "y":2.5}, | ||
| 52 | {"label":"9", "x":9, "y":2.5}, | ||
| 53 | {"label":"0", "x":10, "y":2.5}, | ||
| 54 | {"label":"-", "x":11, "y":2.5}, | ||
| 55 | {"label":"=", "x":12, "y":2.5}, | ||
| 56 | {"label":"Yen", "x":13, "y":2.5}, | ||
| 57 | {"label":"Back Space", "x":14, "y":2.5}, | ||
| 58 | {"label":"Insert", "x":15.25, "y":2.5}, | ||
| 59 | {"label":"Home", "x":16.25, "y":2.5}, | ||
| 60 | {"label":"Page Up", "x":17.25, "y":2.5}, | ||
| 61 | {"label":"Num Lock", "x":18.5, "y":2.5}, | ||
| 62 | {"label":"Num /", "x":19.5, "y":2.5}, | ||
| 63 | {"label":"Num *", "x":20.5, "y":2.5}, | ||
| 64 | {"label":"Num -", "x":21.5, "y":2.5}, | ||
| 65 | {"label":"Stop", "x":22.75, "y":2.5}, | ||
| 66 | {"label":"Again", "x":23.75, "y":2.5}, | ||
| 67 | {"label":"Tab", "x":0, "y":3.5, "w":1.5}, | ||
| 68 | {"label":"Q", "x":1.5, "y":3.5}, | ||
| 69 | {"label":"W", "x":2.5, "y":3.5}, | ||
| 70 | {"label":"E", "x":3.5, "y":3.5}, | ||
| 71 | {"label":"R", "x":4.5, "y":3.5}, | ||
| 72 | {"label":"T", "x":5.5, "y":3.5}, | ||
| 73 | {"label":"Y", "x":6.5, "y":3.5}, | ||
| 74 | {"label":"U", "x":7.5, "y":3.5}, | ||
| 75 | {"label":"I", "x":8.5, "y":3.5}, | ||
| 76 | {"label":"O", "x":9.5, "y":3.5}, | ||
| 77 | {"label":"P", "x":10.5, "y":3.5}, | ||
| 78 | {"label":"[", "x":11.5, "y":3.5}, | ||
| 79 | {"label":"]", "x":12.5, "y":3.5}, | ||
| 80 | {"label":"\\", "x":13.5, "y":3.5, "w":1.5}, | ||
| 81 | {"label":"Delete", "x":15.25, "y":3.5}, | ||
| 82 | {"label":"End", "x":16.25, "y":3.5}, | ||
| 83 | {"label":"Page Down", "x":17.25, "y":3.5}, | ||
| 84 | {"label":"Num 7", "x":18.5, "y":3.5}, | ||
| 85 | {"label":"Num 8", "x":19.5, "y":3.5}, | ||
| 86 | {"label":"Num 9", "x":20.5, "y":3.5}, | ||
| 87 | {"label":"Num +", "x":21.5, "y":3.5}, | ||
| 88 | {"label":"Menu", "x":22.75, "y":3.5}, | ||
| 89 | {"label":"Undo", "x":23.75, "y":3.5}, | ||
| 90 | {"label":"Caps Lock", "x":0, "y":4.5, "w":1.75}, | ||
| 91 | {"label":"A", "x":1.75, "y":4.5}, | ||
| 92 | {"label":"S", "x":2.75, "y":4.5}, | ||
| 93 | {"label":"D", "x":3.75, "y":4.5}, | ||
| 94 | {"label":"F", "x":4.75, "y":4.5}, | ||
| 95 | {"label":"G", "x":5.75, "y":4.5}, | ||
| 96 | {"label":"H", "x":6.75, "y":4.5}, | ||
| 97 | {"label":"J", "x":7.75, "y":4.5}, | ||
| 98 | {"label":"K", "x":8.75, "y":4.5}, | ||
| 99 | {"label":"L", "x":9.75, "y":4.5}, | ||
| 100 | {"label":";", "x":10.75, "y":4.5}, | ||
| 101 | {"label":"\"", "x":11.75, "y":4.5}, | ||
| 102 | {"label":"ISO #", "x":12.75, "y":4.5}, | ||
| 103 | {"label":"Enter", "x":13.75, "y":4.5, "w":1.25}, | ||
| 104 | {"label":"Num 4", "x":18.5, "y":4.5}, | ||
| 105 | {"label":"Num 5", "x":19.5, "y":4.5}, | ||
| 106 | {"label":"Num 6", "x":20.5, "y":4.5}, | ||
| 107 | {"label":"Num , ", "x":21.5, "y":4.5}, | ||
| 108 | {"label":"Select", "x":22.75, "y":4.5}, | ||
| 109 | {"label":"Copy", "x":23.75, "y":4.5}, | ||
| 110 | {"label":"Shift", "x":0, "y":5.5, "w":1.25}, | ||
| 111 | {"label":"ISO \\", "x":1.25, "y":5.5}, | ||
| 112 | {"label":"Z", "x":2.25, "y":5.5}, | ||
| 113 | {"label":"X", "x":3.25, "y":5.5}, | ||
| 114 | {"label":"C", "x":4.25, "y":5.5}, | ||
| 115 | {"label":"V", "x":5.25, "y":5.5}, | ||
| 116 | {"label":"B", "x":6.25, "y":5.5}, | ||
| 117 | {"label":"N", "x":7.25, "y":5.5}, | ||
| 118 | {"label":"M", "x":8.25, "y":5.5}, | ||
| 119 | {"label":",", "x":9.25, "y":5.5}, | ||
| 120 | {"label":".", "x":10.25, "y":5.5}, | ||
| 121 | {"label":"/", "x":11.25, "y":5.5}, | ||
| 122 | {"label":"JIS \\", "x":12.25, "y":5.5}, | ||
| 123 | {"label":"Shift", "x":13.25, "y":5.5, "w":1.75}, | ||
| 124 | {"label":"Up", "x":16.25, "y":5.5}, | ||
| 125 | {"label":"Num 1", "x":18.5, "y":5.5}, | ||
| 126 | {"label":"Num 2", "x":19.5, "y":5.5}, | ||
| 127 | {"label":"Num 3", "x":20.5, "y":5.5}, | ||
| 128 | {"label":"Num =", "x":21.5, "y":5.5}, | ||
| 129 | {"label":"Exec", "x":22.75, "y":5.5}, | ||
| 130 | {"label":"Paste", "x":23.75, "y":5.5}, | ||
| 131 | {"label":"Ctrl", "x":0, "y":6.5}, | ||
| 132 | {"label":"GUI", "x":1, "y":6.5}, | ||
| 133 | {"label":"Alt", "x":2, "y":6.5}, | ||
| 134 | {"label":"JIS Muhenkan", "x":3, "y":6.5}, | ||
| 135 | {"label":"Hanja", "x":4, "y":6.5}, | ||
| 136 | {"label":"Space", "x":5, "y":6.5, "w":3}, | ||
| 137 | {"label":"Hangul/English", "x":8, "y":6.5}, | ||
| 138 | {"label":"JIS Henkan", "x":9, "y":6.5}, | ||
| 139 | {"label":"JIS Katakana/Hiragana", "x":10, "y":6.5}, | ||
| 140 | {"label":"Alt", "x":11, "y":6.5}, | ||
| 141 | {"label":"GUI", "x":12, "y":6.5}, | ||
| 142 | {"label":"App", "x":13, "y":6.5}, | ||
| 143 | {"label":"Ctrl", "x":14, "y":6.5}, | ||
| 144 | {"label":"Left", "x":15.25, "y":6.5}, | ||
| 145 | {"label":"Down", "x":16.25, "y":6.5}, | ||
| 146 | {"label":"Right", "x":17.25, "y":6.5}, | ||
| 147 | {"label":"Num 0", "x":18.5, "y":6.5, "w":2}, | ||
| 148 | {"label":"Num .", "x":20.5, "y":6.5}, | ||
| 149 | {"label":"Num Enter", "x":21.5, "y":6.5}, | ||
| 150 | {"label":"Find", "x":22.75, "y":6.5}, | ||
| 151 | {"label":"Cut", "x":23.75, "y":6.5} | ||
| 152 | ] | ||
| 153 | }, | ||
| 154 | "LAYOUT_ansi": { | ||
| 155 | "layout": [ | ||
| 156 | {"label":"Esc", "x":0, "y":0}, | ||
| 157 | {"label":"F1", "x":2, "y":0}, | ||
| 158 | {"label":"F2", "x":3, "y":0}, | ||
| 159 | {"label":"F3", "x":4, "y":0}, | ||
| 160 | {"label":"F4", "x":5, "y":0}, | ||
| 161 | {"label":"F5", "x":6.5, "y":0}, | ||
| 162 | {"label":"F6", "x":7.5, "y":0}, | ||
| 163 | {"label":"F7", "x":8.5, "y":0}, | ||
| 164 | {"label":"F8", "x":9.5, "y":0}, | ||
| 165 | {"label":"F9", "x":11, "y":0}, | ||
| 166 | {"label":"F10", "x":12, "y":0}, | ||
| 167 | {"label":"F11", "x":13, "y":0}, | ||
| 168 | {"label":"F12", "x":14, "y":0}, | ||
| 169 | {"label":"PrtSc", "x":15.25, "y":0}, | ||
| 170 | {"label":"Scroll Lock", "x":16.25, "y":0}, | ||
| 171 | {"label":"Pause", "x":17.25, "y":0}, | ||
| 172 | {"label":"`", "x":0, "y":1.5}, | ||
| 173 | {"label":"1", "x":1, "y":1.5}, | ||
| 174 | {"label":"2", "x":2, "y":1.5}, | ||
| 175 | {"label":"3", "x":3, "y":1.5}, | ||
| 176 | {"label":"4", "x":4, "y":1.5}, | ||
| 177 | {"label":"5", "x":5, "y":1.5}, | ||
| 178 | {"label":"6", "x":6, "y":1.5}, | ||
| 179 | {"label":"7", "x":7, "y":1.5}, | ||
| 180 | {"label":"8", "x":8, "y":1.5}, | ||
| 181 | {"label":"9", "x":9, "y":1.5}, | ||
| 182 | {"label":"0", "x":10, "y":1.5}, | ||
| 183 | {"label":"-", "x":11, "y":1.5}, | ||
| 184 | {"label":"=", "x":12, "y":1.5}, | ||
| 185 | {"label":"Backspace", "x":13, "y":1.5, "w":2}, | ||
| 186 | {"label":"Insert", "x":15.25, "y":1.5}, | ||
| 187 | {"label":"Home", "x":16.25, "y":1.5}, | ||
| 188 | {"label":"Page Up", "x":17.25, "y":1.5}, | ||
| 189 | {"label":"Num Lock", "x":18.5, "y":1.5}, | ||
| 190 | {"label":"Num /", "x":19.5, "y":1.5}, | ||
| 191 | {"label":"Num *", "x":20.5, "y":1.5}, | ||
| 192 | {"label":"Num -", "x":21.5, "y":1.5}, | ||
| 193 | {"label":"Tab", "x":0, "y":2.5, "w":1.5}, | ||
| 194 | {"label":"Q", "x":1.5, "y":2.5}, | ||
| 195 | {"label":"W", "x":2.5, "y":2.5}, | ||
| 196 | {"label":"E", "x":3.5, "y":2.5}, | ||
| 197 | {"label":"R", "x":4.5, "y":2.5}, | ||
| 198 | {"label":"T", "x":5.5, "y":2.5}, | ||
| 199 | {"label":"Y", "x":6.5, "y":2.5}, | ||
| 200 | {"label":"U", "x":7.5, "y":2.5}, | ||
| 201 | {"label":"I", "x":8.5, "y":2.5}, | ||
| 202 | {"label":"O", "x":9.5, "y":2.5}, | ||
| 203 | {"label":"P", "x":10.5, "y":2.5}, | ||
| 204 | {"label":"[", "x":11.5, "y":2.5}, | ||
| 205 | {"label":"]", "x":12.5, "y":2.5}, | ||
| 206 | {"label":"\\", "x":13.5, "y":2.5, "w":1.5}, | ||
| 207 | {"label":"Delete", "x":15.25, "y":2.5}, | ||
| 208 | {"label":"End", "x":16.25, "y":2.5}, | ||
| 209 | {"label":"Page Down", "x":17.25, "y":2.5}, | ||
| 210 | {"label":"Num 7", "x":18.5, "y":2.5}, | ||
| 211 | {"label":"Num 8", "x":19.5, "y":2.5}, | ||
| 212 | {"label":"Num 9", "x":20.5, "y":2.5}, | ||
| 213 | {"label":"Caps Lock", "x":0, "y":3.5, "w":1.75}, | ||
| 214 | {"label":"A", "x":1.75, "y":3.5}, | ||
| 215 | {"label":"S", "x":2.75, "y":3.5}, | ||
| 216 | {"label":"D", "x":3.75, "y":3.5}, | ||
| 217 | {"label":"F", "x":4.75, "y":3.5}, | ||
| 218 | {"label":"G", "x":5.75, "y":3.5}, | ||
| 219 | {"label":"H", "x":6.75, "y":3.5}, | ||
| 220 | {"label":"J", "x":7.75, "y":3.5}, | ||
| 221 | {"label":"K", "x":8.75, "y":3.5}, | ||
| 222 | {"label":"L", "x":9.75, "y":3.5}, | ||
| 223 | {"label":":", "x":10.75, "y":3.5}, | ||
| 224 | {"label":"\"", "x":11.75, "y":3.5}, | ||
| 225 | {"label":"Enter", "x":12.75, "y":3.5, "w":2.25}, | ||
| 226 | {"label":"Num 4", "x":18.5, "y":3.5}, | ||
| 227 | {"label":"Num 5", "x":19.5, "y":3.5}, | ||
| 228 | {"label":"Num 6", "x":20.5, "y":3.5}, | ||
| 229 | {"label":"Num +", "x":21.5, "y":2.5, "h":2}, | ||
| 230 | {"label":"Shift", "x":0, "y":4.5, "w":2.25}, | ||
| 231 | {"label":"Z", "x":2.25, "y":4.5}, | ||
| 232 | {"label":"X", "x":3.25, "y":4.5}, | ||
| 233 | {"label":"C", "x":4.25, "y":4.5}, | ||
| 234 | {"label":"V", "x":5.25, "y":4.5}, | ||
| 235 | {"label":"B", "x":6.25, "y":4.5}, | ||
| 236 | {"label":"N", "x":7.25, "y":4.5}, | ||
| 237 | {"label":"M", "x":8.25, "y":4.5}, | ||
| 238 | {"label":",", "x":9.25, "y":4.5}, | ||
| 239 | {"label":".", "x":10.25, "y":4.5}, | ||
| 240 | {"label":"/", "x":11.25, "y":4.5}, | ||
| 241 | {"label":"Shift", "x":12.25, "y":4.5, "w":2.75}, | ||
| 242 | {"label":"Up", "x":16.25, "y":4.5}, | ||
| 243 | {"label":"Num 1", "x":18.5, "y":4.5}, | ||
| 244 | {"label":"Num 2", "x":19.5, "y":4.5}, | ||
| 245 | {"label":"Num 3", "x":20.5, "y":4.5}, | ||
| 246 | {"label":"Ctrl", "x":0, "y":5.5, "w":1.25}, | ||
| 247 | {"label":"GUI", "x":1.25, "y":5.5, "w":1.25}, | ||
| 248 | {"label":"Alt", "x":2.5, "y":5.5, "w":1.25}, | ||
| 249 | {"label":"Space", "x":3.75, "y":5.5, "w":6.25}, | ||
| 250 | {"label":"Alt", "x":10, "y":5.5, "w":1.25}, | ||
| 251 | {"label":"GUI", "x":11.25, "y":5.5, "w":1.25}, | ||
| 252 | {"label":"Menu", "x":12.5, "y":5.5, "w":1.25}, | ||
| 253 | {"label":"Ctrl", "x":13.75, "y":5.5, "w":1.25}, | ||
| 254 | {"label":"Left", "x":15.25, "y":5.5}, | ||
| 255 | {"label":"Down", "x":16.25, "y":5.5}, | ||
| 256 | {"label":"Right", "x":17.25, "y":5.5}, | ||
| 257 | {"label":"Num 0", "x":18.5, "y":5.5, "w":2}, | ||
| 258 | {"label":"Num .", "x":20.5, "y":5.5}, | ||
| 259 | {"label":"Num Enter", "x":21.5, "y":4.5, "h":2} | ||
| 260 | ] | ||
| 261 | }, | ||
| 262 | "LAYOUT_iso": { | ||
| 263 | "layout": [ | ||
| 264 | {"label":"Esc", "x":0, "y":0}, | ||
| 265 | {"label":"F1", "x":2, "y":0}, | ||
| 266 | {"label":"F2", "x":3, "y":0}, | ||
| 267 | {"label":"F3", "x":4, "y":0}, | ||
| 268 | {"label":"F4", "x":5, "y":0}, | ||
| 269 | {"label":"F5", "x":6.5, "y":0}, | ||
| 270 | {"label":"F6", "x":7.5, "y":0}, | ||
| 271 | {"label":"F7", "x":8.5, "y":0}, | ||
| 272 | {"label":"F8", "x":9.5, "y":0}, | ||
| 273 | {"label":"F9", "x":11, "y":0}, | ||
| 274 | {"label":"F10", "x":12, "y":0}, | ||
| 275 | {"label":"F11", "x":13, "y":0}, | ||
| 276 | {"label":"F12", "x":14, "y":0}, | ||
| 277 | {"label":"Print Screen", "x":15.25, "y":0}, | ||
| 278 | {"label":"Scroll Lock", "x":16.25, "y":0}, | ||
| 279 | {"label":"Pause", "x":17.25, "y":0}, | ||
| 280 | {"label":"`", "x":0, "y":1.5}, | ||
| 281 | {"label":"1", "x":1, "y":1.5}, | ||
| 282 | {"label":"2", "x":2, "y":1.5}, | ||
| 283 | {"label":"3", "x":3, "y":1.5}, | ||
| 284 | {"label":"4", "x":4, "y":1.5}, | ||
| 285 | {"label":"5", "x":5, "y":1.5}, | ||
| 286 | {"label":"6", "x":6, "y":1.5}, | ||
| 287 | {"label":"7", "x":7, "y":1.5}, | ||
| 288 | {"label":"8", "x":8, "y":1.5}, | ||
| 289 | {"label":"9", "x":9, "y":1.5}, | ||
| 290 | {"label":"0", "x":10, "y":1.5}, | ||
| 291 | {"label":"-", "x":11, "y":1.5}, | ||
| 292 | {"label":"=", "x":12, "y":1.5}, | ||
| 293 | {"label":"Backspace", "x":13, "y":1.5, "w":2}, | ||
| 294 | {"label":"Insert", "x":15.25, "y":1.5}, | ||
| 295 | {"label":"Home", "x":16.25, "y":1.5}, | ||
| 296 | {"label":"Page Up", "x":17.25, "y":1.5}, | ||
| 297 | {"label":"Num Lock", "x":18.5, "y":1.5}, | ||
| 298 | {"label":"Num /", "x":19.5, "y":1.5}, | ||
| 299 | {"label":"Num *", "x":20.5, "y":1.5}, | ||
| 300 | {"label":"Num -", "x":21.5, "y":1.5}, | ||
| 301 | {"label":"Tab", "x":0, "y":2.5, "w":1.5}, | ||
| 302 | {"label":"Q", "x":1.5, "y":2.5}, | ||
| 303 | {"label":"W", "x":2.5, "y":2.5}, | ||
| 304 | {"label":"E", "x":3.5, "y":2.5}, | ||
| 305 | {"label":"R", "x":4.5, "y":2.5}, | ||
| 306 | {"label":"T", "x":5.5, "y":2.5}, | ||
| 307 | {"label":"Y", "x":6.5, "y":2.5}, | ||
| 308 | {"label":"U", "x":7.5, "y":2.5}, | ||
| 309 | {"label":"I", "x":8.5, "y":2.5}, | ||
| 310 | {"label":"O", "x":9.5, "y":2.5}, | ||
| 311 | {"label":"P", "x":10.5, "y":2.5}, | ||
| 312 | {"label":"[", "x":11.5, "y":2.5}, | ||
| 313 | {"label":"]", "x":12.5, "y":2.5}, | ||
| 314 | {"label":"Enter", "x":13.75, "y":2.5, "w":1.25, "h":2}, | ||
| 315 | {"label":"Delete", "x":15.25, "y":2.5}, | ||
| 316 | {"label":"End", "x":16.25, "y":2.5}, | ||
| 317 | {"label":"Page Down", "x":17.25, "y":2.5}, | ||
| 318 | {"label":"Num 7", "x":18.5, "y":2.5}, | ||
| 319 | {"label":"Num 8", "x":19.5, "y":2.5}, | ||
| 320 | {"label":"Num 9", "x":20.5, "y":2.5}, | ||
| 321 | {"label":"Num +", "x":21.5, "y":2.5, "h":2}, | ||
| 322 | {"label":"Caps Lock", "x":0, "y":3.5, "w":1.75}, | ||
| 323 | {"label":"A", "x":1.75, "y":3.5}, | ||
| 324 | {"label":"S", "x":2.75, "y":3.5}, | ||
| 325 | {"label":"D", "x":3.75, "y":3.5}, | ||
| 326 | {"label":"F", "x":4.75, "y":3.5}, | ||
| 327 | {"label":"G", "x":5.75, "y":3.5}, | ||
| 328 | {"label":"H", "x":6.75, "y":3.5}, | ||
| 329 | {"label":"J", "x":7.75, "y":3.5}, | ||
| 330 | {"label":"K", "x":8.75, "y":3.5}, | ||
| 331 | {"label":"L", "x":9.75, "y":3.5}, | ||
| 332 | {"label":";", "x":10.75, "y":3.5}, | ||
| 333 | {"label":"'", "x":11.75, "y":3.5}, | ||
| 334 | {"label":"ISO #", "x":12.75, "y":3.5}, | ||
| 335 | {"label":"Num 4", "x":18.5, "y":3.5}, | ||
| 336 | {"label":"Num 5", "x":19.5, "y":3.5}, | ||
| 337 | {"label":"Num 6", "x":20.5, "y":3.5}, | ||
| 338 | {"label":"Shift", "x":0, "y":4.5, "w":1.25}, | ||
| 339 | {"label":"ISO \\", "x":1.25, "y":4.5}, | ||
| 340 | {"label":"Z", "x":2.25, "y":4.5}, | ||
| 341 | {"label":"X", "x":3.25, "y":4.5}, | ||
| 342 | {"label":"C", "x":4.25, "y":4.5}, | ||
| 343 | {"label":"V", "x":5.25, "y":4.5}, | ||
| 344 | {"label":"B", "x":6.25, "y":4.5}, | ||
| 345 | {"label":"N", "x":7.25, "y":4.5}, | ||
| 346 | {"label":"M", "x":8.25, "y":4.5}, | ||
| 347 | {"label":",", "x":9.25, "y":4.5}, | ||
| 348 | {"label":".", "x":10.25, "y":4.5}, | ||
| 349 | {"label":"/", "x":11.25, "y":4.5}, | ||
| 350 | {"label":"Shift", "x":12.25, "y":4.5, "w":2.75}, | ||
| 351 | {"label":"Up", "x":16.25, "y":4.5}, | ||
| 352 | {"label":"Num 1", "x":18.5, "y":4.5}, | ||
| 353 | {"label":"Num 2", "x":19.5, "y":4.5}, | ||
| 354 | {"label":"Num 3", "x":20.5, "y":4.5}, | ||
| 355 | {"label":"Num Enter", "x":21.5, "y":4.5, "h":2}, | ||
| 356 | {"label":"Ctrl", "x":0, "y":5.5, "w":1.25}, | ||
| 357 | {"label":"GUI", "x":1.25, "y":5.5, "w":1.25}, | ||
| 358 | {"label":"Alt", "x":2.5, "y":5.5, "w":1.25}, | ||
| 359 | {"label":"Space", "x":3.75, "y":5.5, "w":6.25}, | ||
| 360 | {"label":"AltGr", "x":10, "y":5.5, "w":1.25}, | ||
| 361 | {"label":"GUI", "x":11.25, "y":5.5, "w":1.25}, | ||
| 362 | {"label":"Menu", "x":12.5, "y":5.5, "w":1.25}, | ||
| 363 | {"label":"Ctrl", "x":13.75, "y":5.5, "w":1.25}, | ||
| 364 | {"label":"Left", "x":15.25, "y":5.5}, | ||
| 365 | {"label":"Down", "x":16.25, "y":5.5}, | ||
| 366 | {"label":"Right", "x":17.25, "y":5.5}, | ||
| 367 | {"label":"Num 0", "x":18.5, "y":5.5, "w":2}, | ||
| 368 | {"label":"Num .", "x":20.5, "y":5.5} | ||
| 369 | ] | ||
| 370 | }, | ||
| 371 | "LAYOUT_jis": { | ||
| 372 | "layout": [ | ||
| 373 | {"label":"Esc", "x":0, "y":0}, | ||
| 374 | {"label":"F1", "x":2, "y":0}, | ||
| 375 | {"label":"F2", "x":3, "y":0}, | ||
| 376 | {"label":"F3", "x":4, "y":0}, | ||
| 377 | {"label":"F4", "x":5, "y":0}, | ||
| 378 | {"label":"F5", "x":6.5, "y":0}, | ||
| 379 | {"label":"F6", "x":7.5, "y":0}, | ||
| 380 | {"label":"F7", "x":8.5, "y":0}, | ||
| 381 | {"label":"F8", "x":9.5, "y":0}, | ||
| 382 | {"label":"F9", "x":11, "y":0}, | ||
| 383 | {"label":"F10", "x":12, "y":0}, | ||
| 384 | {"label":"F11", "x":13, "y":0}, | ||
| 385 | {"label":"F12", "x":14, "y":0}, | ||
| 386 | {"label":"Print Screen", "x":15.25, "y":0}, | ||
| 387 | {"label":"Scroll Lock", "x":16.25, "y":0}, | ||
| 388 | {"label":"Pause", "x":17.25, "y":0}, | ||
| 389 | {"label":"JIS Hankaku / Zenkaku", "x":0, "y":1.5}, | ||
| 390 | {"label":"1", "x":1, "y":1.5}, | ||
| 391 | {"label":"2", "x":2, "y":1.5}, | ||
| 392 | {"label":"3", "x":3, "y":1.5}, | ||
| 393 | {"label":"4", "x":4, "y":1.5}, | ||
| 394 | {"label":"5", "x":5, "y":1.5}, | ||
| 395 | {"label":"6", "x":6, "y":1.5}, | ||
| 396 | {"label":"7", "x":7, "y":1.5}, | ||
| 397 | {"label":"8", "x":8, "y":1.5}, | ||
| 398 | {"label":"9", "x":9, "y":1.5}, | ||
| 399 | {"label":"0", "x":10, "y":1.5}, | ||
| 400 | {"label":"-", "x":11, "y":1.5}, | ||
| 401 | {"label":"ˆ", "x":12, "y":1.5}, | ||
| 402 | {"label":"JIS Yen", "x":13, "y":1.5}, | ||
| 403 | {"label":"Back Space", "x":14, "y":1.5}, | ||
| 404 | {"label":"Insert", "x":15.25, "y":1.5}, | ||
| 405 | {"label":"Home", "x":16.25, "y":1.5}, | ||
| 406 | {"label":"Page Up", "x":17.25, "y":1.5}, | ||
| 407 | {"label":"Num Lock", "x":18.5, "y":1.5}, | ||
| 408 | {"label":"Num /", "x":19.5, "y":1.5}, | ||
| 409 | {"label":"Num *", "x":20.5, "y":1.5}, | ||
| 410 | {"label":"Num -", "x":21.5, "y":1.5}, | ||
| 411 | {"label":"Tab", "x":0, "y":2.5, "w":1.5}, | ||
| 412 | {"label":"Q", "x":1.5, "y":2.5}, | ||
| 413 | {"label":"W", "x":2.5, "y":2.5}, | ||
| 414 | {"label":"E", "x":3.5, "y":2.5}, | ||
| 415 | {"label":"R", "x":4.5, "y":2.5}, | ||
| 416 | {"label":"T", "x":5.5, "y":2.5}, | ||
| 417 | {"label":"Y", "x":6.5, "y":2.5}, | ||
| 418 | {"label":"U", "x":7.5, "y":2.5}, | ||
| 419 | {"label":"I", "x":8.5, "y":2.5}, | ||
| 420 | {"label":"O", "x":9.5, "y":2.5}, | ||
| 421 | {"label":"P", "x":10.5, "y":2.5}, | ||
| 422 | {"label":"@", "x":11.5, "y":2.5}, | ||
| 423 | {"label":"[", "x":12.5, "y":2.5}, | ||
| 424 | {"label":"Enter", "x":13.75, "y":2.5, "w":1.25, "h":2}, | ||
| 425 | {"label":"Delete", "x":15.25, "y":2.5}, | ||
| 426 | {"label":"End", "x":16.25, "y":2.5}, | ||
| 427 | {"label":"Page Down", "x":17.25, "y":2.5}, | ||
| 428 | {"label":"Num 7", "x":18.5, "y":2.5}, | ||
| 429 | {"label":"Num 8", "x":19.5, "y":2.5}, | ||
| 430 | {"label":"Num 9", "x":20.5, "y":2.5}, | ||
| 431 | {"label":"Num +", "x":21.5, "y":2.5, "h":2}, | ||
| 432 | {"label":"Caps Lock", "x":0, "y":3.5, "w":1.75}, | ||
| 433 | {"label":"A", "x":1.75, "y":3.5}, | ||
| 434 | {"label":"S", "x":2.75, "y":3.5}, | ||
| 435 | {"label":"D", "x":3.75, "y":3.5}, | ||
| 436 | {"label":"F", "x":4.75, "y":3.5}, | ||
| 437 | {"label":"G", "x":5.75, "y":3.5}, | ||
| 438 | {"label":"H", "x":6.75, "y":3.5}, | ||
| 439 | {"label":"J", "x":7.75, "y":3.5}, | ||
| 440 | {"label":"K", "x":8.75, "y":3.5}, | ||
| 441 | {"label":"L", "x":9.75, "y":3.5}, | ||
| 442 | {"label":";", "x":10.75, "y":3.5}, | ||
| 443 | {"label":":", "x":11.75, "y":3.5}, | ||
| 444 | {"label":"]", "x":12.75, "y":3.5}, | ||
| 445 | {"label":"Num 4", "x":18.5, "y":3.5}, | ||
| 446 | {"label":"Num 5", "x":19.5, "y":3.5}, | ||
| 447 | {"label":"Num 6", "x":20.5, "y":3.5}, | ||
| 448 | {"label":"Shift", "x":0, "y":4.5, "w":2.25}, | ||
| 449 | {"label":"Z", "x":2.25, "y":4.5}, | ||
| 450 | {"label":"X", "x":3.25, "y":4.5}, | ||
| 451 | {"label":"C", "x":4.25, "y":4.5}, | ||
| 452 | {"label":"V", "x":5.25, "y":4.5}, | ||
| 453 | {"label":"B", "x":6.25, "y":4.5}, | ||
| 454 | {"label":"N", "x":7.25, "y":4.5}, | ||
| 455 | {"label":"M", "x":8.25, "y":4.5}, | ||
| 456 | {"label":",", "x":9.25, "y":4.5}, | ||
| 457 | {"label":".", "x":10.25, "y":4.5}, | ||
| 458 | {"label":"/", "x":11.25, "y":4.5}, | ||
| 459 | {"label":"JIS \\", "x":12.25, "y":4.5}, | ||
| 460 | {"label":"Shift", "x":13.25, "y":4.5, "w":1.75}, | ||
| 461 | {"label":"Up", "x":16.25, "y":4.5}, | ||
| 462 | {"label":"Num 1", "x":18.5, "y":4.5}, | ||
| 463 | {"label":"Num 2", "x":19.5, "y":4.5}, | ||
| 464 | {"label":"Num 3", "x":20.5, "y":4.5}, | ||
| 465 | {"label":"Num Enter", "x":21.5, "y":4.5, "h":2}, | ||
| 466 | {"label":"Ctrl", "x":0, "y":5.5, "w":1.25}, | ||
| 467 | {"label":"GUI", "x":1.25, "y":5.5, "w":1.25}, | ||
| 468 | {"label":"Alt", "x":2.5, "y":5.5, "w":1.25}, | ||
| 469 | {"label":"JIS Muhenkan", "x":3.75, "y":5.5, "w":1.25}, | ||
| 470 | {"label":"Space", "x":5, "y":5.5, "w":2.5}, | ||
| 471 | {"label":"JIS Henkan", "x":7.5, "y":5.5, "w":1.25}, | ||
| 472 | {"label":"JIS Hiragana / Katakana", "x":8.75, "y":5.5, "w":1.25}, | ||
| 473 | {"label":"Alt", "x":10, "y":5.5, "w":1.25}, | ||
| 474 | {"label":"GUI", "x":11.25, "y":5.5, "w":1.25}, | ||
| 475 | {"label":"Menu", "x":12.5, "y":5.5, "w":1.25}, | ||
| 476 | {"label":"Ctrl", "x":13.75, "y":5.5, "w":1.25}, | ||
| 477 | {"label":"Left", "x":15.25, "y":5.5}, | ||
| 478 | {"label":"Down", "x":16.25, "y":5.5}, | ||
| 479 | {"label":"Right", "x":17.25, "y":5.5}, | ||
| 480 | {"label":"Num 0", "x":18.5, "y":5.5, "w":2}, | ||
| 481 | {"label":"Num .", "x":20.5, "y":5.5} | ||
| 482 | ] | ||
| 483 | } | ||
| 484 | } | ||
| 485 | } | ||
diff --git a/keyboards/sirius/unigo66/keymaps/danielhklein/config.h b/keyboards/sirius/unigo66/keymaps/danielhklein/config.h new file mode 100644 index 000000000..271f48d00 --- /dev/null +++ b/keyboards/sirius/unigo66/keymaps/danielhklein/config.h | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | #pragma once | ||
| 2 | |||
| 3 | // place overrides here | ||
diff --git a/keyboards/sirius/unigo66/keymaps/danielhklein/keymap.c b/keyboards/sirius/unigo66/keymaps/danielhklein/keymap.c new file mode 100644 index 000000000..2425572bd --- /dev/null +++ b/keyboards/sirius/unigo66/keymaps/danielhklein/keymap.c | |||
| @@ -0,0 +1,177 @@ | |||
| 1 | #include QMK_KEYBOARD_H | ||
| 2 | |||
| 3 | enum layer_number { | ||
| 4 | _MAC = 0, | ||
| 5 | _WINDOWS, | ||
| 6 | _FN, | ||
| 7 | _ADJ | ||
| 8 | }; | ||
| 9 | |||
| 10 | enum custom_keycodes { | ||
| 11 | MAC = SAFE_RANGE, | ||
| 12 | WINDOWS, | ||
| 13 | FN, | ||
| 14 | ADJ | ||
| 15 | }; | ||
| 16 | |||
| 17 | const uint16_t keymaps[][MATRIX_ROWS][MATRIX_COLS] PROGMEM = { | ||
| 18 | /* Mac | ||
| 19 | * | ||
| 20 | * ,--------------------------------------------------. ,--------------------------------------------------. | ||
| 21 | * | Esc | 1 | 2 | 3 | 4 | 5 | - | | = | 6 | 7 | 8 | 9 | 0 | Bsp | | ||
| 22 | * |--------+------+------+------+------+-------------| |------+------+------+------+------+------+--------| | ||
| 23 | * | Tab | Q | W | E | R | T | [ | | ] | Y | U | I | O | P | Enter | | ||
| 24 | * |--------+------+------+------+------+------| | | |------+------+------+------+------+--------| | ||
| 25 | * | Caps | A | S | D | F | G |------| |------| H | J | K | L | ; | ' | | ||
| 26 | * |--------+------+------+------+------+------| ` | | \ |------+------+------+------+------+--------| | ||
| 27 | * | LShift | Z | X | C | V | B | | | | N | M | , | . | / | RShift | | ||
| 28 | * `--------+------+------+---------------------------' `---------------------------+------+------+--------' | ||
| 29 | * | Ctrl | Alt | Gui | | Gui | Alt | Ctrl | | ||
| 30 | * `--------------------' `--------------------' | ||
| 31 | * ,-------------. ,--------------. | ||
| 32 | * | | | | | | | ||
| 33 | * | Bspc | FN | | ADJ | Space | | ||
| 34 | * | | | | | | | ||
| 35 | * `-------------' `--------------' | ||
| 36 | */ | ||
| 37 | [_MAC] = LAYOUT( | ||
| 38 | KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_MINS, KC_EQL, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL, | ||
| 39 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_LBRC, KC_RBRC, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_ENT, | ||
| 40 | KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, | ||
| 41 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_GRV, KC_BSLS, KC_N, KC_M, KC_COMM,KC_DOT, KC_SLSH, KC_RSFT, | ||
| 42 | KC_LCTL, KC_LALT,KC_LGUI, KC_RGUI,KC_RALT, KC_RCTL, | ||
| 43 | KC_BSPC,FN, ADJ, KC_SPC, | ||
| 44 | KC_BSPC,FN, ADJ, KC_SPC | ||
| 45 | ), | ||
| 46 | /* Windows | ||
| 47 | * | ||
| 48 | * ,--------------------------------------------------. ,--------------------------------------------------. | ||
| 49 | * | Esc | 1 | 2 | 3 | 4 | 5 | - | | = | 6 | 7 | 8 | 9 | 0 | Bsp | | ||
| 50 | * |--------+------+------+------+------+-------------| |------+------+------+------+------+------+--------| | ||
| 51 | * | Tab | Q | W | E | R | T | [ | | ] | Y | U | I | O | P | Enter | | ||
| 52 | * |--------+------+------+------+------+------| | | |------+------+------+------+------+--------| | ||
| 53 | * | Caps | A | S | D | F | G |------| |------| H | J | K | L | ; | ' | | ||
| 54 | * |--------+------+------+------+------+------| ` | | \ |------+------+------+------+------+--------| | ||
| 55 | * | LShift | Z | X | C | V | B | | | | N | M | , | . | / | RShift | | ||
| 56 | * `--------+------+------+---------------------------' `---------------------------+------+------+--------' | ||
| 57 | * | Gui | Alt | Ctrl | | Ctrl | Alt | Gui | | ||
| 58 | * `--------------------' `--------------------' | ||
| 59 | * ,-------------. ,--------------. | ||
| 60 | * | | | | | | | ||
| 61 | * | Bspc | FN | | ADJ | Space | | ||
| 62 | * | | | | | | | ||
| 63 | * `-------------' `--------------' | ||
| 64 | */ | ||
| 65 | [_WINDOWS] = LAYOUT( | ||
| 66 | KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_MINS, KC_EQL, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL, | ||
| 67 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_LBRC, KC_RBRC, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_ENT, | ||
| 68 | KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, | ||
| 69 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_GRV, KC_BSLS, KC_N, KC_M, KC_COMM,KC_DOT, KC_SLSH, KC_RSFT, | ||
| 70 | KC_LGUI, KC_LALT,KC_LCTL, KC_RCTL,KC_RALT, KC_RGUI, | ||
| 71 | KC_BSPC,FN, ADJ, KC_SPC, | ||
| 72 | KC_BSPC,FN, ADJ, KC_SPC | ||
| 73 | ), | ||
| 74 | /* FN | ||
| 75 | * | ||
| 76 | * ,--------------------------------------------------. ,--------------------------------------------------. | ||
| 77 | * | RESET | | | | | | | | | | | | | | | | ||
| 78 | * |--------+------+------+------+------+-------------| |------+------+------+------+------+------+--------| | ||
| 79 | * | MAC | | | | | | | | | | PgDn | Up | PgUp | Print| Home | | ||
| 80 | * |--------+------+------+------+------+------| | | |------+------+------+------+------+--------| | ||
| 81 | * | WINDOWS| | | | | |------| |------| | Left | Down | Right|Insert| End | | ||
| 82 | * |--------+------+------+------+------+------| | | |------+------+------+------+------+--------| | ||
| 83 | * | Shift | | | | | | | | | Play | Mute | Vol- | Vol+ | Last | Next | | ||
| 84 | * `--------+------+------+---------------------------' `---------------------------+------+------+--------' | ||
| 85 | * | | |GuiCtl| |GuiCtl| | | | ||
| 86 | * `--------------------' `--------------------' | ||
| 87 | * ,-------------. ,--------------. | ||
| 88 | * | | | | | | | ||
| 89 | * | | | | | | | ||
| 90 | * | | | | | | | ||
| 91 | * `-------------' `--------------' | ||
| 92 | */ | ||
| 93 | [_FN] = LAYOUT( | ||
| 94 | RESET, XXXXXXX,XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, | ||
| 95 | MAC, XXXXXXX,XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_PGDN, KC_UP, KC_PGUP, KC_PSCR, KC_HOME, | ||
| 96 | WINDOWS, XXXXXXX,XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_LEFT, KC_DOWN, KC_RGHT, KC_INS, KC_END, | ||
| 97 | _______, XXXXXXX,XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_MPLY, KC_MUTE, KC_VOLD, KC_VOLU, KC_MRWD, KC_MFFD, | ||
| 98 | XXXXXXX, XXXXXXX,_______, _______, XXXXXXX, XXXXXXX, | ||
| 99 | XXXXXXX, _______, XXXXXXX, XXXXXXX, | ||
| 100 | XXXXXXX, _______, XXXXXXX, XXXXXXX | ||
| 101 | ), | ||
| 102 | |||
| 103 | /* ADJ | ||
| 104 | * | ||
| 105 | * ,--------------------------------------------------. ,--------------------------------------------------. | ||
| 106 | * | F1 | F2 | F3 | F4 | F5 | F6 | | |Nlock | = | / | * | - | | | | ||
| 107 | * |--------+------+------+------+------+-------------| |------+------+------+------+------+------+--------| | ||
| 108 | * | F7 | F8 | F9 | F10 | F11 | F12 | | | | 7 | 8 | 9 | + | | | | ||
| 109 | * |--------+------+------+------+------+------| | | |------+------+------+------+------+--------| | ||
| 110 | * | | | | | | |------| |------| 4 | 5 | 6 | Enter| | | | ||
| 111 | * |--------+------+------+------+------+------| | | |------+------+------+------+------+--------| | ||
| 112 | * | | | | | | | | | | 1 | 2 | 3 | Space| | | | ||
| 113 | * `--------+------+------+---------------------------' `---------------------------+------+------+--------' | ||
| 114 | * | | | | | 0 | . | | | ||
| 115 | * `--------------------' `--------------------' | ||
| 116 | * ,-------------. ,--------------. | ||
| 117 | * | | | | | | | ||
| 118 | * | | | | | | | ||
| 119 | * | | | | | | | ||
| 120 | * `-------------' `--------------' | ||
| 121 | */ | ||
| 122 | [_ADJ] = LAYOUT( | ||
| 123 | KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, XXXXXXX, KC_NLCK, KC_PEQL, KC_PSLS, KC_PAST, KC_PMNS, XXXXXXX, XXXXXXX, | ||
| 124 | KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, XXXXXXX, XXXXXXX, KC_P7, KC_P8, KC_P9, KC_PPLS, XXXXXXX, XXXXXXX, | ||
| 125 | XXXXXXX, XXXXXXX,XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_P4, KC_P5, KC_P6, KC_PENT, XXXXXXX, XXXXXXX, | ||
| 126 | XXXXXXX, XXXXXXX,XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_P1, KC_P2, KC_P3, KC_SPC, XXXXXXX, XXXXXXX, | ||
| 127 | XXXXXXX, XXXXXXX,XXXXXXX, KC_P0, KC_PDOT, XXXXXXX, | ||
| 128 | XXXXXXX, XXXXXXX, _______, XXXXXXX, | ||
| 129 | XXXXXXX, XXXXXXX, _______, XXXXXXX | ||
| 130 | ) | ||
| 131 | }; | ||
| 132 | |||
| 133 | void matrix_init_user(void) { | ||
| 134 | |||
| 135 | } | ||
| 136 | |||
| 137 | void matrix_scan_user(void) { | ||
| 138 | |||
| 139 | } | ||
| 140 | |||
| 141 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
| 142 | switch (keycode) { | ||
| 143 | case MAC: | ||
| 144 | if (record->event.pressed) { | ||
| 145 | set_single_persistent_default_layer(_MAC); | ||
| 146 | } | ||
| 147 | return false; | ||
| 148 | break; | ||
| 149 | case WINDOWS: | ||
| 150 | if(record->event.pressed) { | ||
| 151 | set_single_persistent_default_layer(_WINDOWS); | ||
| 152 | } | ||
| 153 | return false; | ||
| 154 | break; | ||
| 155 | case FN: | ||
| 156 | if (record->event.pressed) { | ||
| 157 | layer_on(_FN); | ||
| 158 | } else { | ||
| 159 | layer_off(_FN); | ||
| 160 | } | ||
| 161 | return false; | ||
| 162 | break; | ||
| 163 | case ADJ: | ||
| 164 | if (record->event.pressed) { | ||
| 165 | layer_on(_ADJ); | ||
| 166 | } else { | ||
| 167 | layer_off(_ADJ); | ||
| 168 | } | ||
| 169 | return false; | ||
| 170 | break; | ||
| 171 | } | ||
| 172 | return true; | ||
| 173 | } | ||
| 174 | |||
| 175 | void led_set_user(uint8_t usb_led) { | ||
| 176 | |||
| 177 | } | ||
diff --git a/keyboards/sirius/unigo66/keymaps/default/config.h b/keyboards/sirius/unigo66/keymaps/default/config.h new file mode 100644 index 000000000..271f48d00 --- /dev/null +++ b/keyboards/sirius/unigo66/keymaps/default/config.h | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | #pragma once | ||
| 2 | |||
| 3 | // place overrides here | ||
diff --git a/keyboards/sirius/unigo66/keymaps/default/keymap.c b/keyboards/sirius/unigo66/keymaps/default/keymap.c new file mode 100644 index 000000000..d2e0cbfbf --- /dev/null +++ b/keyboards/sirius/unigo66/keymaps/default/keymap.c | |||
| @@ -0,0 +1,66 @@ | |||
| 1 | #include QMK_KEYBOARD_H | ||
| 2 | |||
| 3 | const uint16_t keymaps[][MATRIX_ROWS][MATRIX_COLS] PROGMEM = { | ||
| 4 | /* | ||
| 5 | * | ||
| 6 | * ,--------------------------------------------------. ,--------------------------------------------------. | ||
| 7 | * | ESC | 1 | 2 | 3 | 4 | 5 | - | | = | 6 | 7 | 8 | 9 | 0 | Bsp | | ||
| 8 | * |--------+------+------+------+------+-------------| |------+------+------+------+------+------+--------| | ||
| 9 | * | Tab | Q | W | E | R | T | L1 | | [ | Y | U | I | O | P | \ | | ||
| 10 | * |--------+------+------+------+------+------| | | |------+------+------+------+------+--------| | ||
| 11 | * | Caps | A | S | D | F | G |------| |------| H | J | K | L | ; | ' | | ||
| 12 | * |--------+------+------+------+------+------| L2 | | ] |------+------+------+------+------+--------| | ||
| 13 | * | LShift | Z | X | C | V | B | | | | N | M | , | . | / | Up | | ||
| 14 | * `--------+------+------+---------------------------' `---------------------------+------+------+--------' | ||
| 15 | * | Ctrl | Super| Alt | | Left | Down| Right | | ||
| 16 | * `--------------------' `--------------------' | ||
| 17 | * ,------|------. ,---------------. | ||
| 18 | * | | PgUp | | Home | | | ||
| 19 | * | Space|------| |------| Enter | | ||
| 20 | * | | PgDn | | End | | | ||
| 21 | * `-------------' `---------------' | ||
| 22 | */ | ||
| 23 | [0] = LAYOUT( | ||
| 24 | KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_MINS, KC_EQL, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, | ||
| 25 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, TG(1), KC_LBRC, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSLS, | ||
| 26 | KC_CAPS, 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, TG(2), KC_RBRC, KC_N, KC_M, KC_COMM,KC_DOT, KC_SLSH, KC_UP , | ||
| 28 | KC_LCTL, KC_LGUI,KC_LALT, KC_LEFT,KC_DOWN, KC_RGHT, | ||
| 29 | KC_SPC, KC_PGUP, KC_HOME, KC_ENT, | ||
| 30 | KC_SPC, KC_PGDN, KC_END, KC_ENT | ||
| 31 | ), | ||
| 32 | [1] = LAYOUT( | ||
| 33 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 34 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 35 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 36 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 37 | _______, _______, _______, _______, _______, _______, | ||
| 38 | _______, _______, _______, _______, | ||
| 39 | _______, _______, _______, _______ | ||
| 40 | ), | ||
| 41 | [2] = LAYOUT( | ||
| 42 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 43 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 44 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 45 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 46 | _______, _______, _______, _______, _______, _______, | ||
| 47 | _______, _______, _______, _______, | ||
| 48 | _______, _______, _______, _______ | ||
| 49 | ), | ||
| 50 | }; | ||
| 51 | |||
| 52 | void matrix_init_user(void) { | ||
| 53 | |||
| 54 | } | ||
| 55 | |||
| 56 | void matrix_scan_user(void) { | ||
| 57 | |||
| 58 | } | ||
| 59 | |||
| 60 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
| 61 | return true; | ||
| 62 | } | ||
| 63 | |||
| 64 | void led_set_user(uint8_t usb_led) { | ||
| 65 | |||
| 66 | } | ||
diff --git a/keyboards/sirius/unigo66/main.c b/keyboards/sirius/unigo66/main.c new file mode 100644 index 000000000..b4a0d97aa --- /dev/null +++ b/keyboards/sirius/unigo66/main.c | |||
| @@ -0,0 +1,108 @@ | |||
| 1 | #include <avr/io.h> | ||
| 2 | #include <avr/wdt.h> | ||
| 3 | #include <avr/power.h> | ||
| 4 | #include <util/delay.h> | ||
| 5 | |||
| 6 | // LUFA | ||
| 7 | #include "lufa.h" | ||
| 8 | |||
| 9 | #include "sendchar.h" | ||
| 10 | #include "debug.h" | ||
| 11 | #include "keyboard.h" | ||
| 12 | #include "led.h" | ||
| 13 | |||
| 14 | |||
| 15 | /* LED ping configuration */ | ||
| 16 | #define TMK_LED | ||
| 17 | //#define LEONARDO_LED | ||
| 18 | #if defined(TMK_LED) | ||
| 19 | // For TMK converter and Teensy | ||
| 20 | #define LED_TX_INIT (DDRD |= (1<<6)) | ||
| 21 | #define LED_TX_ON (PORTD |= (1<<6)) | ||
| 22 | #define LED_TX_OFF (PORTD &= ~(1<<6)) | ||
| 23 | #define LED_TX_TOGGLE (PORTD ^= (1<<6)) | ||
| 24 | #elif defined(LEONARDO_LED) | ||
| 25 | // For Leonardo(TX LED) | ||
| 26 | #define LED_TX_INIT (DDRD |= (1<<5)) | ||
| 27 | #define LED_TX_ON (PORTD &= ~(1<<5)) | ||
| 28 | #define LED_TX_OFF (PORTD |= (1<<5)) | ||
| 29 | #define LED_TX_TOGGLE (PORTD ^= (1<<5)) | ||
| 30 | #else | ||
| 31 | #define LED_TX_INIT | ||
| 32 | #define LED_TX_ON | ||
| 33 | #define LED_TX_OFF | ||
| 34 | #define LED_TX_TOGGLE | ||
| 35 | #endif | ||
| 36 | |||
| 37 | |||
| 38 | static void LUFA_setup(void) | ||
| 39 | { | ||
| 40 | /* Disable watchdog if enabled by bootloader/fuses */ | ||
| 41 | MCUSR &= ~(1 << WDRF); | ||
| 42 | wdt_disable(); | ||
| 43 | |||
| 44 | /* Disable clock division */ | ||
| 45 | #if (F_CPU == 8000000) | ||
| 46 | clock_prescale_set(clock_div_2); // 16MHz crystal divided by 2 | ||
| 47 | #else | ||
| 48 | clock_prescale_set(clock_div_1); | ||
| 49 | #endif | ||
| 50 | |||
| 51 | // Leonardo needs. Without this USB device is not recognized. | ||
| 52 | USB_Disable(); | ||
| 53 | |||
| 54 | USB_Init(); | ||
| 55 | |||
| 56 | // for Console_Task | ||
| 57 | USB_Device_EnableSOFEvents(); | ||
| 58 | print_set_sendchar(sendchar); | ||
| 59 | } | ||
| 60 | |||
| 61 | |||
| 62 | |||
| 63 | int main(void) | ||
| 64 | { | ||
| 65 | // LED for debug | ||
| 66 | LED_TX_INIT; | ||
| 67 | LED_TX_ON; | ||
| 68 | |||
| 69 | debug_enable = true; | ||
| 70 | debug_keyboard = true; | ||
| 71 | |||
| 72 | host_set_driver(&lufa_driver); | ||
| 73 | keyboard_init(); | ||
| 74 | |||
| 75 | LUFA_setup(); | ||
| 76 | |||
| 77 | /* NOTE: Don't insert time consuming job here. | ||
| 78 | * It'll cause unclear initialization failure when DFU reset(worm start). | ||
| 79 | */ | ||
| 80 | sei(); | ||
| 81 | |||
| 82 | /* Some keyboards bootup quickly and cannot be initialized with this startup wait.*/ | ||
| 83 | // wait for startup of sendchar routine | ||
| 84 | while (USB_DeviceState != DEVICE_STATE_Configured) ; | ||
| 85 | if (debug_enable) { | ||
| 86 | _delay_ms(1000); | ||
| 87 | } | ||
| 88 | |||
| 89 | |||
| 90 | /* // wait for USB startup & debug output | ||
| 91 | uint8_t timeout=255 | ||
| 92 | while (timeout-- && USB_DeviceState != DEVICE_STATE_Configured) { | ||
| 93 | wait_ms(4); | ||
| 94 | */ | ||
| 95 | |||
| 96 | debug("init: done\n"); | ||
| 97 | |||
| 98 | for (;;) { | ||
| 99 | keyboard_task(); | ||
| 100 | |||
| 101 | #if !defined(INTERRUPT_CONTROL_ENDPOINT) | ||
| 102 | // LUFA Task for control request | ||
| 103 | USB_USBTask(); | ||
| 104 | #endif | ||
| 105 | } | ||
| 106 | |||
| 107 | return 0; | ||
| 108 | } | ||
diff --git a/keyboards/sirius/unigo66/matrix.c b/keyboards/sirius/unigo66/matrix.c new file mode 100644 index 000000000..b077febd7 --- /dev/null +++ b/keyboards/sirius/unigo66/matrix.c | |||
| @@ -0,0 +1 @@ | |||
| // Intentionally left empty. This file must exist for this board to build. | |||
diff --git a/keyboards/sirius/unigo66/readme.md b/keyboards/sirius/unigo66/readme.md new file mode 100644 index 000000000..78a02ed09 --- /dev/null +++ b/keyboards/sirius/unigo66/readme.md | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | # UniGo66 | ||
| 2 | |||
| 3 |  | ||
| 4 | |||
| 5 | The UniGo66 is an ergonomic wireless keyboard designed by Sirius and manufactured by ALF Studios. | ||
| 6 | |||
| 7 | Join ALF Studios on [Discord](https://discord.gg/GJ8bdM) | ||
| 8 | |||
| 9 | Make example: | ||
| 10 | |||
| 11 | make sirius/unigo66:default | ||
| 12 | |||
| 13 | 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). | ||
| 14 | |||
| 15 | To get the U2U into DFU flashing mode, insert the U2U into the computer and press the button in the red circle shown below | ||
| 16 | |||
| 17 |  \ No newline at end of file | ||
diff --git a/keyboards/sirius/unigo66/rules.mk b/keyboards/sirius/unigo66/rules.mk new file mode 100644 index 000000000..e716aa86f --- /dev/null +++ b/keyboards/sirius/unigo66/rules.mk | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = atmega32u4 | ||
| 3 | |||
| 4 | F_CPU = 16000000 | ||
| 5 | |||
| 6 | ARCH = AVR8 | ||
| 7 | |||
| 8 | F_USB = $(F_CPU) | ||
| 9 | |||
| 10 | BOOTLOADER = atmel-dfu | ||
| 11 | |||
| 12 | # Interrupt driven control endpoint task | ||
| 13 | OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT | ||
| 14 | |||
| 15 | # Build Options | ||
| 16 | # comment out to disable the options. | ||
| 17 | # | ||
| 18 | # BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000) | ||
| 19 | # MOUSEKEY_ENABLE = yes # Mouse keys(+4700) | ||
| 20 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | ||
| 21 | # CONSOLE_ENABLE = yes # Console for debug(+400) | ||
| 22 | # COMMAND_ENABLE = yes # Commands for debug and configuration | ||
| 23 | # SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend | ||
| 24 | # NKRO_ENABLE = yes # USB Nkey Rollover - not yet supported in LUFA | ||
| 25 | # BACKLIGHT_ENABLE = yes | ||
| 26 | USB_HID_ENABLE = yes | ||
| 27 | |||
| 28 | CUSTOM_MATRIX = yes | ||
| 29 | SRC = custom_matrix.cpp | ||
| 30 | |||
| 31 | CUSTOM_MATRIX = yes | ||
| 32 | SRC = custom_matrix.cpp | ||
diff --git a/keyboards/sirius/unigo66/unigo66.c b/keyboards/sirius/unigo66/unigo66.c new file mode 100644 index 000000000..6a2d2632b --- /dev/null +++ b/keyboards/sirius/unigo66/unigo66.c | |||
| @@ -0,0 +1 @@ | |||
| #include "unigo66.h" | |||
diff --git a/keyboards/sirius/unigo66/unigo66.h b/keyboards/sirius/unigo66/unigo66.h new file mode 100644 index 000000000..3215c891b --- /dev/null +++ b/keyboards/sirius/unigo66/unigo66.h | |||
| @@ -0,0 +1,103 @@ | |||
| 1 | #ifndef UNIGO66_H | ||
| 2 | #define UNIGO66_H | ||
| 3 | |||
| 4 | #include "quantum.h" | ||
| 5 | |||
| 6 | /* ,---------------. ,---------------. ,---------------. | ||
| 7 | * |F13|F14|F15|F16| |F17|F18|F19|F20| |F21|F22|F23|F24| | ||
| 8 | * ,---. |---------------| |---------------| |---------------| ,-----------. ,---------------. ,-------. | ||
| 9 | * |Esc| |F1 |F2 |F3 |F4 | |F5 |F6 |F7 |F8 | |F9 |F10|F11|F12| |PrS|ScL|Pau| |VDn|VUp|Mut|Pwr| | Help | | ||
| 10 | * `---' `---------------' `---------------' `---------------' `-----------' `---------------' `-------' | ||
| 11 | * ,-----------------------------------------------------------. ,-----------. ,---------------. ,-------. | ||
| 12 | * | `| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =|JPY|Bsp| |Ins|Hom|PgU| |NmL| /| *| -| |Stp|Agn| | ||
| 13 | * |-----------------------------------------------------------| |-----------| |---------------| |-------| | ||
| 14 | * |Tab | Q| W| E| R| T| Y| U| I| O| P| [| ]| \ | |Del|End|PgD| | 7| 8| 9| +| |Mnu|Und| | ||
| 15 | * |-----------------------------------------------------------| `-----------' |---------------| |-------| | ||
| 16 | * |CapsL | A| S| D| F| G| H| J| K| L| ;| :| #|Retn| | 4| 5| 6|KP,| |Sel|Cpy| | ||
| 17 | * |-----------------------------------------------------------| ,---. |---------------| |-------| | ||
| 18 | * |Shft| <| Z| X| C| V| B| N| M| ,| ,| /| RO|Shift | |Up | | 1| 2| 3|KP=| |Exe|Pst| | ||
| 19 | * |-----------------------------------------------------------| ,-----------. |---------------| |-------| | ||
| 20 | * |Ctl|Gui|Alt|MHEN|HNJ| Space |H/E|HENK|KANA|Alt|Gui|App|Ctl| |Lef|Dow|Rig| | 0 | .|Ent| |Fnd|Cut| | ||
| 21 | * `-----------------------------------------------------------' `-----------' `---------------' `-------' | ||
| 22 | |||
| 23 | */ | ||
| 24 | #define LAYOUT_ALL( \ | ||
| 25 | K68,K69,K6A,K6B,K6C,K6D,K6E,K6F,K70,K71,K72,K73, \ | ||
| 26 | K29, K3A,K3B,K3C,K3D,K3E,K3F,K40,K41,K42,K43,K44,K45, K46,K47,K48, K81,K80,K7F,K66, K75, \ | ||
| 27 | K35,K1E,K1F,K20,K21,K22,K23,K24,K25,K26,K27,K2D,K2E,K89,K2A, K49,K4A,K4B, K53,K54,K55,K56, K78,K79, \ | ||
| 28 | K2B,K14,K1A,K08,K15,K17,K1C,K18,K0C,K12,K13,K2F,K30, K31, K4C,K4D,K4E, K5F,K60,K61,K57, K76,K7A, \ | ||
| 29 | K39,K04,K16,K07,K09,K0A,K0B,K0D,K0E,K0F,K33,K34, K32,K28, K5C,K5D,K5E,K85, K77,K7C, \ | ||
| 30 | KE1,K64,K1D,K1B,K06,K19,K05,K11,K10,K36,K37,K38, K87,KE5, K52, K59,K5A,K5B,K67, K74,K7D, \ | ||
| 31 | KE0,KE3,KE2,K8B,K91, K2C, K90,K8A,K88,KE6,KE7,K65,KE4, K50,K51,K4F, K62, K63,K58, K7E,K7B \ | ||
| 32 | ) { \ | ||
| 33 | { KC_NO, KC_NO, KC_NO, KC_NO, K04, K05, K06, K07, /* 00-07 */ \ | ||
| 34 | K08, K09, K0A, K0B, K0C, K0D, K0E, K0F }, /* 08-0F */ \ | ||
| 35 | { K10, K11, K12, K13, K14, K15, K16, K17, /* 10-17 */ \ | ||
| 36 | K18, K19, K1A, K1B, K1C, K1D, K1E, K1F }, /* 18-1F */ \ | ||
| 37 | { K20, K21, K22, K23, K24, K25, K26, K27, /* 20-27 */ \ | ||
| 38 | K28, K29, K2A, K2B, K2C, K2D, K2E, K2F }, /* 28-2F */ \ | ||
| 39 | { K30, K31, K32, K33, K34, K35, K36, K37, /* 30-37 */ \ | ||
| 40 | K38, K39, K3A, K3B, K3C, K3D, K3E, K3F }, /* 38-3F */ \ | ||
| 41 | { K40, K41, K42, K43, K44, K45, K46, K47, /* 40-47 */ \ | ||
| 42 | K48, K49, K4A, K4B, K4C, K4D, K4E, K4F }, /* 48-4F */ \ | ||
| 43 | { K50, K51, K52, K53, K54, K55, K56, K57, /* 50-57 */ \ | ||
| 44 | K58, K59, K5A, K5B, K5C, K5D, K5E, K5F }, /* 58-5F */ \ | ||
| 45 | { K60, K61, K62, K63, K64, K65, K66, K67, /* 60-67 */ \ | ||
| 46 | K68, K69, K6A, K6B, K6C, K6D, K6E, K6F }, /* 68-6F */ \ | ||
| 47 | { K70, K71, K72, K73, K74, K75, K76, K77, /* 70-77 */ \ | ||
| 48 | K78, K79, K7A, K7B, K7C, K7D, K7E, K7F }, /* 78-7F */ \ | ||
| 49 | { K80, K81, KC_NO, KC_NO, KC_NO, K85, KC_NO, K87, /* 80-87 */ \ | ||
| 50 | K88, K89, K8A, K8B, KC_NO, KC_NO, KC_NO, KC_NO }, /* 88-8F */ \ | ||
| 51 | { K90, K91, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, /* 90-97 */ \ | ||
| 52 | KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO }, /* 98-9F */ \ | ||
| 53 | { KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, /* A0-A7 */ \ | ||
| 54 | KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO }, /* A8-AF */ \ | ||
| 55 | { KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, /* B0-B7 */ \ | ||
| 56 | KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO }, /* B8-BF */ \ | ||
| 57 | { KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, /* C0-C7 */ \ | ||
| 58 | KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO }, /* C8-CF */ \ | ||
| 59 | { KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, /* D0-D7 */ \ | ||
| 60 | KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO }, /* D8-DF */ \ | ||
| 61 | { KE0, KE1, KE2, KE3, KE4, KE5, KE6, KE7, /* E0-E7 */ \ | ||
| 62 | KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO }, /* E8-EF */ \ | ||
| 63 | { KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, /* F0-F7 */ \ | ||
| 64 | KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO }, /* F8-FF */ \ | ||
| 65 | } | ||
| 66 | |||
| 67 | /* | ||
| 68 | * | ||
| 69 | * ,--------------------------------------------------. ,--------------------------------------------------. | ||
| 70 | * | ESC | 1 | 2 | 3 | 4 | 5 | - | | = | 6 | 7 | 8 | 9 | 0 | Bsp | | ||
| 71 | * |--------+------+------+------+------+-------------| |------+------+------+------+------+------+--------| | ||
| 72 | * | Tab | Q | W | E | R | T | L1 | | [ | Y | U | I | O | P | \ | | ||
| 73 | * |--------+------+------+------+------+------| | | |------+------+------+------+------+--------| | ||
| 74 | * | Caps | A | S | D | F | G |------| |------| H | J | K | L | ; | ' | | ||
| 75 | * |--------+------+------+------+------+------| L2 | | ] |------+------+------+------+------+--------| | ||
| 76 | * | LShift | Z | X | C | V | B | | | | N | M | , | . | / | Up | | ||
| 77 | * `--------+------+------+---------------------------' `---------------------------+------+------+--------' | ||
| 78 | * | Ctrl | Super| Alt | | Left | Down| Right | | ||
| 79 | * `--------------------' `--------------------' | ||
| 80 | * ,------|------. ,---------------. | ||
| 81 | * | | PgUp | | Home | | | ||
| 82 | * | Space|------| |------| Enter | | ||
| 83 | * | | PgDn | | End | | | ||
| 84 | * `-------------' `---------------' | ||
| 85 | */ | ||
| 86 | #define LAYOUT( \ | ||
| 87 | K29,K1E,K1F,K20,K21,K22,K2D, K2E,K23,K24,K25,K26,K27,K2A,\ | ||
| 88 | K2B,K14,K1A,K08,K15,K17,K4B, K2F,K1C,K18,K0C,K12,K13,K31,\ | ||
| 89 | K39,K04,K16,K07,K09,K0A, K0B,K0D,K0E,K0F,K33,K34,\ | ||
| 90 | KE1,K1D,K1B,K06,K19,K05,K4E, K30,K11,K10,K36,K37,K52,KE5,\ | ||
| 91 | KE0,KE3,KE2, K50,K51,K4F,\ | ||
| 92 | K2C,K49, K4A,K28, \ | ||
| 93 | KE6,K4C, K4D,KE4 \ | ||
| 94 | ) LAYOUT_ALL( \ | ||
| 95 | KC_NO,KC_NO,KC_NO,KC_NO,KC_NO,KC_NO,KC_NO,KC_NO,KC_NO,KC_NO,KC_NO,KC_NO, \ | ||
| 96 | K29, KC_NO,KC_NO,KC_NO,KC_NO,KC_NO,KC_NO,KC_NO,KC_NO,KC_NO,KC_NO,KC_NO,KC_NO, KC_NO,KC_NO,KC_NO, KC_NO,KC_NO,KC_NO,KC_NO,KC_NO,\ | ||
| 97 | KC_NO,K1E,K1F,K20,K21,K22,K23,K24,K25,K26,K27,K2D,K2E,KC_NO,K2A, K49,K4A,K4B, KC_NO,KC_NO,KC_NO,KC_NO, KC_NO,KC_NO, \ | ||
| 98 | K2B,K14,K1A,K08,K15,K17,K1C,K18,K0C,K12,K13,K2F,K30, K31, K4C,K4D,K4E, KC_NO,KC_NO,KC_NO,KC_NO, KC_NO,KC_NO, \ | ||
| 99 | K39,K04,K16,K07,K09,K0A,K0B,K0D,K0E,K0F,K33,K34, KC_NO,K28, KC_NO,KC_NO,KC_NO,KC_NO, KC_NO,KC_NO, \ | ||
| 100 | KE1,KC_NO,K1D,K1B,K06,K19,K05,K11,K10,K36,K37,KC_NO, KC_NO,KE5, K52, KC_NO,KC_NO,KC_NO,KC_NO, KC_NO,KC_NO, \ | ||
| 101 | KE0,KE3,KE2,KC_NO,KC_NO, K2C, KC_NO,KC_NO,KC_NO,KE6,KC_NO,KC_NO,KE4, K50,K51,K4F, KC_NO, KC_NO,KC_NO, KC_NO,KC_NO \ | ||
| 102 | ) | ||
| 103 | #endif | ||
