diff options
| -rw-r--r-- | keyboards/wsk/gothic70/config.h | 46 | ||||
| -rw-r--r-- | keyboards/wsk/gothic70/gothic70.c | 1 | ||||
| -rw-r--r-- | keyboards/wsk/gothic70/gothic70.h | 41 | ||||
| -rw-r--r-- | keyboards/wsk/gothic70/info.json | 12 | ||||
| -rw-r--r-- | keyboards/wsk/gothic70/keymaps/default/keymap.c | 69 | ||||
| -rw-r--r-- | keyboards/wsk/gothic70/keymaps/default/rules.mk | 1 | ||||
| -rw-r--r-- | keyboards/wsk/gothic70/readme.md | 15 | ||||
| -rw-r--r-- | keyboards/wsk/gothic70/rules.mk | 32 |
8 files changed, 217 insertions, 0 deletions
diff --git a/keyboards/wsk/gothic70/config.h b/keyboards/wsk/gothic70/config.h new file mode 100644 index 000000000..98e70e615 --- /dev/null +++ b/keyboards/wsk/gothic70/config.h | |||
| @@ -0,0 +1,46 @@ | |||
| 1 | #pragma once | ||
| 2 | |||
| 3 | #include "config_common.h" | ||
| 4 | |||
| 5 | /* USB Device descriptor parameter */ | ||
| 6 | #define VENDOR_ID 0xFEED | ||
| 7 | #define PRODUCT_ID 0x63CC | ||
| 8 | #define DEVICE_VER 0x0001 | ||
| 9 | #define MANUFACTURER Worldspawn00 | ||
| 10 | #define PRODUCT Gothic70 | ||
| 11 | #define DESCRIPTION Expanded Ergo Keyboard | ||
| 12 | |||
| 13 | /* key matrix size */ | ||
| 14 | #define MATRIX_ROWS 5 | ||
| 15 | #define MATRIX_COLS 15 | ||
| 16 | |||
| 17 | /* key matrix pins */ | ||
| 18 | |||
| 19 | #define MATRIX_ROW_PINS { D0, D1, D2, D3, D5 } | ||
| 20 | #define MATRIX_COL_PINS { F0, F1, E6, C7, C6, B6, D4, B1, B0, B7, B5, B4, D7, D6, B3 } | ||
| 21 | #define UNUSED_PINS | ||
| 22 | |||
| 23 | /* COL2ROW, ROW2COL*/ | ||
| 24 | #define DIODE_DIRECTION COL2ROW | ||
| 25 | |||
| 26 | #define RGB_DI_PIN F4 | ||
| 27 | #ifdef RGB_DI_PIN | ||
| 28 | #define RGBLIGHT_ANIMATIONS | ||
| 29 | #define RGBLED_NUM 7 | ||
| 30 | #define RGBLIGHT_HUE_STEP 8 | ||
| 31 | #define RGBLIGHT_SAT_STEP 8 | ||
| 32 | #define RGBLIGHT_VAL_STEP 8 | ||
| 33 | #endif | ||
| 34 | |||
| 35 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 36 | #define DEBOUNCE 5 | ||
| 37 | |||
| 38 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | ||
| 39 | //#define MATRIX_HAS_GHOST | ||
| 40 | |||
| 41 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 42 | #define LOCKING_SUPPORT_ENABLE | ||
| 43 | |||
| 44 | /* Locking resynchronize hack */ | ||
| 45 | #define LOCKING_RESYNC_ENABLE | ||
| 46 | |||
diff --git a/keyboards/wsk/gothic70/gothic70.c b/keyboards/wsk/gothic70/gothic70.c new file mode 100644 index 000000000..dde147117 --- /dev/null +++ b/keyboards/wsk/gothic70/gothic70.c | |||
| @@ -0,0 +1 @@ | |||
| #include "gothic70.h" | |||
diff --git a/keyboards/wsk/gothic70/gothic70.h b/keyboards/wsk/gothic70/gothic70.h new file mode 100644 index 000000000..532eca880 --- /dev/null +++ b/keyboards/wsk/gothic70/gothic70.h | |||
| @@ -0,0 +1,41 @@ | |||
| 1 | /* Copyright 2019 Fate | ||
| 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 | /* This a shortcut to help you visually see your layout. | ||
| 21 | * | ||
| 22 | * The first section contains all of the arguments representing the physical | ||
| 23 | * layout of the board and position of the keys. | ||
| 24 | * | ||
| 25 | * The second converts the arguments into a two-dimensional array which | ||
| 26 | * represents the switch matrix. | ||
| 27 | */ | ||
| 28 | #define LAYOUT( \ | ||
| 29 | k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0A, k0B, k0C, k0D, k0E, k1E, \ | ||
| 30 | k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1A, k1B, k1C, k1D, k2E, \ | ||
| 31 | k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2A, k2B, k2C, k3E, \ | ||
| 32 | k30, k31, k32, k33, k34, k35, k46, k36, k37, k38, k39, k3A, k3B, k3D, \ | ||
| 33 | k40, k41, k42, k44, k45, k47, k49, k4A, k4C, k4D, k4E \ | ||
| 34 | ) \ | ||
| 35 | { \ | ||
| 36 | { k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0A, k0B, k0C, k0D, k0E }, \ | ||
| 37 | { k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1A, k1B, k1C, k1D, k1E }, \ | ||
| 38 | { k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2A, k2B, k2C, KC_NO, k2E }, \ | ||
| 39 | { k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3A, k3B, KC_NO, k3D, k3E }, \ | ||
| 40 | { k40, k41, k42, KC_NO, k44, k45, k46, k47, KC_NO, k49, k4A, KC_NO, k4C, k4D, k4E } \ | ||
| 41 | } | ||
diff --git a/keyboards/wsk/gothic70/info.json b/keyboards/wsk/gothic70/info.json new file mode 100644 index 000000000..230f0ecdd --- /dev/null +++ b/keyboards/wsk/gothic70/info.json | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "Gothic70", | ||
| 3 | "url": "https://qmk.fm/keyboards", | ||
| 4 | "maintainer": "worldspawn00", | ||
| 5 | "width": 18, | ||
| 6 | "height": 5.25, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT": { | ||
| 9 | "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":8.75, "y":0}, {"label":"*", "x":9.75, "y":0}, {"label":"(", "x":10.75, "y":0}, {"label":")", "x":11.75, "y":0}, {"label":"_", "x":12.75, "y":0}, {"label":"+", "x":13.75, "y":0}, {"label":"BS", "x":14.75, "y":0}, {"x":15.75, "y":0}, {"x":17, "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":8.25, "y":1}, {"label":"U", "x":9.25, "y":1}, {"label":"I", "x":10.25, "y":1}, {"label":"O", "x":11.25, "y":1}, {"label":"P", "x":12.25, "y":1}, {"label":"{", "x":13.25, "y":1}, {"label":"}", "x":14.25, "y":1}, {"label":"|", "x":15.25, "y":1, "w":1.5}, {"x":17, "y":1}, {"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":8.5, "y":2}, {"label":"J", "x":9.5, "y":2}, {"label":"K", "x":10.5, "y":2}, {"label":"L", "x":11.5, "y":2}, {"label":":", "x":12.5, "y":2}, {"label":"\"", "x":13.5, "y":2}, {"label":"Enter", "x":14.5, "y":2, "w":2.25}, {"x":17, "y":2}, {"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}, {"x":8, "y":3}, {"label":"N", "x":9, "y":3}, {"label":"M", "x":10, "y":3}, {"label":"<", "x":11, "y":3}, {"label":">", "x":12, "y":3}, {"label":"?", "x":13, "y":3}, {"label":"Shift", "x":14, "y":3, "w":1.75}, {"x":16, "y":3.25}, {"label":"Ctrl", "x":0, "y":4, "w":1.25}, {"label":"Win", "x":1.25, "y":4, "w":1.25}, {"label":"Alt", "x":3, "y":4, "w":1.5}, {"x":4.5, "y":4, "w":2.25}, {"x":6.75, "y":4}, {"x":8.5, "y":4, "w":2.75}, {"label":"Alt", "x":11.25, "y":4, "w":1.5}, {"label":"Win", "x":13.5, "y":4, "w":1.25}, {"x":15, "y":4.25}, {"x":16, "y":4.25}, {"x":17, "y":4.25}] | ||
| 10 | } | ||
| 11 | } | ||
| 12 | } | ||
diff --git a/keyboards/wsk/gothic70/keymaps/default/keymap.c b/keyboards/wsk/gothic70/keymaps/default/keymap.c new file mode 100644 index 000000000..5e73ec419 --- /dev/null +++ b/keyboards/wsk/gothic70/keymaps/default/keymap.c | |||
| @@ -0,0 +1,69 @@ | |||
| 1 | |||
| 2 | #include QMK_KEYBOARD_H | ||
| 3 | |||
| 4 | // Defines names for use in layer keycodes and the keymap | ||
| 5 | enum layer_names { | ||
| 6 | _BASE, | ||
| 7 | _FN, | ||
| 8 | _MEDIA }; | ||
| 9 | |||
| 10 | // Tap Dance Declarations | ||
| 11 | enum { | ||
| 12 | TD_SCAPS = 0 | ||
| 13 | }; | ||
| 14 | |||
| 15 | #define SCAPS_LG TD(TD_SCAPS) | ||
| 16 | |||
| 17 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 18 | [_BASE] = LAYOUT( | ||
| 19 | 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_BSPC, KC_PSCR, \ | ||
| 20 | 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, KC_INS, \ | ||
| 21 | KC_LCTL, 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_DEL, \ | ||
| 22 | SCAPS_LG, KC_Z, KC_X, KC_C, KC_V, KC_B, MO(_MEDIA), KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, \ | ||
| 23 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, MO(_FN), KC_BSPC, KC_RALT, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT \ | ||
| 24 | ), | ||
| 25 | |||
| 26 | [_FN] = LAYOUT( | ||
| 27 | 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_PAUS, \ | ||
| 28 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \ | ||
| 29 | _______, RGB_MOD, RGB_HUI, RGB_SAI, RGB_VAI, _______, _______, _______, _______, _______, _______, _______, _______, _______, \ | ||
| 30 | _______, RGB_TOG, RGB_HUD, RGB_SAD, RGB_VAD, _______, _______, _______, _______, _______, _______, _______, _______, KC_PGUP, \ | ||
| 31 | _______, _______, _______, _______, _______, _______, _______, _______, KC_HOME, KC_PGDN, KC_END \ | ||
| 32 | ), | ||
| 33 | |||
| 34 | [_MEDIA] = LAYOUT( | ||
| 35 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RESET, \ | ||
| 36 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \ | ||
| 37 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_MPLY, _______, \ | ||
| 38 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_VOLU, \ | ||
| 39 | _______, _______, _______, _______, _______, _______, _______, _______, KC_MPRV, KC_VOLD, KC_MNXT \ | ||
| 40 | ) | ||
| 41 | }; | ||
| 42 | |||
| 43 | void matrix_init_user(void) { | ||
| 44 | // set CapsLock LED to output and off (active low) | ||
| 45 | setPinOutput(F5); | ||
| 46 | writePinHigh(F5); | ||
| 47 | // set NumLock LED to output and off (active low) | ||
| 48 | setPinOutput(F6); | ||
| 49 | writePinHigh(F6); | ||
| 50 | // set ScrollLock LED to output and off (active low) | ||
| 51 | setPinOutput(F7); | ||
| 52 | writePinHigh(F7); | ||
| 53 | } | ||
| 54 | |||
| 55 | // write to above indicators in a binary fashion based on current layer | ||
| 56 | layer_state_t layer_state_set_user(layer_state_t state) | ||
| 57 | { | ||
| 58 | writePin(F5, (state & 0x1)); | ||
| 59 | writePin(F6, (state & 0x2)); | ||
| 60 | writePin(F7, (state & 0x4)); | ||
| 61 | return state; | ||
| 62 | } | ||
| 63 | |||
| 64 | |||
| 65 | // Tap Dance Definitions | ||
| 66 | qk_tap_dance_action_t tap_dance_actions[] = { | ||
| 67 | // Tap once for | ||
| 68 | [TD_SCAPS] = ACTION_TAP_DANCE_DOUBLE(KC_LSFT, KC_CAPS), | ||
| 69 | }; | ||
diff --git a/keyboards/wsk/gothic70/keymaps/default/rules.mk b/keyboards/wsk/gothic70/keymaps/default/rules.mk new file mode 100644 index 000000000..e5ddcae8d --- /dev/null +++ b/keyboards/wsk/gothic70/keymaps/default/rules.mk | |||
| @@ -0,0 +1 @@ | |||
| TAP_DANCE_ENABLE = yes | |||
diff --git a/keyboards/wsk/gothic70/readme.md b/keyboards/wsk/gothic70/readme.md new file mode 100644 index 000000000..42c5f9197 --- /dev/null +++ b/keyboards/wsk/gothic70/readme.md | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | # Gothic70 | ||
| 2 | |||
| 3 |  | ||
| 4 | |||
| 5 | An Alice style board with arrowkeys, based on the Fate Arisu layout. | ||
| 6 | |||
| 7 | * Keyboard Maintainer: [Worldspawn00](https://github.com/Worldspawn00) | ||
| 8 | * Hardware Supported: Gothic70 PCB | ||
| 9 | * Hardware Availability: https://geekhack.org/index.php?topic=102180.0 | ||
| 10 | |||
| 11 | Make example for this keyboard (after setting up your build environment): | ||
| 12 | |||
| 13 | make wsk/gothic70: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) | ||
diff --git a/keyboards/wsk/gothic70/rules.mk b/keyboards/wsk/gothic70/rules.mk new file mode 100644 index 000000000..6a1221aa1 --- /dev/null +++ b/keyboards/wsk/gothic70/rules.mk | |||
| @@ -0,0 +1,32 @@ | |||
| 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 | BOOTLOADER = atmel-dfu | ||
| 12 | |||
| 13 | # Build Options | ||
| 14 | # change yes to no to disable | ||
| 15 | # | ||
| 16 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration | ||
| 17 | MOUSEKEY_ENABLE = no # Mouse keys | ||
| 18 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
| 19 | CONSOLE_ENABLE = yes # Console for debug | ||
| 20 | COMMAND_ENABLE = yes # Commands for debug and configuration | ||
| 21 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 22 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 23 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 24 | NKRO_ENABLE = no # USB Nkey Rollover | ||
| 25 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality on B7 by default | ||
| 26 | RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow | ||
| 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 = no # Audio output on port C6 | ||
| 31 | FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches | ||
| 32 | HD44780_ENABLE = no # Enable support for HD44780 based LCDs | ||
