diff options
| author | Wilba6582 <Wilba6582@users.noreply.github.com> | 2018-09-28 00:40:44 +1000 |
|---|---|---|
| committer | Jack Humbert <jack.humb@gmail.com> | 2018-09-27 10:40:44 -0400 |
| commit | 13e166d9c42845e2622605e94d4a0c38fa5443a0 (patch) | |
| tree | 9cde88ff3efd79a20be1e52ad7ffaf5c3ee7f848 /keyboards/wilba_tech/wt60_a | |
| parent | f70f45ee677a2a39a759052a356e0c5d82e25424 (diff) | |
| download | qmk_firmware-13e166d9c42845e2622605e94d4a0c38fa5443a0.tar.gz qmk_firmware-13e166d9c42845e2622605e94d4a0c38fa5443a0.zip | |
RAMA U80-A, wilba.tech WT60-A, WT65-A, WT80-A, IS31FL3736 driver (#3925)
* Initial commit of RAMA U80-A
* Initial commit of RAMA U80-A
* Moved IS31FL3736 driver, minor cleanups
* Superficial stuff
* Review changes
* Refactored to use common code.
Diffstat (limited to 'keyboards/wilba_tech/wt60_a')
| -rw-r--r-- | keyboards/wilba_tech/wt60_a/config.h | 187 | ||||
| -rw-r--r-- | keyboards/wilba_tech/wt60_a/info.json | 16 | ||||
| -rw-r--r-- | keyboards/wilba_tech/wt60_a/keymaps/ansi_split_bs_rshift/keymap.c | 38 | ||||
| -rw-r--r-- | keyboards/wilba_tech/wt60_a/keymaps/default/keymap.c | 38 | ||||
| -rw-r--r-- | keyboards/wilba_tech/wt60_a/readme.md | 15 | ||||
| -rw-r--r-- | keyboards/wilba_tech/wt60_a/rules.mk | 68 | ||||
| -rw-r--r-- | keyboards/wilba_tech/wt60_a/wt60_a.c | 17 | ||||
| -rw-r--r-- | keyboards/wilba_tech/wt60_a/wt60_a.h | 52 |
8 files changed, 431 insertions, 0 deletions
diff --git a/keyboards/wilba_tech/wt60_a/config.h b/keyboards/wilba_tech/wt60_a/config.h new file mode 100644 index 000000000..95f4c786e --- /dev/null +++ b/keyboards/wilba_tech/wt60_a/config.h | |||
| @@ -0,0 +1,187 @@ | |||
| 1 | /* Copyright 2018 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 0x060A // 60-A | ||
| 24 | #define DEVICE_VER 0x0001 | ||
| 25 | #define MANUFACTURER wilba.tech | ||
| 26 | #define PRODUCT wilba.tech WT60-A | ||
| 27 | #define DESCRIPTION wilba.tech WT60-A | ||
| 28 | |||
| 29 | /* key matrix size */ | ||
| 30 | #define MATRIX_ROWS 5 | ||
| 31 | #define MATRIX_COLS 14 | ||
| 32 | |||
| 33 | /* | ||
| 34 | * Keyboard Matrix Assignments | ||
| 35 | * | ||
| 36 | * Change this to how you wired your keyboard | ||
| 37 | * COLS: AVR pins used for columns, left to right | ||
| 38 | * ROWS: AVR pins used for rows, top to bottom | ||
| 39 | * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) | ||
| 40 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | ||
| 41 | * | ||
| 42 | */ | ||
| 43 | #define MATRIX_ROW_PINS { F0, E6, F4, F6, F7 } | ||
| 44 | #define MATRIX_COL_PINS { F5, D5, B1, B2, B3, D3, D2, C7, C6, B6, B5, B4, D7, D6 } | ||
| 45 | #define UNUSED_PINS | ||
| 46 | |||
| 47 | /* COL2ROW, ROW2COL, or CUSTOM_MATRIX */ | ||
| 48 | #define DIODE_DIRECTION ROW2COL | ||
| 49 | |||
| 50 | // #define BACKLIGHT_PIN B7 | ||
| 51 | // #define BACKLIGHT_BREATHING | ||
| 52 | // #define BACKLIGHT_LEVELS 3 | ||
| 53 | |||
| 54 | |||
| 55 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 56 | #define DEBOUNCING_DELAY 5 | ||
| 57 | |||
| 58 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | ||
| 59 | //#define MATRIX_HAS_GHOST | ||
| 60 | |||
| 61 | /* number of backlight levels */ | ||
| 62 | |||
| 63 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 64 | #define LOCKING_SUPPORT_ENABLE | ||
| 65 | /* Locking resynchronize hack */ | ||
| 66 | #define LOCKING_RESYNC_ENABLE | ||
| 67 | |||
| 68 | /* If defined, GRAVE_ESC will always act as ESC when CTRL is held. | ||
| 69 | * This is userful for the Windows task manager shortcut (ctrl+shift+esc). | ||
| 70 | */ | ||
| 71 | // #define GRAVE_ESC_CTRL_OVERRIDE | ||
| 72 | |||
| 73 | /* | ||
| 74 | * Force NKRO | ||
| 75 | * | ||
| 76 | * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved | ||
| 77 | * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the | ||
| 78 | * makefile for this to work.) | ||
| 79 | * | ||
| 80 | * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N) | ||
| 81 | * until the next keyboard reset. | ||
| 82 | * | ||
| 83 | * NKRO may prevent your keystrokes from being detected in the BIOS, but it is | ||
| 84 | * fully operational during normal computer usage. | ||
| 85 | * | ||
| 86 | * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N) | ||
| 87 | * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by | ||
| 88 | * bootmagic, NKRO mode will always be enabled until it is toggled again during a | ||
| 89 | * power-up. | ||
| 90 | * | ||
| 91 | */ | ||
| 92 | //#define FORCE_NKRO | ||
| 93 | |||
| 94 | /* | ||
| 95 | * Magic Key Options | ||
| 96 | * | ||
| 97 | * Magic keys are hotkey commands that allow control over firmware functions of | ||
| 98 | * the keyboard. They are best used in combination with the HID Listen program, | ||
| 99 | * found here: https://www.pjrc.com/teensy/hid_listen.html | ||
| 100 | * | ||
| 101 | * The options below allow the magic key functionality to be changed. This is | ||
| 102 | * useful if your keyboard/keypad is missing keys and you want magic key support. | ||
| 103 | * | ||
| 104 | */ | ||
| 105 | |||
| 106 | /* key combination for magic key command */ | ||
| 107 | #define IS_COMMAND() ( \ | ||
| 108 | keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \ | ||
| 109 | ) | ||
| 110 | |||
| 111 | /* control how magic key switches layers */ | ||
| 112 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS true | ||
| 113 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS true | ||
| 114 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM false | ||
| 115 | |||
| 116 | /* override magic key keymap */ | ||
| 117 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS | ||
| 118 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS | ||
| 119 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM | ||
| 120 | //#define MAGIC_KEY_HELP1 H | ||
| 121 | //#define MAGIC_KEY_HELP2 SLASH | ||
| 122 | //#define MAGIC_KEY_DEBUG D | ||
| 123 | //#define MAGIC_KEY_DEBUG_MATRIX X | ||
| 124 | //#define MAGIC_KEY_DEBUG_KBD K | ||
| 125 | //#define MAGIC_KEY_DEBUG_MOUSE M | ||
| 126 | //#define MAGIC_KEY_VERSION V | ||
| 127 | //#define MAGIC_KEY_STATUS S | ||
| 128 | //#define MAGIC_KEY_CONSOLE C | ||
| 129 | //#define MAGIC_KEY_LAYER0_ALT1 ESC | ||
| 130 | //#define MAGIC_KEY_LAYER0_ALT2 GRAVE | ||
| 131 | //#define MAGIC_KEY_LAYER0 0 | ||
| 132 | //#define MAGIC_KEY_LAYER1 1 | ||
| 133 | //#define MAGIC_KEY_LAYER2 2 | ||
| 134 | //#define MAGIC_KEY_LAYER3 3 | ||
| 135 | //#define MAGIC_KEY_LAYER4 4 | ||
| 136 | //#define MAGIC_KEY_LAYER5 5 | ||
| 137 | //#define MAGIC_KEY_LAYER6 6 | ||
| 138 | //#define MAGIC_KEY_LAYER7 7 | ||
| 139 | //#define MAGIC_KEY_LAYER8 8 | ||
| 140 | //#define MAGIC_KEY_LAYER9 9 | ||
| 141 | //#define MAGIC_KEY_BOOTLOADER PAUSE | ||
| 142 | //#define MAGIC_KEY_LOCK CAPS | ||
| 143 | //#define MAGIC_KEY_EEPROM E | ||
| 144 | //#define MAGIC_KEY_NKRO N | ||
| 145 | //#define MAGIC_KEY_SLEEP_LED Z | ||
| 146 | |||
| 147 | /* | ||
| 148 | * Feature disable options | ||
| 149 | * These options are also useful to firmware size reduction. | ||
| 150 | */ | ||
| 151 | |||
| 152 | /* disable debug print */ | ||
| 153 | //#define NO_DEBUG | ||
| 154 | |||
| 155 | /* disable print */ | ||
| 156 | //#define NO_PRINT | ||
| 157 | |||
| 158 | /* disable action features */ | ||
| 159 | //#define NO_ACTION_LAYER | ||
| 160 | //#define NO_ACTION_TAPPING | ||
| 161 | //#define NO_ACTION_ONESHOT | ||
| 162 | //#define NO_ACTION_MACRO | ||
| 163 | //#define NO_ACTION_FUNCTION | ||
| 164 | |||
| 165 | /* | ||
| 166 | * MIDI options | ||
| 167 | */ | ||
| 168 | |||
| 169 | /* Prevent use of disabled MIDI features in the keymap */ | ||
| 170 | //#define MIDI_ENABLE_STRICT 1 | ||
| 171 | |||
| 172 | /* enable basic MIDI features: | ||
| 173 | - MIDI notes can be sent when in Music mode is on | ||
| 174 | */ | ||
| 175 | //#define MIDI_BASIC | ||
| 176 | |||
| 177 | /* enable advanced MIDI features: | ||
| 178 | - MIDI notes can be added to the keymap | ||
| 179 | - Octave shift and transpose | ||
| 180 | - Virtual sustain, portamento, and modulation wheel | ||
| 181 | - etc. | ||
| 182 | */ | ||
| 183 | //#define MIDI_ADVANCED | ||
| 184 | |||
| 185 | /* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */ | ||
| 186 | //#define MIDI_TONE_KEYCODE_OCTAVES 1 | ||
| 187 | |||
diff --git a/keyboards/wilba_tech/wt60_a/info.json b/keyboards/wilba_tech/wt60_a/info.json new file mode 100644 index 000000000..3b3614a8b --- /dev/null +++ b/keyboards/wilba_tech/wt60_a/info.json | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "wilba.tech WT60-A", | ||
| 3 | "url": "https://wilba.tech", | ||
| 4 | "maintainer": "Wilba", | ||
| 5 | "bootloader": "atmel-dfu", | ||
| 6 | "width": 15, | ||
| 7 | "height": 5, | ||
| 8 | "layouts": { | ||
| 9 | "LAYOUT_60_ansi": { | ||
| 10 | "layout": [{"label":"~", "x":0, "y":0}, {"label":"!", "x":1, "y":0}, {"label":"@", "x":2, "y":0}, {"label":"#", "x":3, "y":0}, {"label":"$", "x":4, "y":0}, {"label":"%", "x":5, "y":0}, {"label":"^", "x":6, "y":0}, {"label":"&", "x":7, "y":0}, {"label":"*", "x":8, "y":0}, {"label":"(", "x":9, "y":0}, {"label":")", "x":10, "y":0}, {"label":"_", "x":11, "y":0}, {"label":"+", "x":12, "y":0}, {"label":"Backspace", "x":13, "y":0, "w":2}, {"label":"Tab", "x":0, "y":1, "w":1.5}, {"label":"Q", "x":1.5, "y":1}, {"label":"W", "x":2.5, "y":1}, {"label":"E", "x":3.5, "y":1}, {"label":"R", "x":4.5, "y":1}, {"label":"T", "x":5.5, "y":1}, {"label":"Y", "x":6.5, "y":1}, {"label":"U", "x":7.5, "y":1}, {"label":"I", "x":8.5, "y":1}, {"label":"O", "x":9.5, "y":1}, {"label":"P", "x":10.5, "y":1}, {"label":"{", "x":11.5, "y":1}, {"label":"}", "x":12.5, "y":1}, {"label":"|", "x":13.5, "y":1, "w":1.5}, {"label":"Caps Lock", "x":0, "y":2, "w":1.75}, {"label":"A", "x":1.75, "y":2}, {"label":"S", "x":2.75, "y":2}, {"label":"D", "x":3.75, "y":2}, {"label":"F", "x":4.75, "y":2}, {"label":"G", "x":5.75, "y":2}, {"label":"H", "x":6.75, "y":2}, {"label":"J", "x":7.75, "y":2}, {"label":"K", "x":8.75, "y":2}, {"label":"L", "x":9.75, "y":2}, {"label":":", "x":10.75, "y":2}, {"label":"\"", "x":11.75, "y":2}, {"label":"Enter", "x":12.75, "y":2, "w":2.25}, {"label":"Shift", "x":0, "y":3, "w":2.25}, {"label":"Z", "x":2.25, "y":3}, {"label":"X", "x":3.25, "y":3}, {"label":"C", "x":4.25, "y":3}, {"label":"V", "x":5.25, "y":3}, {"label":"B", "x":6.25, "y":3}, {"label":"N", "x":7.25, "y":3}, {"label":"M", "x":8.25, "y":3}, {"label":"<", "x":9.25, "y":3}, {"label":">", "x":10.25, "y":3}, {"label":"?", "x":11.25, "y":3}, {"label":"Shift", "x":12.25, "y":3, "w":2.75}, {"label":"Ctrl", "x":0, "y":4, "w":1.25}, {"label":"Win", "x":1.25, "y":4, "w":1.25}, {"label":"Alt", "x":2.5, "y":4, "w":1.25}, {"x":3.75, "y":4, "w":6.25}, {"label":"Alt", "x":10, "y":4, "w":1.25}, {"label":"Win", "x":11.25, "y":4, "w":1.25}, {"label":"Menu", "x":12.5, "y":4, "w":1.25}, {"label":"Ctrl", "x":13.75, "y":4, "w":1.25}] | ||
| 11 | }, | ||
| 12 | "LAYOUT_60_ansi_split_bs_rshift": { | ||
| 13 | "layout": [{"label":"~", "x":0, "y":0}, {"label":"!", "x":1, "y":0}, {"label":"@", "x":2, "y":0}, {"label":"#", "x":3, "y":0}, {"label":"$", "x":4, "y":0}, {"label":"%", "x":5, "y":0}, {"label":"^", "x":6, "y":0}, {"label":"&", "x":7, "y":0}, {"label":"*", "x":8, "y":0}, {"label":"(", "x":9, "y":0}, {"label":")", "x":10, "y":0}, {"label":"_", "x":11, "y":0}, {"label":"+", "x":12, "y":0}, {"x":13, "y":0}, {"x":14, "y":0}, {"label":"Tab", "x":0, "y":1, "w":1.5}, {"label":"Q", "x":1.5, "y":1}, {"label":"W", "x":2.5, "y":1}, {"label":"E", "x":3.5, "y":1}, {"label":"R", "x":4.5, "y":1}, {"label":"T", "x":5.5, "y":1}, {"label":"Y", "x":6.5, "y":1}, {"label":"U", "x":7.5, "y":1}, {"label":"I", "x":8.5, "y":1}, {"label":"O", "x":9.5, "y":1}, {"label":"P", "x":10.5, "y":1}, {"label":"{", "x":11.5, "y":1}, {"label":"}", "x":12.5, "y":1}, {"label":"|", "x":13.5, "y":1, "w":1.5}, {"label":"Caps Lock", "x":0, "y":2, "w":1.75}, {"label":"A", "x":1.75, "y":2}, {"label":"S", "x":2.75, "y":2}, {"label":"D", "x":3.75, "y":2}, {"label":"F", "x":4.75, "y":2}, {"label":"G", "x":5.75, "y":2}, {"label":"H", "x":6.75, "y":2}, {"label":"J", "x":7.75, "y":2}, {"label":"K", "x":8.75, "y":2}, {"label":"L", "x":9.75, "y":2}, {"label":":", "x":10.75, "y":2}, {"label":"\"", "x":11.75, "y":2}, {"label":"Enter", "x":12.75, "y":2, "w":2.25}, {"label":"Shift", "x":0, "y":3, "w":2.25}, {"label":"Z", "x":2.25, "y":3}, {"label":"X", "x":3.25, "y":3}, {"label":"C", "x":4.25, "y":3}, {"label":"V", "x":5.25, "y":3}, {"label":"B", "x":6.25, "y":3}, {"label":"N", "x":7.25, "y":3}, {"label":"M", "x":8.25, "y":3}, {"label":"<", "x":9.25, "y":3}, {"label":">", "x":10.25, "y":3}, {"label":"?", "x":11.25, "y":3}, {"label":"Shift", "x":12.25, "y":3, "w":1.75}, {"x":14, "y":3}, {"label":"Ctrl", "x":0, "y":4, "w":1.25}, {"label":"Win", "x":1.25, "y":4, "w":1.25}, {"label":"Alt", "x":2.5, "y":4, "w":1.25}, {"x":3.75, "y":4, "w":6.25}, {"label":"Alt", "x":10, "y":4, "w":1.25}, {"label":"Win", "x":11.25, "y":4, "w":1.25}, {"label":"Menu", "x":12.5, "y":4, "w":1.25}, {"label":"Ctrl", "x":13.75, "y":4, "w":1.25}] | ||
| 14 | } | ||
| 15 | } | ||
| 16 | } \ No newline at end of file | ||
diff --git a/keyboards/wilba_tech/wt60_a/keymaps/ansi_split_bs_rshift/keymap.c b/keyboards/wilba_tech/wt60_a/keymaps/ansi_split_bs_rshift/keymap.c new file mode 100644 index 000000000..95e01fc2c --- /dev/null +++ b/keyboards/wilba_tech/wt60_a/keymaps/ansi_split_bs_rshift/keymap.c | |||
| @@ -0,0 +1,38 @@ | |||
| 1 | // ANSI split backspace/right shift layout for WT60-A | ||
| 2 | #include QMK_KEYBOARD_H | ||
| 3 | |||
| 4 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 5 | |||
| 6 | // Default layer | ||
| 7 | [0] = LAYOUT_60_ansi_split_bs_rshift( | ||
| 8 | 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_BSLS, KC_DEL, | ||
| 9 | 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, | ||
| 10 | 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_LSFT, 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_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RGUI, KC_APP, KC_RCTL), | ||
| 13 | |||
| 14 | // Fn1 Layer | ||
| 15 | [1] = LAYOUT_60_ansi_split_bs_rshift( | ||
| 16 | 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_INS, KC_DEL, | ||
| 17 | KC_CAPS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_PSCR, KC_SLCK, KC_PAUS, KC_UP, KC_TRNS, KC_TRNS, | ||
| 18 | KC_TRNS, KC_VOLD, KC_VOLU, KC_MUTE, KC_EJCT, KC_TRNS, KC_PAST, KC_PSLS, KC_HOME, KC_PGUP, KC_LEFT, KC_RGHT, KC_TRNS, | ||
| 19 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_PPLS, KC_PMNS, KC_END, KC_PGDN, KC_DOWN, KC_TRNS, KC_TRNS, | ||
| 20 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), | ||
| 21 | |||
| 22 | // Fn2 Layer | ||
| 23 | [2] = LAYOUT_60_ansi_split_bs_rshift( | ||
| 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, | ||
| 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, | ||
| 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, | ||
| 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, | ||
| 28 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), | ||
| 29 | |||
| 30 | // Fn3 Layer | ||
| 31 | [3] = LAYOUT_60_ansi_split_bs_rshift( | ||
| 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, | ||
| 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, | ||
| 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, | ||
| 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, | ||
| 36 | 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_a/keymaps/default/keymap.c b/keyboards/wilba_tech/wt60_a/keymaps/default/keymap.c new file mode 100644 index 000000000..566736f5e --- /dev/null +++ b/keyboards/wilba_tech/wt60_a/keymaps/default/keymap.c | |||
| @@ -0,0 +1,38 @@ | |||
| 1 | // Default layout for WT60-A | ||
| 2 | #include QMK_KEYBOARD_H | ||
| 3 | |||
| 4 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 5 | |||
| 6 | // Default layer | ||
| 7 | [0] = LAYOUT_60_ansi( | ||
| 8 | 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, | ||
| 9 | 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_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_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, | ||
| 12 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RGUI, MO(1), KC_RCTL), | ||
| 13 | |||
| 14 | // Fn1 Layer | ||
| 15 | [1] = LAYOUT_60_ansi( | ||
| 16 | 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 , | ||
| 17 | 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_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_VOLD, KC_VOLU, KC_MUTE, KC_END, KC_PGDN, KC_TRNS, | ||
| 20 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), | ||
| 21 | |||
| 22 | // Fn2 Layer | ||
| 23 | [2] = LAYOUT_60_ansi( | ||
| 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, | ||
| 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, | ||
| 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, | ||
| 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, | ||
| 28 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), | ||
| 29 | |||
| 30 | // Fn3 Layer | ||
| 31 | [3] = LAYOUT_60_ansi( | ||
| 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, | ||
| 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, | ||
| 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, | ||
| 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, | ||
| 36 | 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_a/readme.md b/keyboards/wilba_tech/wt60_a/readme.md new file mode 100644 index 000000000..d7a73165d --- /dev/null +++ b/keyboards/wilba_tech/wt60_a/readme.md | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | # WILBA.TECH WT60-A | ||
| 2 | |||
| 3 |  | ||
| 4 | |||
| 5 | WT60-A is a keyboard PCB supporting 60% layout. [More info at wilba.tech](https://wilba.tech/) | ||
| 6 | |||
| 7 | Keyboard Maintainer: [Wilba6582](https://github.com/Wilba6582) | ||
| 8 | Hardware Supported: WILBA.TECH WT65-A | ||
| 9 | Hardware Availability: Custom keyboard group buys | ||
| 10 | |||
| 11 | Make example for this keyboard (after setting up your build environment): | ||
| 12 | |||
| 13 | make wilba_tech/wt60_a:default | ||
| 14 | |||
| 15 | 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). \ No newline at end of file | ||
diff --git a/keyboards/wilba_tech/wt60_a/rules.mk b/keyboards/wilba_tech/wt60_a/rules.mk new file mode 100644 index 000000000..99224c247 --- /dev/null +++ b/keyboards/wilba_tech/wt60_a/rules.mk | |||
| @@ -0,0 +1,68 @@ | |||
| 1 | # project specific files | ||
| 2 | SRC = drivers/issi/is31fl3736.c \ | ||
| 3 | drivers/avr/i2c_master.c \ | ||
| 4 | keyboards/wilba_tech/wt_mono_backlight.c \ | ||
| 5 | keyboards/wilba_tech/wt_main.c | ||
| 6 | |||
| 7 | # MCU name | ||
| 8 | MCU = atmega32u4 | ||
| 9 | |||
| 10 | # Processor frequency. | ||
| 11 | # This will define a symbol, F_CPU, in all source code files equal to the | ||
| 12 | # processor frequency in Hz. You can then use this symbol in your source code to | ||
| 13 | # calculate timings. Do NOT tack on a 'UL' at the end, this will be done | ||
| 14 | # automatically to create a 32-bit value in your source code. | ||
| 15 | # | ||
| 16 | # This will be an integer division of F_USB below, as it is sourced by | ||
| 17 | # F_USB after it has run through any CPU prescalers. Note that this value | ||
| 18 | # does not *change* the processor frequency - it should merely be updated to | ||
| 19 | # reflect the processor speed set externally so that the code can use accurate | ||
| 20 | # software delays. | ||
| 21 | F_CPU = 16000000 | ||
| 22 | |||
| 23 | |||
| 24 | # | ||
| 25 | # LUFA specific | ||
| 26 | # | ||
| 27 | # Target architecture (see library "Board Types" documentation). | ||
| 28 | ARCH = AVR8 | ||
| 29 | |||
| 30 | # Input clock frequency. | ||
| 31 | # This will define a symbol, F_USB, in all source code files equal to the | ||
| 32 | # input clock frequency (before any prescaling is performed) in Hz. This value may | ||
| 33 | # differ from F_CPU if prescaling is used on the latter, and is required as the | ||
| 34 | # raw input clock is fed directly to the PLL sections of the AVR for high speed | ||
| 35 | # clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL' | ||
| 36 | # at the end, this will be done automatically to create a 32-bit value in your | ||
| 37 | # source code. | ||
| 38 | # | ||
| 39 | # If no clock division is performed on the input clock inside the AVR (via the | ||
| 40 | # CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU. | ||
| 41 | F_USB = $(F_CPU) | ||
| 42 | |||
| 43 | # Interrupt driven control endpoint task(+60) | ||
| 44 | OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT | ||
| 45 | |||
| 46 | |||
| 47 | # Boot Section | ||
| 48 | BOOTLOADER = atmel-dfu | ||
| 49 | |||
| 50 | |||
| 51 | # Build Options | ||
| 52 | # change yes to no to disable | ||
| 53 | # | ||
| 54 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000) | ||
| 55 | MOUSEKEY_ENABLE = yes # Mouse keys(+4700) | ||
| 56 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | ||
| 57 | CONSOLE_ENABLE = yes # Console for debug(+400) | ||
| 58 | COMMAND_ENABLE = yes # Commands for debug and configuration | ||
| 59 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 60 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 61 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 62 | NKRO_ENABLE = no # USB Nkey Rollover | ||
| 63 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality on B7 by default | ||
| 64 | MIDI_ENABLE = no # MIDI support (+2400 to 4200, depending on config) | ||
| 65 | UNICODE_ENABLE = no # Unicode | ||
| 66 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
| 67 | AUDIO_ENABLE = no # Audio output on port C6 | ||
| 68 | FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches | ||
diff --git a/keyboards/wilba_tech/wt60_a/wt60_a.c b/keyboards/wilba_tech/wt60_a/wt60_a.c new file mode 100644 index 000000000..ccff6d62c --- /dev/null +++ b/keyboards/wilba_tech/wt60_a/wt60_a.c | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | /* Copyright 2018 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 | // Nothing to see here, move along... ;-) | ||
diff --git a/keyboards/wilba_tech/wt60_a/wt60_a.h b/keyboards/wilba_tech/wt60_a/wt60_a.h new file mode 100644 index 000000000..8ac8d9216 --- /dev/null +++ b/keyboards/wilba_tech/wt60_a/wt60_a.h | |||
| @@ -0,0 +1,52 @@ | |||
| 1 | /* Copyright 2018 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_60_ansi_split_bs_rshift( \ | ||
| 24 | K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K213, \ | ||
| 25 | K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, \ | ||
| 26 | K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, \ | ||
| 27 | K300, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313, \ | ||
| 28 | K400, K401, K402, K406, K410, K411, K412, K413 \ | ||
| 29 | ) { \ | ||
| 30 | { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013 }, \ | ||
| 31 | { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113 }, \ | ||
| 32 | { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213 }, \ | ||
| 33 | { K300, ____, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313 }, \ | ||
| 34 | { K400, K401, K402, ____, ____, ____, K406, ____, ____, ____, K410, K411, K412, K413 } \ | ||
| 35 | } | ||
| 36 | |||
| 37 | #define LAYOUT_60_ansi( \ | ||
| 38 | K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, \ | ||
| 39 | K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, \ | ||
| 40 | K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, \ | ||
| 41 | K300, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, \ | ||
| 42 | K400, K401, K402, K406, K410, K411, K412, K413 \ | ||
| 43 | ) { \ | ||
| 44 | { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013 }, \ | ||
| 45 | { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113 }, \ | ||
| 46 | { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, ____ }, \ | ||
| 47 | { K300, ____, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, ____ }, \ | ||
| 48 | { K400, K401, K402, ____, ____, ____, K406, ____, ____, ____, K410, K411, K412, K413 } \ | ||
| 49 | } | ||
| 50 | |||
| 51 | |||
| 52 | |||
