diff options
| author | halfenergized <half_energized@yahoo.co.uk> | 2020-04-05 20:48:23 +0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-05 14:48:23 +0100 |
| commit | 90665aeec9c90f62ea3687b037624d9fc04ad380 (patch) | |
| tree | c281af5cc2c49f511191fcc879b35a956475627a /keyboards/tgr | |
| parent | 845953cc67e33dbd9ac5007ba3b39562f5aea962 (diff) | |
| download | qmk_firmware-90665aeec9c90f62ea3687b037624d9fc04ad380.tar.gz qmk_firmware-90665aeec9c90f62ea3687b037624d9fc04ad380.zip | |
Add keyboard TGR-910 (#8683)
* Add files via upload
* Update info.json
* Update info.json
* Update 910.h
* Update 910.h
* Update 910.h
* Update info.json
* Update 910.c
* Update 910.h
* Update config.h
* Update config.h
* Update keymap.c
* Update rules.mk
* Update readme.md
* Delete config.h
* Delete readme.md
Diffstat (limited to 'keyboards/tgr')
| -rw-r--r-- | keyboards/tgr/910/910.c | 37 | ||||
| -rw-r--r-- | keyboards/tgr/910/910.h | 84 | ||||
| -rw-r--r-- | keyboards/tgr/910/config.h | 53 | ||||
| -rw-r--r-- | keyboards/tgr/910/info.json | 24 | ||||
| -rw-r--r-- | keyboards/tgr/910/keymaps/default/keymap.c | 25 | ||||
| -rw-r--r-- | keyboards/tgr/910/readme.md | 19 | ||||
| -rw-r--r-- | keyboards/tgr/910/rules.mk | 24 |
7 files changed, 266 insertions, 0 deletions
diff --git a/keyboards/tgr/910/910.c b/keyboards/tgr/910/910.c new file mode 100644 index 000000000..63b4a13f7 --- /dev/null +++ b/keyboards/tgr/910/910.c | |||
| @@ -0,0 +1,37 @@ | |||
| 1 | /* Copyright 2020 halfenergized | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | |||
| 17 | #include "910.h" | ||
| 18 | |||
| 19 | void keyboard_pre_init_kb(void) { | ||
| 20 | led_init_ports(); | ||
| 21 | keyboard_pre_init_user(); | ||
| 22 | } | ||
| 23 | |||
| 24 | void led_init_ports(void) { | ||
| 25 | setPinOutput(D0); | ||
| 26 | setPinOutput(D1); | ||
| 27 | setPinOutput(D6); | ||
| 28 | } | ||
| 29 | |||
| 30 | bool led_update_kb(led_t led_state) { | ||
| 31 | if (led_update_user(led_state)) { | ||
| 32 | writePin(D0, led_state.num_lock); | ||
| 33 | writePin(D1, led_state.caps_lock); | ||
| 34 | writePin(D6, led_state.scroll_lock); | ||
| 35 | } | ||
| 36 | return true; | ||
| 37 | } | ||
diff --git a/keyboards/tgr/910/910.h b/keyboards/tgr/910/910.h new file mode 100644 index 000000000..670999ac4 --- /dev/null +++ b/keyboards/tgr/910/910.h | |||
| @@ -0,0 +1,84 @@ | |||
| 1 | /* Copyright 2020 halfenergized | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | #pragma once | ||
| 17 | |||
| 18 | #include "quantum.h" | ||
| 19 | |||
| 20 | #define ___ KC_NO | ||
| 21 | |||
| 22 | #define LAYOUT_all( \ | ||
| 23 | k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, k0d, k6d, k53, \ | ||
| 24 | k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k1c, k1d, k52, \ | ||
| 25 | k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, k2c, k2d, k51, \ | ||
| 26 | k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b, k3c, k3d, k50, \ | ||
| 27 | k40, k41, k42, k44, k45, k46, k47, k48, k49, k4b, k4c, k4d \ | ||
| 28 | ){ \ | ||
| 29 | { k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, k0d }, \ | ||
| 30 | { k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k1c, k1d }, \ | ||
| 31 | { k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, k2c, k2d }, \ | ||
| 32 | { k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b, k3c, k3d }, \ | ||
| 33 | { k40, k41, k42, ___, k44, k45, k46, k47, k48, k49, ___, k4b, k4c, k4d }, \ | ||
| 34 | { k50, k51, k52, k53, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___ }, \ | ||
| 35 | { ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, k6d } \ | ||
| 36 | } | ||
| 37 | |||
| 38 | #define LAYOUT_ansi( \ | ||
| 39 | k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, k0d, \ | ||
| 40 | k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k1c, k1d, k52, \ | ||
| 41 | k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, k2d, k51, \ | ||
| 42 | k30, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b, k3c, k3d, k50, \ | ||
| 43 | k40, k41, k42, k45, k47, k48, k4b, k4c, k4d \ | ||
| 44 | ){ \ | ||
| 45 | { k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, k0d }, \ | ||
| 46 | { k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k1c, k1d }, \ | ||
| 47 | { k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, ___, k2d }, \ | ||
| 48 | { k30, ___, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b, k3c, k3d }, \ | ||
| 49 | { k40, k41, k42, ___, ___, k45, ___, k47, k48, ___, ___, k4b, k4c, k4d }, \ | ||
| 50 | { k50, k51, k52, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___ }, \ | ||
| 51 | { ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___ } \ | ||
| 52 | } | ||
| 53 | |||
| 54 | #define LAYOUT_ansi_split_bs( \ | ||
| 55 | k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, k0d, k6d, \ | ||
| 56 | k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k1c, k1d, k52, \ | ||
| 57 | k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, k2d, k51, \ | ||
| 58 | k30, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b, k3c, k3d, k50, \ | ||
| 59 | k40, k41, k42, k45, k47, k48, k4b, k4c, k4d \ | ||
| 60 | ){ \ | ||
| 61 | { k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, k0d }, \ | ||
| 62 | { k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k1c, k1d }, \ | ||
| 63 | { k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, ___, k2d }, \ | ||
| 64 | { k30, ___, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b, k3c, k3d }, \ | ||
| 65 | { k40, k41, k42, ___, ___, k45, ___, k47, k48, ___, ___, k4b, k4c, k4d }, \ | ||
| 66 | { k50, k51, k52, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___ }, \ | ||
| 67 | { ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, k6d } \ | ||
| 68 | } | ||
| 69 | |||
| 70 | #define LAYOUT_iso( \ | ||
| 71 | k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, k0d, \ | ||
| 72 | k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k1c, k52, \ | ||
| 73 | k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, k2c, k2d, k51, \ | ||
| 74 | k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b, k3c, k3d, k50, \ | ||
| 75 | k40, k41, k42, k45, k47, k48, k4b, k4c, k4d \ | ||
| 76 | ){ \ | ||
| 77 | { k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, k0d }, \ | ||
| 78 | { k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k1c, ___ }, \ | ||
| 79 | { k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, k2c, k2d }, \ | ||
| 80 | { k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b, k3c, k3d }, \ | ||
| 81 | { k40, k41, k42, ___, ___, k45, ___, k47, k48, ___, ___, k4b, k4c, k4d }, \ | ||
| 82 | { k50, k51, k52, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___ }, \ | ||
| 83 | { ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___ } \ | ||
| 84 | } | ||
diff --git a/keyboards/tgr/910/config.h b/keyboards/tgr/910/config.h new file mode 100644 index 000000000..ab9d81d83 --- /dev/null +++ b/keyboards/tgr/910/config.h | |||
| @@ -0,0 +1,53 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2020 halfenergized | ||
| 3 | |||
| 4 | This program is free software: you can redistribute it and/or modify | ||
| 5 | it under the terms of the GNU General Public License as published by | ||
| 6 | the Free Software Foundation, either version 2 of the License, or | ||
| 7 | (at your option) any later version. | ||
| 8 | |||
| 9 | This program is distributed in the hope that it will be useful, | ||
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | GNU General Public License for more details. | ||
| 13 | |||
| 14 | You should have received a copy of the GNU General Public License | ||
| 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 16 | */ | ||
| 17 | |||
| 18 | #pragma once | ||
| 19 | |||
| 20 | #include "config_common.h" | ||
| 21 | |||
| 22 | #define VENDOR_ID 0x20A0 | ||
| 23 | #define PRODUCT_ID 0x422D | ||
| 24 | #define DEVICE_VER 0x0001 | ||
| 25 | #define MANUFACTURER Quadcube | ||
| 26 | #define PRODUCT TGR-910 | ||
| 27 | #define DESCRIPTION 65% Keyboard | ||
| 28 | |||
| 29 | #define RGBLED_NUM 19 | ||
| 30 | |||
| 31 | #define MATRIX_ROWS 7 | ||
| 32 | #define MATRIX_COLS 14 | ||
| 33 | |||
| 34 | // 0 1 2 3 4 5 6 7 8 9 A B C D | ||
| 35 | #define MATRIX_ROW_PINS { B0, B1, B2, B3, B4, B5, B6 } | ||
| 36 | #define MATRIX_COL_PINS { D7, C2, C3, C4, C5, C6, C7, A7, A6, A5, A4, A3, A1, A0 } | ||
| 37 | #define UNUSED_PINS | ||
| 38 | |||
| 39 | #define DIODE_DIRECTION COL2ROW | ||
| 40 | #define DEBOUNCE 5 | ||
| 41 | |||
| 42 | #define BACKLIGHT_PIN D4 | ||
| 43 | #define BACKLIGHT_LEVELS 3 | ||
| 44 | |||
| 45 | #define RGBLIGHT_ANIMATIONS | ||
| 46 | |||
| 47 | /* key combination for magic key command */ | ||
| 48 | /* defined by default; to change, uncomment and set to the combination you want */ | ||
| 49 | // #define IS_COMMAND() (get_mods() == MOD_MASK_SHIFT) | ||
| 50 | |||
| 51 | /* Bootmagic Lite key configuration */ | ||
| 52 | // #define BOOTMAGIC_LITE_ROW 0 | ||
| 53 | // #define BOOTMAGIC_LITE_COLUMN 0 | ||
diff --git a/keyboards/tgr/910/info.json b/keyboards/tgr/910/info.json new file mode 100644 index 000000000..b50347861 --- /dev/null +++ b/keyboards/tgr/910/info.json | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "TGR-910", | ||
| 3 | "url": "", | ||
| 4 | "maintainer": "qmk", | ||
| 5 | "width": 16, | ||
| 6 | "height": 5, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT_all": { | ||
| 9 | "layout": [{"x":0, "y":0}, {"x":1, "y":0}, {"x":2, "y":0}, {"x":3, "y":0}, {"x":4, "y":0}, {"x":5, "y":0}, {"x":6, "y":0}, {"x":7, "y":0}, {"x":8, "y":0}, {"x":9, "y":0}, {"x":10, "y":0}, {"x":11, "y":0}, {"x":12, "y":0}, {"x":13, "y":0}, {"x":14, "y":0}, {"x":15, "y":0}, {"x":0, "y":1, "w":1.5}, {"x":1.5, "y":1}, {"x":2.5, "y":1}, {"x":3.5, "y":1}, {"x":4.5, "y":1}, {"x":5.5, "y":1}, {"x":6.5, "y":1}, {"x":7.5, "y":1}, {"x":8.5, "y":1}, {"x":9.5, "y":1}, {"x":10.5, "y":1}, {"x":11.5, "y":1}, {"x":12.5, "y":1}, {"x":13.5, "y":1, "w":1.5}, {"x":15, "y":1}, {"x":0, "y":2, "w":1.75}, {"x":1.75, "y":2}, {"x":2.75, "y":2}, {"x":3.75, "y":2}, {"x":4.75, "y":2}, {"x":5.75, "y":2}, {"x":6.75, "y":2}, {"x":7.75, "y":2}, {"x":8.75, "y":2}, {"x":9.75, "y":2}, {"x":10.75, "y":2}, {"x":11.75, "y":2}, {"x":12.75, "y":2}, {"x":13.75, "y":2, "w":1.25}, {"x":15, "y":2}, {"x":0, "y":3, "w":1.25}, {"x":1.25, "y":3}, {"x":2.25, "y":3}, {"x":3.25, "y":3}, {"x":4.25, "y":3}, {"x":5.25, "y":3}, {"x":6.25, "y":3}, {"x":7.25, "y":3}, {"x":8.25, "y":3}, {"x":9.25, "y":3}, {"x":10.25, "y":3}, {"x":11.25, "y":3}, {"x":12.25, "y":3, "w":1.75}, {"x":14, "y":3}, {"x":15, "y":3}, {"x":0, "y":4, "w":1.25}, {"x":1.25, "y":4, "w":1.25}, {"x":2.5, "y":4, "w":1.25}, {"x":3.75, "y":4, "w":2.25}, {"x":6, "y":4, "w":1.25}, {"x":7.25, "y":4, "w":2.75}, {"x":10, "y":4}, {"x":11, "y":4}, {"x":12, "y":4}, {"x":13, "y":4}, {"x":14, "y":4}, {"x":15, "y":4}] | ||
| 10 | }, | ||
| 11 | |||
| 12 | "LAYOUT_ansi": { | ||
| 13 | "layout": [{"x":0, "y":0}, {"x":1, "y":0}, {"x":2, "y":0}, {"x":3, "y":0}, {"x":4, "y":0}, {"x":5, "y":0}, {"x":6, "y":0}, {"x":7, "y":0}, {"x":8, "y":0}, {"x":9, "y":0}, {"x":10, "y":0}, {"x":11, "y":0}, {"x":12, "y":0}, {"x":13, "y":0, "w":2}, {"x":0, "y":1, "w":1.5}, {"x":1.5, "y":1}, {"x":2.5, "y":1}, {"x":3.5, "y":1}, {"x":4.5, "y":1}, {"x":5.5, "y":1}, {"x":6.5, "y":1}, {"x":7.5, "y":1}, {"x":8.5, "y":1}, {"x":9.5, "y":1}, {"x":10.5, "y":1}, {"x":11.5, "y":1}, {"x":12.5, "y":1}, {"x":13.5, "y":1, "w":1.5}, {"x":15, "y":1}, {"x":0, "y":2, "w":1.75}, {"x":1.75, "y":2}, {"x":2.75, "y":2}, {"x":3.75, "y":2}, {"x":4.75, "y":2}, {"x":5.75, "y":2}, {"x":6.75, "y":2}, {"x":7.75, "y":2}, {"x":8.75, "y":2}, {"x":9.75, "y":2}, {"x":10.75, "y":2}, {"x":11.75, "y":2}, {"x":12.75, "y":2, "w":2.25}, {"x":15, "y":2}, {"x":0, "y":3, "w":2.25}, {"x":2.25, "y":3}, {"x":3.25, "y":3}, {"x":4.25, "y":3}, {"x":5.25, "y":3}, {"x":6.25, "y":3}, {"x":7.25, "y":3}, {"x":8.25, "y":3}, {"x":9.25, "y":3}, {"x":10.25, "y":3}, {"x":11.25, "y":3}, {"x":12.25, "y":3, "w":1.75}, {"x":14, "y":3}, {"x":15, "y":3}, {"x":0, "y":4, "w":1.25}, {"x":1.25, "y":4, "w":1.25}, {"x":2.5, "y":4, "w":1.25}, {"x":3.75, "y":4, "w":6.25}, {"x":10, "y":4, "w":1.25}, {"x":11.25, "y":4, "w":1.25}, {"x":13, "y":4}, {"x":14, "y":4}, {"x":15, "y":4}] | ||
| 14 | }, | ||
| 15 | |||
| 16 | "LAYOUT_ansi_split_bs": { | ||
| 17 | "layout": [{"x":0, "y":0}, {"x":1, "y":0}, {"x":2, "y":0}, {"x":3, "y":0}, {"x":4, "y":0}, {"x":5, "y":0}, {"x":6, "y":0}, {"x":7, "y":0}, {"x":8, "y":0}, {"x":9, "y":0}, {"x":10, "y":0}, {"x":11, "y":0}, {"x":12, "y":0}, {"x":13, "y":0}, {"x":14, "y":0}, {"x":0, "y":1, "w":1.5}, {"x":1.5, "y":1}, {"x":2.5, "y":1}, {"x":3.5, "y":1}, {"x":4.5, "y":1}, {"x":5.5, "y":1}, {"x":6.5, "y":1}, {"x":7.5, "y":1}, {"x":8.5, "y":1}, {"x":9.5, "y":1}, {"x":10.5, "y":1}, {"x":11.5, "y":1}, {"x":12.5, "y":1}, {"x":13.5, "y":1, "w":1.5}, {"x":15, "y":1}, {"x":0, "y":2, "w":1.75}, {"x":1.75, "y":2}, {"x":2.75, "y":2}, {"x":3.75, "y":2}, {"x":4.75, "y":2}, {"x":5.75, "y":2}, {"x":6.75, "y":2}, {"x":7.75, "y":2}, {"x":8.75, "y":2}, {"x":9.75, "y":2}, {"x":10.75, "y":2}, {"x":11.75, "y":2}, {"x":12.75, "y":2, "w":2.25}, {"x":15, "y":2}, {"x":0, "y":3, "w":2.25}, {"x":2.25, "y":3}, {"x":3.25, "y":3}, {"x":4.25, "y":3}, {"x":5.25, "y":3}, {"x":6.25, "y":3}, {"x":7.25, "y":3}, {"x":8.25, "y":3}, {"x":9.25, "y":3}, {"x":10.25, "y":3}, {"x":11.25, "y":3}, {"x":12.25, "y":3, "w":1.75}, {"x":14, "y":3}, {"x":15, "y":3}, {"x":0, "y":4, "w":1.25}, {"x":1.25, "y":4, "w":1.25}, {"x":2.5, "y":4, "w":1.25}, {"x":3.75, "y":4, "w":6.25}, {"x":10, "y":4, "w":1.25}, {"x":11.25, "y":4, "w":1.25}, {"x":13, "y":4}, {"x":14, "y":4}, {"x":15, "y":4}] | ||
| 18 | }, | ||
| 19 | |||
| 20 | "LAYOUT_iso": { | ||
| 21 | "layout": [{"x":0, "y":0}, {"x":1, "y":0}, {"x":2, "y":0}, {"x":3, "y":0}, {"x":4, "y":0}, {"x":5, "y":0}, {"x":6, "y":0}, {"x":7, "y":0}, {"x":8, "y":0}, {"x":9, "y":0}, {"x":10, "y":0}, {"x":11, "y":0}, {"x":12, "y":0}, {"x":13, "y":0, "w":2}, {"x":0, "y":1, "w":1.5}, {"x":1.5, "y":1}, {"x":2.5, "y":1}, {"x":3.5, "y":1}, {"x":4.5, "y":1}, {"x":5.5, "y":1}, {"x":6.5, "y":1}, {"x":7.5, "y":1}, {"x":8.5, "y":1}, {"x":9.5, "y":1}, {"x":10.5, "y":1}, {"x":11.5, "y":1}, {"x":12.5, "y":1}, {"x":15, "y":1}, {"x":0, "y":2, "w":1.75}, {"x":1.75, "y":2}, {"x":2.75, "y":2}, {"x":3.75, "y":2}, {"x":4.75, "y":2}, {"x":5.75, "y":2}, {"x":6.75, "y":2}, {"x":7.75, "y":2}, {"x":8.75, "y":2}, {"x":9.75, "y":2}, {"x":10.75, "y":2}, {"x":11.75, "y":2}, {"x":12.75, "y":2}, {"x":13.75, "y":1, "w":1.25, "h":2}, {"x":15, "y":2}, {"x":0, "y":3, "w":1.25}, {"x":1.25, "y":3}, {"x":2.25, "y":3}, {"x":3.25, "y":3}, {"x":4.25, "y":3}, {"x":5.25, "y":3}, {"x":6.25, "y":3}, {"x":7.25, "y":3}, {"x":8.25, "y":3}, {"x":9.25, "y":3}, {"x":10.25, "y":3}, {"x":11.25, "y":3}, {"x":12.25, "y":3, "w":1.75}, {"x":14, "y":3}, {"x":15, "y":3}, {"x":0, "y":4, "w":1.25}, {"x":1.25, "y":4, "w":1.25}, {"x":2.5, "y":4, "w":1.25}, {"x":3.75, "y":4, "w":6.25}, {"x":10, "y":4, "w":1.25}, {"x":11.25, "y":4, "w":1.25}, {"x":13, "y":4}, {"x":14, "y":4}, {"x":15, "y":4}] | ||
| 22 | } | ||
| 23 | } | ||
| 24 | } | ||
diff --git a/keyboards/tgr/910/keymaps/default/keymap.c b/keyboards/tgr/910/keymaps/default/keymap.c new file mode 100644 index 000000000..8abdb7e28 --- /dev/null +++ b/keyboards/tgr/910/keymaps/default/keymap.c | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | #include QMK_KEYBOARD_H | ||
| 2 | |||
| 3 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 4 | /* layer 0: qwerty */ | ||
| 5 | [0] = LAYOUT_ansi_split_bs( | ||
| 6 | KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_GRV, KC_DEL, | ||
| 7 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSPC, KC_PGUP, | ||
| 8 | KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_PGDN, | ||
| 9 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, MO(2), | ||
| 10 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, MO(1), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT), | ||
| 11 | |||
| 12 | [1] = LAYOUT_ansi_split_bs( | ||
| 13 | KC_GRV, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_BSLS, KC_DEL, | ||
| 14 | BL_TOGG, BL_STEP, BL_INC, BL_DEC, RESET, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_PSCR, KC_TRNS, KC_TRNS, KC_TRNS, KC_HOME, | ||
| 15 | RGB_TOG, RGB_MOD, RGB_HUI, RGB_SAI, RGB_VAI, RGB_SPI, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_END, | ||
| 16 | KC_TRNS, RGB_RMOD, RGB_HUD, RGB_SAD, RGB_VAD, RGB_SPD, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 17 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), | ||
| 18 | |||
| 19 | [2] = LAYOUT_ansi_split_bs( | ||
| 20 | KC_GRV, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_VOLD, KC_VOLU, KC_TRNS, KC_TRNS, | ||
| 21 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_PSCR, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 22 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 23 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_MPLY, KC_TRNS, | ||
| 24 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_MPRV, KC_MSTP, KC_MNXT), | ||
| 25 | }; | ||
diff --git a/keyboards/tgr/910/readme.md b/keyboards/tgr/910/readme.md new file mode 100644 index 000000000..df348f022 --- /dev/null +++ b/keyboards/tgr/910/readme.md | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | # tgr-910 | ||
| 2 | |||
| 3 | 65% custom keyboard with a very nice design. | ||
| 4 | |||
| 5 | * Keyboard Maintainer: [poisonking](https://github.com/halfenergized) | ||
| 6 | * Hardware Supported: TGR-910 (Quadcube PCB) | ||
| 7 | * Hardware Availability: [Geekhack GB](https://geekhack.org/index.php?topic=86047.0) | ||
| 8 | |||
| 9 | Make example for this keyboard (after setting up your build environment): | ||
| 10 | |||
| 11 | make tgr/910:default | ||
| 12 | |||
| 13 | Flashing example for this keyboard ([after setting up the bootloadHID flashing environment](https://docs.qmk.fm/#/flashing_bootloadhid)) | ||
| 14 | |||
| 15 | make tgr/910:default:flash | ||
| 16 | |||
| 17 | **Reset Key**: Hold down the key located at `k0d`, commonly programmed as *Backspace* while plugging in the keyboard. | ||
| 18 | |||
| 19 | See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs). | ||
diff --git a/keyboards/tgr/910/rules.mk b/keyboards/tgr/910/rules.mk new file mode 100644 index 000000000..a9746c0d3 --- /dev/null +++ b/keyboards/tgr/910/rules.mk | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = atmega32a | ||
| 3 | |||
| 4 | # Bootloader selection | ||
| 5 | # Teensy halfkay | ||
| 6 | # Pro Micro caterina | ||
| 7 | # Atmel DFU atmel-dfu | ||
| 8 | # LUFA DFU lufa-dfu | ||
| 9 | # QMK DFU qmk-dfu | ||
| 10 | # ATmega32A bootloadHID | ||
| 11 | # ATmega328P USBasp | ||
| 12 | BOOTLOADER = bootloadHID | ||
| 13 | |||
| 14 | # build options | ||
| 15 | BOOTMAGIC_ENABLE = no | ||
| 16 | MOUSEKEY_ENABLE = no | ||
| 17 | EXTRAKEY_ENABLE = yes | ||
| 18 | CONSOLE_ENABLE = no | ||
| 19 | COMMAND_ENABLE = yes | ||
| 20 | BACKLIGHT_ENABLE = yes | ||
| 21 | RGBLIGHT_ENABLE = yes | ||
| 22 | WS2812_DRIVER = i2c | ||
| 23 | |||
| 24 | OPT_DEFS = -DDEBUG_LEVEL=0 | ||
