aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorworldspawn00 <mcmancuso@gmail.com>2020-02-07 21:32:14 -0600
committerGitHub <noreply@github.com>2020-02-07 19:32:14 -0800
commitdf029f9660ff95b8d627b50af4dd539b31f02f26 (patch)
tree7aa969aa3e575f57620470626487d206a3a8a7ac
parentb62829031de1ae2e5e1efaa35606981c04c443c3 (diff)
downloadqmk_firmware-df029f9660ff95b8d627b50af4dd539b31f02f26.tar.gz
qmk_firmware-df029f9660ff95b8d627b50af4dd539b31f02f26.zip
[Keyboard] adding keyboard: gothic50 (#7983)
* gothic50 * Update keyboards/wsk/gothic50/config.h Co-Authored-By: ridingqwerty <george.g.koenig@gmail.com> * Update keyboards/wsk/gothic50/config.h Co-Authored-By: ridingqwerty <george.g.koenig@gmail.com> * Update keyboards/wsk/gothic50/config.h Co-Authored-By: ridingqwerty <george.g.koenig@gmail.com> * Update keyboards/wsk/gothic50/config.h Co-Authored-By: ridingqwerty <george.g.koenig@gmail.com> * Update keyboards/wsk/gothic50/rules.mk Co-Authored-By: ridingqwerty <george.g.koenig@gmail.com> * Update keyboards/wsk/gothic50/rules.mk Co-Authored-By: ridingqwerty <george.g.koenig@gmail.com> * Update keyboards/wsk/gothic50/rules.mk Co-Authored-By: ridingqwerty <george.g.koenig@gmail.com> * Update keyboards/wsk/gothic50/rules.mk Co-Authored-By: ridingqwerty <george.g.koenig@gmail.com> * Update keyboards/wsk/gothic50/rules.mk Co-Authored-By: ridingqwerty <george.g.koenig@gmail.com> * Update keyboards/wsk/gothic50/keymaps/default/keymap.c Co-Authored-By: Drashna Jaelre <drashna@live.com> * Update keyboards/wsk/gothic50/readme.md Co-Authored-By: Drashna Jaelre <drashna@live.com> * Update keyboards/wsk/gothic50/readme.md Co-Authored-By: Drashna Jaelre <drashna@live.com> * Update keyboards/wsk/gothic50/readme.md Co-Authored-By: Drashna Jaelre <drashna@live.com> * Update keyboards/wsk/gothic50/rules.mk Co-Authored-By: ridingqwerty <george.g.koenig@gmail.com> * Updated with collaborator suggestions * Fixing layout for configurator Co-authored-by: ridingqwerty <george.g.koenig@gmail.com> Co-authored-by: Drashna Jaelre <drashna@live.com>
-rw-r--r--keyboards/wsk/gothic50/config.h58
-rw-r--r--keyboards/wsk/gothic50/gothic50.c1
-rw-r--r--keyboards/wsk/gothic50/gothic50.h24
-rw-r--r--keyboards/wsk/gothic50/info.json12
-rw-r--r--keyboards/wsk/gothic50/keymaps/default/keymap.c57
-rw-r--r--keyboards/wsk/gothic50/keymaps/default/rules.mk1
-rw-r--r--keyboards/wsk/gothic50/readme.md15
-rw-r--r--keyboards/wsk/gothic50/rules.mk32
8 files changed, 200 insertions, 0 deletions
diff --git a/keyboards/wsk/gothic50/config.h b/keyboards/wsk/gothic50/config.h
new file mode 100644
index 000000000..5eb4b30f2
--- /dev/null
+++ b/keyboards/wsk/gothic50/config.h
@@ -0,0 +1,58 @@
1#pragma once
2
3#include "config_common.h"
4
5/* USB Device descriptor parameter */
6#define VENDOR_ID 0xFEED
7#define PRODUCT_ID 0x04EF
8#define DEVICE_VER 0x0001
9#define MANUFACTURER Worldspawn00
10#define PRODUCT Gothic50
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 { B5, B4, D7, D6 }
20#define MATRIX_COL_PINS { E6, F0, F1, C7, C6, B6, D4, D5, D3, D2, D1, D0, B7, B0 }
21#define UNUSED_PINS
22
23/* COL2ROW, ROW2COL*/
24#define DIODE_DIRECTION COL2ROW
25
26
27#define RGB_DI_PIN F7
28#ifdef RGB_DI_PIN
29#define RGBLIGHT_ANIMATIONS
30#define RGBLED_NUM 10
31#define RGBLIGHT_HUE_STEP 8
32#define RGBLIGHT_SAT_STEP 8
33#define RGBLIGHT_VAL_STEP 8
34#endif
35
36/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
37#define DEBOUNCE 5
38
39/* define if matrix has ghost (lacks anti-ghosting diodes) */
40//#define MATRIX_HAS_GHOST
41
42
43/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
44#define LOCKING_SUPPORT_ENABLE
45
46/* Locking resynchronize hack */
47#define LOCKING_RESYNC_ENABLE
48
49/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
50 * This is userful for the Windows task manager shortcut (ctrl+shift+esc).
51 */
52#define GRAVE_ESC_CTRL_OVERRIDE
53
54
55
56
57
58
diff --git a/keyboards/wsk/gothic50/gothic50.c b/keyboards/wsk/gothic50/gothic50.c
new file mode 100644
index 000000000..66854ba84
--- /dev/null
+++ b/keyboards/wsk/gothic50/gothic50.c
@@ -0,0 +1 @@
#include "gothic50.h"
diff --git a/keyboards/wsk/gothic50/gothic50.h b/keyboards/wsk/gothic50/gothic50.h
new file mode 100644
index 000000000..03d2a975a
--- /dev/null
+++ b/keyboards/wsk/gothic50/gothic50.h
@@ -0,0 +1,24 @@
1#pragma once
2
3#include "quantum.h"
4
5/* This a shortcut to help you visually see your layout.
6 *
7 * The first section contains all of the arguments representing the physical
8 * layout of the board and position of the keys.
9 *
10 * The second converts the arguments into a two-dimensional array which
11 * represents the switch matrix.
12 */
13#define LAYOUT( \
14 k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0A, k0B, k0C, k0D, \
15 k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1A, k1B, k1D, \
16 k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2A, k2B, k2C, k2D, \
17 k30, k31, k32, k34, k35, k37, k39, k3A, k3B, k3C, k3D \
18) \
19{ \
20 { k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0A, k0B, k0C, k0D }, \
21 { k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1A, k1B, KC_NO, k1D }, \
22 { k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2A, k2B, k2C, k2D }, \
23 { k30, k31, k32, KC_NO, k34, k35, KC_NO, k37, KC_NO, k39, k3A, k3B, k3C, k3D } \
24}
diff --git a/keyboards/wsk/gothic50/info.json b/keyboards/wsk/gothic50/info.json
new file mode 100644
index 000000000..4d2274466
--- /dev/null
+++ b/keyboards/wsk/gothic50/info.json
@@ -0,0 +1,12 @@
1{
2 "keyboard_name": "Gothic50",
3 "url": "https://qmk.fm/keyboards",
4 "maintainer": "worldspawn00",
5 "width": 16.5,
6 "height": 4.25,
7 "layouts": {
8 "LAYOUT": {
9 "layout": [{"label":"Tab", "x":0, "y":0}, {"label":"Q", "x":1, "y":0}, {"label":"W", "x":2, "y":0}, {"label":"E", "x":3, "y":0}, {"label":"R", "x":4, "y":0}, {"label":"T", "x":5, "y":0}, {"label":"Y", "x":8.25, "y":0}, {"label":"U", "x":9.25, "y":0}, {"label":"I", "x":10.25, "y":0}, {"label":"O", "x":11.25, "y":0}, {"label":"P", "x":12.25, "y":0}, {"label":"{", "x":13.25, "y":0}, {"label":"}", "x":14.25, "y":0}, {"x":15.5, "y":0}, {"label":"Caps Lock", "x":0, "y":1, "w":1.25}, {"label":"A", "x":1.25, "y":1}, {"label":"S", "x":2.25, "y":1}, {"label":"D", "x":3.25, "y":1}, {"label":"F", "x":4.25, "y":1}, {"label":"G", "x":5.25, "y":1}, {"label":"H", "x":8.5, "y":1}, {"label":"J", "x":9.5, "y":1}, {"label":"K", "x":10.5, "y":1}, {"label":"L", "x":11.5, "y":1}, {"label":":", "x":12.5, "y":1}, {"label":"Enter", "x":13.5, "y":1, "w":1.75}, {"x":15.5, "y":1}, {"label":"Shift", "x":0, "y":2, "w":1.75}, {"label":"Z", "x":1.75, "y":2}, {"label":"X", "x":2.75, "y":2}, {"label":"C", "x":3.75, "y":2}, {"label":"V", "x":4.75, "y":2}, {"label":"B", "x":5.75, "y":2}, {"x":8, "y":2}, {"label":"N", "x":9, "y":2}, {"label":"M", "x":10, "y":2}, {"label":"<", "x":11, "y":2}, {"label":">", "x":12, "y":2}, {"label":"?", "x":13, "y":2}, {"x":15.5, "y":2}, {"x":14.25, "y":2.25}, {"label":"Ctrl", "x":0, "y":3, "w":1.25}, {"label":"Win", "x":1.25, "y":3, "w":1.25}, {"label":"Alt", "x":3.25, "y":3, "w":1.25}, {"x":4.5, "y":3}, {"x":5.5, "y":3, "w":1.25}, {"x":8, "y":3, "w":1.75}, {"label":"Alt", "x":9.75, "y":3}, {"label":"Win", "x":10.75, "y":3, "w":1.25}, {"x":13.25, "y":3.25}, {"x":14.25, "y":3.25}, {"x":15.25, "y":3.25}]
10 }
11 }
12}
diff --git a/keyboards/wsk/gothic50/keymaps/default/keymap.c b/keyboards/wsk/gothic50/keymaps/default/keymap.c
new file mode 100644
index 000000000..477c9fad3
--- /dev/null
+++ b/keyboards/wsk/gothic50/keymaps/default/keymap.c
@@ -0,0 +1,57 @@
1#include QMK_KEYBOARD_H
2
3// Tap Dance Declarations
4enum {
5 TD_SCAPS = 0
6};
7
8#define SCAPS_LG TD(TD_SCAPS)
9
10const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
11 [0] = LAYOUT(
12 KC_GESC, 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_PSCR, \
13 LCTL_T(KC_TAB), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_QUOT, KC_ENT, KC_INS, \
14 SCAPS_LG, KC_Z, KC_X, KC_C, KC_V, KC_B, MO(2), KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_UP, KC_DEL, \
15 KC_APP, KC_LGUI, KC_LALT, MO(1), LT(1,KC_SPC), KC_BSPC, KC_RALT, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT \
16 ),
17
18 [1] = LAYOUT(
19 KC_TILD, 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_PAUS, \
20 _______, RGB_MOD, RGB_HUI, RGB_SAI, RGB_VAI, _______, _______, _______, _______, _______, KC_SCLN, KC_BSLS, KC_MUTE, \
21 _______, RGB_TOG, RGB_HUD, RGB_SAD, RGB_VAD, _______, _______, _______, _______, _______, _______, _______, KC_PGUP, KC_MPLY, \
22 _______, _______, _______, _______, _______, _______, _______, _______, KC_HOME, KC_PGDN, KC_END \
23 ),
24
25 [2] = LAYOUT(
26 _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, RESET, \
27 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
28 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_VOLU, _______,\
29 _______, _______, _______, _______, _______, _______, _______, _______, KC_MPRV, KC_VOLD, KC_MNXT \
30 )
31};
32
33void matrix_init_user(void) {
34 // set CapsLock LED to output and low
35 setPinOutput(F6);
36 writePinLow(F6);
37 // set NumLock LED to output and low
38 setPinOutput(F5);
39 writePinLow(F5);
40 // set ScrollLock LED to output and low
41 setPinOutput(F4);
42 writePinLow(F4);
43}
44
45layer_state_t layer_state_set_user(layer_state_t state)
46{
47 writePin(F4, (state & 0x1));
48 writePin(F5, (state & 0x2));
49 writePin(F6, (state & 0x4));
50 return state;
51}
52
53// Tap Dance Definitions
54qk_tap_dance_action_t tap_dance_actions[] = {
55 // double tap for caps
56 [TD_SCAPS] = ACTION_TAP_DANCE_DOUBLE(KC_LSFT, KC_CAPS)
57};
diff --git a/keyboards/wsk/gothic50/keymaps/default/rules.mk b/keyboards/wsk/gothic50/keymaps/default/rules.mk
new file mode 100644
index 000000000..e5ddcae8d
--- /dev/null
+++ b/keyboards/wsk/gothic50/keymaps/default/rules.mk
@@ -0,0 +1 @@
TAP_DANCE_ENABLE = yes
diff --git a/keyboards/wsk/gothic50/readme.md b/keyboards/wsk/gothic50/readme.md
new file mode 100644
index 000000000..dd25695a4
--- /dev/null
+++ b/keyboards/wsk/gothic50/readme.md
@@ -0,0 +1,15 @@
1# Gothic50
2
3![Gothic50](https://i.imgur.com/T2V63c8.png)
4
5An Alice style 40% board with arrowkeys, based on the Fate Arisu layout.
6
7* Keyboard Maintainer: [Worldspawn00](https://github.com/Worldspawn00)
8* Hardware Supported: Gothic50 PCB
9* Hardware Availability: https://geekhack.org/index.php?topic=102180.0
10
11Make example for this keyboard (after setting up your build environment):
12
13 make wsk/gothic50:default
14
15See 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/gothic50/rules.mk b/keyboards/wsk/gothic50/rules.mk
new file mode 100644
index 000000000..6a1221aa1
--- /dev/null
+++ b/keyboards/wsk/gothic50/rules.mk
@@ -0,0 +1,32 @@
1# MCU name
2MCU = 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
11BOOTLOADER = atmel-dfu
12
13# Build Options
14# change yes to no to disable
15#
16BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration
17MOUSEKEY_ENABLE = no # Mouse keys
18EXTRAKEY_ENABLE = yes # Audio control and System control
19CONSOLE_ENABLE = yes # Console for debug
20COMMAND_ENABLE = yes # Commands for debug and configuration
21# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
22SLEEP_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
24NKRO_ENABLE = no # USB Nkey Rollover
25BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality on B7 by default
26RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
27MIDI_ENABLE = no # MIDI support
28UNICODE_ENABLE = no # Unicode
29BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
30AUDIO_ENABLE = no # Audio output on port C6
31FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches
32HD44780_ENABLE = no # Enable support for HD44780 based LCDs