diff options
author | Wilba <Jason.S.Williams@gmail.com> | 2020-05-26 12:22:14 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-25 19:22:14 -0700 |
commit | f56d333db1a2dc4ec20de410ec9a26e5195e4411 (patch) | |
tree | fceddea7f197944445754f2e9e3e9dffce8d6acf | |
parent | d8f76f9e6dd76b20636f7726f98aac9c26d03aa5 (diff) | |
download | qmk_firmware-f56d333db1a2dc4ec20de410ec9a26e5195e4411.tar.gz qmk_firmware-f56d333db1a2dc4ec20de410ec9a26e5195e4411.zip |
[Keyboard] Added wilba.tech WT60-XT (#9168)
* Added wilba.tech WT60-XT
* fix indent
* Update keyboards/wilba_tech/wt60_xt/readme.md
* Update keyboards/wilba_tech/wt60_xt/rules.mk
* Update keyboards/wilba_tech/wt60_xt/wt60_xt.c
-rw-r--r-- | keyboards/wilba_tech/wt60_xt/config.h | 183 | ||||
-rw-r--r-- | keyboards/wilba_tech/wt60_xt/info.json | 12 | ||||
-rw-r--r-- | keyboards/wilba_tech/wt60_xt/keymaps/default/keymap.c | 38 | ||||
-rw-r--r-- | keyboards/wilba_tech/wt60_xt/keymaps/via/keymap.c | 38 | ||||
-rw-r--r-- | keyboards/wilba_tech/wt60_xt/keymaps/via/rules.mk | 1 | ||||
-rw-r--r-- | keyboards/wilba_tech/wt60_xt/readme.md | 17 | ||||
-rw-r--r-- | keyboards/wilba_tech/wt60_xt/rules.mk | 31 | ||||
-rw-r--r-- | keyboards/wilba_tech/wt60_xt/wt60_xt.c | 100 | ||||
-rw-r--r-- | keyboards/wilba_tech/wt60_xt/wt60_xt.h | 35 |
9 files changed, 455 insertions, 0 deletions
diff --git a/keyboards/wilba_tech/wt60_xt/config.h b/keyboards/wilba_tech/wt60_xt/config.h new file mode 100644 index 000000000..410245ceb --- /dev/null +++ b/keyboards/wilba_tech/wt60_xt/config.h | |||
@@ -0,0 +1,183 @@ | |||
1 | /* Copyright 2020 Jason Williams (Wilba) | ||
2 | * | ||
3 | * This program is free software: you can redistribute it and/or modify | ||
4 | * it under the terms of the GNU General Public License as published by | ||
5 | * the Free Software Foundation, either version 2 of the License, or | ||
6 | * (at your option) any later version. | ||
7 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
15 | */ | ||
16 | |||
17 | #pragma once | ||
18 | |||
19 | #include "config_common.h" | ||
20 | |||
21 | /* USB Device descriptor parameter */ | ||
22 | #define VENDOR_ID 0x6582 // wilba.tech | ||
23 | #define PRODUCT_ID 0x001C // PCB #28 | ||
24 | #define DEVICE_VER 0x0001 | ||
25 | #define MANUFACTURER wilba.tech | ||
26 | #define PRODUCT wilba.tech WT60-XT | ||
27 | #define DESCRIPTION wilba.tech WT60-XT | ||
28 | |||
29 | #define C6_AUDIO | ||
30 | #define AUDIO_CLICKY | ||
31 | |||
32 | /* key matrix size */ | ||
33 | #define MATRIX_ROWS 5 | ||
34 | #define MATRIX_COLS 16 | ||
35 | |||
36 | /* | ||
37 | * Keyboard Matrix Assignments | ||
38 | * | ||
39 | * Change this to how you wired your keyboard | ||
40 | * COLS: AVR pins used for columns, left to right | ||
41 | * ROWS: AVR pins used for rows, top to bottom | ||
42 | * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) | ||
43 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | ||
44 | * | ||
45 | */ | ||
46 | #define MATRIX_ROW_PINS { F0, E6, F4, F6, F7 } | ||
47 | #define MATRIX_COL_PINS { B7, B0, F5, D5, B1, B2, B3, D3, D2, C7, B6, B5, B4, D7, D6, D4 } | ||
48 | #define UNUSED_PINS | ||
49 | |||
50 | /* COL2ROW, ROW2COL*/ | ||
51 | #define DIODE_DIRECTION COL2ROW | ||
52 | |||
53 | // #define BACKLIGHT_PIN B7 | ||
54 | // #define BACKLIGHT_BREATHING | ||
55 | // #define BACKLIGHT_LEVELS 3 | ||
56 | |||
57 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
58 | #define DEBOUNCE 5 | ||
59 | |||
60 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | ||
61 | //#define MATRIX_HAS_GHOST | ||
62 | |||
63 | /* number of backlight levels */ | ||
64 | |||
65 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
66 | #define LOCKING_SUPPORT_ENABLE | ||
67 | /* Locking resynchronize hack */ | ||
68 | #define LOCKING_RESYNC_ENABLE | ||
69 | |||
70 | /* If defined, GRAVE_ESC will always act as ESC when CTRL is held. | ||
71 | * This is userful for the Windows task manager shortcut (ctrl+shift+esc). | ||
72 | */ | ||
73 | // #define GRAVE_ESC_CTRL_OVERRIDE | ||
74 | |||
75 | /* | ||
76 | * Force NKRO | ||
77 | * | ||
78 | * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved | ||
79 | * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the | ||
80 | * makefile for this to work.) | ||
81 | * | ||
82 | * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N) | ||
83 | * until the next keyboard reset. | ||
84 | * | ||
85 | * NKRO may prevent your keystrokes from being detected in the BIOS, but it is | ||
86 | * fully operational during normal computer usage. | ||
87 | * | ||
88 | * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N) | ||
89 | * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by | ||
90 | * bootmagic, NKRO mode will always be enabled until it is toggled again during a | ||
91 | * power-up. | ||
92 | * | ||
93 | */ | ||
94 | //#define FORCE_NKRO | ||
95 | |||
96 | /* | ||
97 | * Magic Key Options | ||
98 | * | ||
99 | * Magic keys are hotkey commands that allow control over firmware functions of | ||
100 | * the keyboard. They are best used in combination with the HID Listen program, | ||
101 | * found here: https://www.pjrc.com/teensy/hid_listen.html | ||
102 | * | ||
103 | * The options below allow the magic key functionality to be changed. This is | ||
104 | * useful if your keyboard/keypad is missing keys and you want magic key support. | ||
105 | * | ||
106 | */ | ||
107 | |||
108 | /* control how magic key switches layers */ | ||
109 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS true | ||
110 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS true | ||
111 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM false | ||
112 | |||
113 | /* override magic key keymap */ | ||
114 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS | ||
115 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS | ||
116 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM | ||
117 | //#define MAGIC_KEY_HELP1 H | ||
118 | //#define MAGIC_KEY_HELP2 SLASH | ||
119 | //#define MAGIC_KEY_DEBUG D | ||
120 | //#define MAGIC_KEY_DEBUG_MATRIX X | ||
121 | //#define MAGIC_KEY_DEBUG_KBD K | ||
122 | //#define MAGIC_KEY_DEBUG_MOUSE M | ||
123 | //#define MAGIC_KEY_VERSION V | ||
124 | //#define MAGIC_KEY_STATUS S | ||
125 | //#define MAGIC_KEY_CONSOLE C | ||
126 | //#define MAGIC_KEY_LAYER0_ALT1 ESC | ||
127 | //#define MAGIC_KEY_LAYER0_ALT2 GRAVE | ||
128 | //#define MAGIC_KEY_LAYER0 0 | ||
129 | //#define MAGIC_KEY_LAYER1 1 | ||
130 | //#define MAGIC_KEY_LAYER2 2 | ||
131 | //#define MAGIC_KEY_LAYER3 3 | ||
132 | //#define MAGIC_KEY_LAYER4 4 | ||
133 | //#define MAGIC_KEY_LAYER5 5 | ||
134 | //#define MAGIC_KEY_LAYER6 6 | ||
135 | //#define MAGIC_KEY_LAYER7 7 | ||
136 | //#define MAGIC_KEY_LAYER8 8 | ||
137 | //#define MAGIC_KEY_LAYER9 9 | ||
138 | //#define MAGIC_KEY_BOOTLOADER PAUSE | ||
139 | //#define MAGIC_KEY_LOCK CAPS | ||
140 | //#define MAGIC_KEY_EEPROM E | ||
141 | //#define MAGIC_KEY_NKRO N | ||
142 | //#define MAGIC_KEY_SLEEP_LED Z | ||
143 | |||
144 | /* | ||
145 | * Feature disable options | ||
146 | * These options are also useful to firmware size reduction. | ||
147 | */ | ||
148 | |||
149 | /* disable debug print */ | ||
150 | //#define NO_DEBUG | ||
151 | |||
152 | /* disable print */ | ||
153 | //#define NO_PRINT | ||
154 | |||
155 | /* disable action features */ | ||
156 | //#define NO_ACTION_LAYER | ||
157 | //#define NO_ACTION_TAPPING | ||
158 | //#define NO_ACTION_ONESHOT | ||
159 | //#define NO_ACTION_MACRO | ||
160 | //#define NO_ACTION_FUNCTION | ||
161 | |||
162 | /* | ||
163 | * MIDI options | ||
164 | */ | ||
165 | |||
166 | /* Prevent use of disabled MIDI features in the keymap */ | ||
167 | //#define MIDI_ENABLE_STRICT 1 | ||
168 | |||
169 | /* enable basic MIDI features: | ||
170 | - MIDI notes can be sent when in Music mode is on | ||
171 | */ | ||
172 | //#define MIDI_BASIC | ||
173 | |||
174 | /* enable advanced MIDI features: | ||
175 | - MIDI notes can be added to the keymap | ||
176 | - Octave shift and transpose | ||
177 | - Virtual sustain, portamento, and modulation wheel | ||
178 | - etc. | ||
179 | */ | ||
180 | //#define MIDI_ADVANCED | ||
181 | |||
182 | /* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */ | ||
183 | //#define MIDI_TONE_KEYCODE_OCTAVES 1 | ||
diff --git a/keyboards/wilba_tech/wt60_xt/info.json b/keyboards/wilba_tech/wt60_xt/info.json new file mode 100644 index 000000000..ed4a2ce01 --- /dev/null +++ b/keyboards/wilba_tech/wt60_xt/info.json | |||
@@ -0,0 +1,12 @@ | |||
1 | { | ||
2 | "keyboard_name": "wilba.tech WT60-XT", | ||
3 | "url": "https://wilba.tech", | ||
4 | "maintainer": "Wilba", | ||
5 | "width": 17.25, | ||
6 | "height": 5, | ||
7 | "layouts": { | ||
8 | "LAYOUT_all": { | ||
9 | "layout": [{"x":0, "y":0}, {"x":1, "y":0}, {"x":2.25, "y":0}, {"x":3.25, "y":0}, {"x":4.25, "y":0}, {"x":5.25, "y":0}, {"x":6.25, "y":0}, {"x":7.25, "y":0}, {"x":8.25, "y":0}, {"x":9.25, "y":0}, {"x":10.25, "y":0}, {"x":11.25, "y":0}, {"x":12.25, "y":0}, {"x":13.25, "y":0}, {"x":14.25, "y":0}, {"x":15.25, "y":0}, {"x":16.25, "y":0}, {"x":0, "y":1}, {"x":1, "y":1}, {"x":2.25, "y":1, "w":1.5}, {"x":3.75, "y":1}, {"x":4.75, "y":1}, {"x":5.75, "y":1}, {"x":6.75, "y":1}, {"x":7.75, "y":1}, {"x":8.75, "y":1}, {"x":9.75, "y":1}, {"x":10.75, "y":1}, {"x":11.75, "y":1}, {"x":12.75, "y":1}, {"x":13.75, "y":1}, {"x":14.75, "y":1}, {"x":15.75, "y":1, "w":1.5}, {"x":0, "y":2}, {"x":1, "y":2}, {"x":2.25, "y":2, "w":1.75}, {"x":4, "y":2}, {"x":5, "y":2}, {"x":6, "y":2}, {"x":7, "y":2}, {"x":8, "y":2}, {"x":9, "y":2}, {"x":10, "y":2}, {"x":11, "y":2}, {"x":12, "y":2}, {"x":13, "y":2}, {"x":14, "y":2}, {"x":15, "y":2, "w":2.25}, {"x":0, "y":3}, {"x":1, "y":3}, {"x":2.25, "y":3, "w":1.25}, {"x":3.5, "y":3}, {"x":4.5, "y":3}, {"x":5.5, "y":3}, {"x":6.5, "y":3}, {"x":7.5, "y":3}, {"x":8.5, "y":3}, {"x":9.5, "y":3}, {"x":10.5, "y":3}, {"x":11.5, "y":3}, {"x":12.5, "y":3}, {"x":13.5, "y":3}, {"x":14.5, "y":3, "w":1.75}, {"x":16.25, "y":3}, {"x":0, "y":4}, {"x":1, "y":4}, {"x":2.25, "y":4, "w":1.25}, {"x":3.5, "y":4, "w":1.25}, {"x":4.75, "y":4, "w":1.25}, {"x":6, "y":4, "w":6.25}, {"x":12.25, "y":4, "w":1.25}, {"x":13.5, "y":4, "w":1.25}, {"x":14.75, "y":4, "w":1.25}, {"x":16, "y":4, "w":1.25}] | ||
10 | } | ||
11 | } | ||
12 | } | ||
diff --git a/keyboards/wilba_tech/wt60_xt/keymaps/default/keymap.c b/keyboards/wilba_tech/wt60_xt/keymaps/default/keymap.c new file mode 100644 index 000000000..7373f4277 --- /dev/null +++ b/keyboards/wilba_tech/wt60_xt/keymaps/default/keymap.c | |||
@@ -0,0 +1,38 @@ | |||
1 | // Default layout for WT60-XT | ||
2 | #include QMK_KEYBOARD_H | ||
3 | |||
4 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
5 | |||
6 | // Default layer | ||
7 | [0] = LAYOUT_all( | ||
8 | KC_F1, KC_F2, KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_DEL, | ||
9 | KC_F3, KC_F4, KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, | ||
10 | KC_F5, KC_F6, 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, | ||
11 | KC_F7, KC_F8, KC_LSFT, KC_NO, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, MO(1), | ||
12 | KC_F9, KC_F10, KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RGUI, MO(1), KC_RCTL), | ||
13 | |||
14 | // Fn1 Layer | ||
15 | [1] = LAYOUT_all( | ||
16 | KC_TRNS, KC_TRNS, 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_DEL, KC_TRNS, | ||
17 | KC_TRNS, KC_TRNS, KC_CAPS, KC_TRNS, KC_UP, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_INS, KC_TRNS, KC_PSCR, KC_SLCK, KC_PAUS, KC_TRNS, | ||
18 | KC_TRNS, KC_TRNS, KC_TRNS, KC_LEFT, KC_DOWN, KC_RGHT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_HOME, KC_PGUP, KC_TRNS, | ||
19 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_VOLD, KC_VOLU, KC_MUTE, KC_END, KC_PGDN, KC_TRNS, KC_TRNS, | ||
20 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), | ||
21 | |||
22 | // Fn2 Layer | ||
23 | [2] = LAYOUT_all( | ||
24 | 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, KC_TRNS, KC_TRNS, KC_TRNS, | ||
25 | 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, KC_TRNS, KC_TRNS, | ||
26 | 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, KC_TRNS, | ||
27 | 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, KC_TRNS, KC_TRNS, | ||
28 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), | ||
29 | |||
30 | // Fn3 Layer | ||
31 | [3] = LAYOUT_all( | ||
32 | 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, KC_TRNS, KC_TRNS, KC_TRNS, | ||
33 | 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, KC_TRNS, KC_TRNS, | ||
34 | 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, KC_TRNS, | ||
35 | 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, KC_TRNS, KC_TRNS, | ||
36 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), | ||
37 | |||
38 | }; | ||
diff --git a/keyboards/wilba_tech/wt60_xt/keymaps/via/keymap.c b/keyboards/wilba_tech/wt60_xt/keymaps/via/keymap.c new file mode 100644 index 000000000..7373f4277 --- /dev/null +++ b/keyboards/wilba_tech/wt60_xt/keymaps/via/keymap.c | |||
@@ -0,0 +1,38 @@ | |||
1 | // Default layout for WT60-XT | ||
2 | #include QMK_KEYBOARD_H | ||
3 | |||
4 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
5 | |||
6 | // Default layer | ||
7 | [0] = LAYOUT_all( | ||
8 | KC_F1, KC_F2, KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_DEL, | ||
9 | KC_F3, KC_F4, KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, | ||
10 | KC_F5, KC_F6, 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, | ||
11 | KC_F7, KC_F8, KC_LSFT, KC_NO, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, MO(1), | ||
12 | KC_F9, KC_F10, KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RGUI, MO(1), KC_RCTL), | ||
13 | |||
14 | // Fn1 Layer | ||
15 | [1] = LAYOUT_all( | ||
16 | KC_TRNS, KC_TRNS, 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_DEL, KC_TRNS, | ||
17 | KC_TRNS, KC_TRNS, KC_CAPS, KC_TRNS, KC_UP, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_INS, KC_TRNS, KC_PSCR, KC_SLCK, KC_PAUS, KC_TRNS, | ||
18 | KC_TRNS, KC_TRNS, KC_TRNS, KC_LEFT, KC_DOWN, KC_RGHT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_HOME, KC_PGUP, KC_TRNS, | ||
19 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_VOLD, KC_VOLU, KC_MUTE, KC_END, KC_PGDN, KC_TRNS, KC_TRNS, | ||
20 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), | ||
21 | |||
22 | // Fn2 Layer | ||
23 | [2] = LAYOUT_all( | ||
24 | 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, KC_TRNS, KC_TRNS, KC_TRNS, | ||
25 | 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, KC_TRNS, KC_TRNS, | ||
26 | 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, KC_TRNS, | ||
27 | 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, KC_TRNS, KC_TRNS, | ||
28 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), | ||
29 | |||
30 | // Fn3 Layer | ||
31 | [3] = LAYOUT_all( | ||
32 | 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, KC_TRNS, KC_TRNS, KC_TRNS, | ||
33 | 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, KC_TRNS, KC_TRNS, | ||
34 | 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, KC_TRNS, | ||
35 | 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, KC_TRNS, KC_TRNS, | ||
36 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), | ||
37 | |||
38 | }; | ||
diff --git a/keyboards/wilba_tech/wt60_xt/keymaps/via/rules.mk b/keyboards/wilba_tech/wt60_xt/keymaps/via/rules.mk new file mode 100644 index 000000000..1e5b99807 --- /dev/null +++ b/keyboards/wilba_tech/wt60_xt/keymaps/via/rules.mk | |||
@@ -0,0 +1 @@ | |||
VIA_ENABLE = yes | |||
diff --git a/keyboards/wilba_tech/wt60_xt/readme.md b/keyboards/wilba_tech/wt60_xt/readme.md new file mode 100644 index 000000000..1b8d706c3 --- /dev/null +++ b/keyboards/wilba_tech/wt60_xt/readme.md | |||
@@ -0,0 +1,17 @@ | |||
1 | # wilba.tech WT60-XT | ||
2 | |||
3 |  | ||
4 | |||
5 | WT60-XT is a keyboard PCB supporting 60% layout with left side macro keys. [More info at wilba.tech](https://wilba.tech/) | ||
6 | |||
7 | First produced as WT60-XT JUBI for ION Keyboards JUBI. | ||
8 | |||
9 | * Keyboard Maintainer: [Wilba6582](https://github.com/Wilba6582) | ||
10 | * Hardware Supported: wilba.tech WT60-XT | ||
11 | * Hardware Availability: Custom keyboard group buys | ||
12 | |||
13 | Make example for this keyboard (after setting up your build environment): | ||
14 | |||
15 | make wilba_tech/wt60_xt:default | ||
16 | |||
17 | 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/wilba_tech/wt60_xt/rules.mk b/keyboards/wilba_tech/wt60_xt/rules.mk new file mode 100644 index 000000000..a272caf2d --- /dev/null +++ b/keyboards/wilba_tech/wt60_xt/rules.mk | |||
@@ -0,0 +1,31 @@ | |||
1 | # MCU name | ||
2 | MCU = atmega32u4 | ||
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 = atmel-dfu | ||
13 | |||
14 | # Build Options | ||
15 | # change yes to no to disable | ||
16 | # | ||
17 | BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration | ||
18 | MOUSEKEY_ENABLE = no # Mouse keys | ||
19 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
20 | CONSOLE_ENABLE = no # Console for debug | ||
21 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
22 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
23 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
24 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
25 | NKRO_ENABLE = yes # USB Nkey Rollover | ||
26 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
27 | MIDI_ENABLE = no # MIDI support | ||
28 | UNICODE_ENABLE = no # Unicode | ||
29 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
30 | AUDIO_ENABLE = yes # Audio output on port C6 | ||
31 | FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches | ||
diff --git a/keyboards/wilba_tech/wt60_xt/wt60_xt.c b/keyboards/wilba_tech/wt60_xt/wt60_xt.c new file mode 100644 index 000000000..1f4cb9698 --- /dev/null +++ b/keyboards/wilba_tech/wt60_xt/wt60_xt.c | |||
@@ -0,0 +1,100 @@ | |||
1 | /* Copyright 2020 Jason Williams (Wilba) | ||
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 "wt60_xt.h" | ||
18 | |||
19 | #ifdef AUDIO_ENABLE | ||
20 | #include "audio.h" | ||
21 | #include "song_list.h" | ||
22 | |||
23 | float tone_caps_on[][2] = SONG(CAPS_LOCK_ON_SOUND); | ||
24 | float tone_caps_off[][2] = SONG(CAPS_LOCK_OFF_SOUND); | ||
25 | float tone_numlk_on[][2] = SONG(NUM_LOCK_ON_SOUND); | ||
26 | float tone_numlk_off[][2] = SONG(NUM_LOCK_OFF_SOUND); | ||
27 | float tone_scroll_on[][2] = SONG(SCROLL_LOCK_ON_SOUND); | ||
28 | float tone_scroll_off[][2] = SONG(SCROLL_LOCK_OFF_SOUND); | ||
29 | |||
30 | #endif | ||
31 | |||
32 | // We want to enable audio clicky (i.e. compile it into firmware), | ||
33 | // but not have it "turned on" by default. | ||
34 | #ifdef AUDIO_CLICKY | ||
35 | |||
36 | #include "process_clicky.h" | ||
37 | extern audio_config_t audio_config; | ||
38 | |||
39 | void eeconfig_init_kb(void) { | ||
40 | // Reset Keyboard EEPROM value to blank, rather than to a set value | ||
41 | eeconfig_update_kb(0); | ||
42 | |||
43 | // Need to read here because this isn't done before calling eeconfig_init_kb() | ||
44 | audio_config.raw = eeconfig_read_audio(); | ||
45 | // ...and this call needs audio_config initialized. | ||
46 | clicky_off(); | ||
47 | |||
48 | eeconfig_init_user(); | ||
49 | } | ||
50 | #endif // AUDIO_CLICKY | ||
51 | |||
52 | void keyboard_pre_init_kb(void) { | ||
53 | setPinOutput(F1); | ||
54 | |||
55 | keyboard_pre_init_user(); | ||
56 | } | ||
57 | |||
58 | bool led_update_kb(led_t led_state) { | ||
59 | if (led_update_user(led_state)) { | ||
60 | writePin(F1, led_state.caps_lock); | ||
61 | } | ||
62 | |||
63 | #ifdef AUDIO_ENABLE | ||
64 | static led_t old_led_state = { .raw = 0 }; | ||
65 | |||
66 | wait_ms(10); // gets rid of tick | ||
67 | |||
68 | if (!is_playing_notes()) | ||
69 | { | ||
70 | if (led_state.caps_lock && !old_led_state.caps_lock) | ||
71 | { | ||
72 | PLAY_SONG(tone_caps_on); | ||
73 | } | ||
74 | else if (!led_state.caps_lock && old_led_state.caps_lock) | ||
75 | { | ||
76 | PLAY_SONG(tone_caps_off); | ||
77 | } | ||
78 | else if (led_state.num_lock && !old_led_state.num_lock) | ||
79 | { | ||
80 | PLAY_SONG(tone_numlk_on); | ||
81 | } | ||
82 | else if (!led_state.num_lock && old_led_state.num_lock) | ||
83 | { | ||
84 | PLAY_SONG(tone_numlk_off); | ||
85 | } | ||
86 | else if (led_state.scroll_lock && !old_led_state.scroll_lock) | ||
87 | { | ||
88 | PLAY_SONG(tone_scroll_on); | ||
89 | } | ||
90 | else if (!led_state.scroll_lock && old_led_state.scroll_lock) | ||
91 | { | ||
92 | PLAY_SONG(tone_scroll_off); | ||
93 | } | ||
94 | } | ||
95 | |||
96 | old_led_state = led_state; | ||
97 | #endif // AUDIO_ENABLE | ||
98 | |||
99 | return true; | ||
100 | } | ||
diff --git a/keyboards/wilba_tech/wt60_xt/wt60_xt.h b/keyboards/wilba_tech/wt60_xt/wt60_xt.h new file mode 100644 index 000000000..7b1f8ba35 --- /dev/null +++ b/keyboards/wilba_tech/wt60_xt/wt60_xt.h | |||
@@ -0,0 +1,35 @@ | |||
1 | /* Copyright 2020 Jason Williams (Wilba) | ||
2 | * | ||
3 | * This program is free software: you can redistribute it and/or modify | ||
4 | * it under the terms of the GNU General Public License as published by | ||
5 | * the Free Software Foundation, either version 2 of the License, or | ||
6 | * (at your option) any later version. | ||
7 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
15 | */ | ||
16 | |||
17 | #pragma once | ||
18 | |||
19 | #include "quantum.h" | ||
20 | |||
21 | #define ____ KC_NO | ||
22 | |||
23 | #define LAYOUT_all( \ | ||
24 | K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014, K015, K215, \ | ||
25 | K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, K115, \ | ||
26 | K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214, \ | ||
27 | K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313, K314, K315, \ | ||
28 | K400, K401, K402, K403, K404, K408, K412, K413, K414, K415 \ | ||
29 | ) { \ | ||
30 | { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014, K015 }, \ | ||
31 | { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, K115 }, \ | ||
32 | { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214, K215 }, \ | ||
33 | { K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313, K314, K315 }, \ | ||
34 | { K400, K401, K402, K403, K404, ____, ____, ____, K408, ____, ____, ____, K412, K413, K414, K415 } \ | ||
35 | } | ||