diff options
author | worldspawn00 <mcmancuso@gmail.com> | 2020-02-06 23:28:08 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-06 21:28:08 -0800 |
commit | e43d143ab09cea268079edae10f14c554b39aa59 (patch) | |
tree | ed2f56765e42a274a96853eece49be311ba53140 /keyboards/wsk | |
parent | a73c38112dedaeeb837fb9d388f17becd8480f95 (diff) | |
download | qmk_firmware-e43d143ab09cea268079edae10f14c554b39aa59.tar.gz qmk_firmware-e43d143ab09cea268079edae10f14c554b39aa59.zip |
[Keyboard] adding keyboard: tkl30 (#7979)
* tkl30
* Amended with collaborator suggestions
* s/DEBOUNCING_DELAY/DEBOUNCE/
* Used noroadsleft's PID suggestion
* Committed noroadsleft's keymap formatting and rules.mk suggestions
* LAYOUT formatting and readme suggestions
Diffstat (limited to 'keyboards/wsk')
-rw-r--r-- | keyboards/wsk/tkl30/config.h | 48 | ||||
-rw-r--r-- | keyboards/wsk/tkl30/info.json | 12 | ||||
-rw-r--r-- | keyboards/wsk/tkl30/keymaps/default/keymap.c | 24 | ||||
-rw-r--r-- | keyboards/wsk/tkl30/readme.md | 16 | ||||
-rw-r--r-- | keyboards/wsk/tkl30/rules.mk | 32 | ||||
-rw-r--r-- | keyboards/wsk/tkl30/tkl30.c | 1 | ||||
-rw-r--r-- | keyboards/wsk/tkl30/tkl30.h | 14 |
7 files changed, 147 insertions, 0 deletions
diff --git a/keyboards/wsk/tkl30/config.h b/keyboards/wsk/tkl30/config.h new file mode 100644 index 000000000..d5595388f --- /dev/null +++ b/keyboards/wsk/tkl30/config.h | |||
@@ -0,0 +1,48 @@ | |||
1 | #pragma once | ||
2 | |||
3 | #include "config_common.h" | ||
4 | |||
5 | /* USB Device descriptor parameter */ | ||
6 | #define VENDOR_ID 0xFEED | ||
7 | #define PRODUCT_ID 0x0B7F | ||
8 | #define DEVICE_VER 0x0001 | ||
9 | #define MANUFACTURER Worldspawn00 | ||
10 | #define PRODUCT TKL30 | ||
11 | #define DESCRIPTION A 3-row TKL-style keyboard | ||
12 | |||
13 | /* key matrix size */ | ||
14 | #define MATRIX_ROWS 3 | ||
15 | #define MATRIX_COLS 15 | ||
16 | |||
17 | /* key matrix pins */ | ||
18 | #define MATRIX_ROW_PINS { D2, B5, F4 } | ||
19 | #define MATRIX_COL_PINS { D3, D1, D0, D4, F7, C6, B1, D7, B3, E6, B2, B4, B6, F6, E5 } | ||
20 | #define UNUSED_PINS | ||
21 | |||
22 | /* COL2ROW or ROW2COL */ | ||
23 | #define DIODE_DIRECTION COL2ROW | ||
24 | |||
25 | /* number of backlight levels */ | ||
26 | |||
27 | #ifdef BACKLIGHT_PIN | ||
28 | #define BACKLIGHT_LEVELS 1 | ||
29 | #endif | ||
30 | |||
31 | /* Set 0 if debouncing isn't needed */ | ||
32 | #define DEBOUNCE 5 | ||
33 | |||
34 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
35 | #define LOCKING_SUPPORT_ENABLE | ||
36 | |||
37 | /* Locking resynchronize hack */ | ||
38 | #define LOCKING_RESYNC_ENABLE | ||
39 | |||
40 | #define RGB_DI_PIN B1 | ||
41 | #ifdef RGB_DI_PIN | ||
42 | #define RGBLIGHT_ANIMATIONS | ||
43 | #define RGBLED_NUM 1 | ||
44 | #define RGBLIGHT_HUE_STEP 8 | ||
45 | #define RGBLIGHT_SAT_STEP 8 | ||
46 | #define RGBLIGHT_VAL_STEP 8 | ||
47 | #endif | ||
48 | |||
diff --git a/keyboards/wsk/tkl30/info.json b/keyboards/wsk/tkl30/info.json new file mode 100644 index 000000000..e19c678c6 --- /dev/null +++ b/keyboards/wsk/tkl30/info.json | |||
@@ -0,0 +1,12 @@ | |||
1 | { | ||
2 | "keyboard_name": "TKL30", | ||
3 | "url": "https://qmk.fm/keyboards", | ||
4 | "maintainer": "worldspawn00", | ||
5 | "width": 18.25, | ||
6 | "height": 3.25, | ||
7 | "layouts": { | ||
8 | "LAYOUT": { | ||
9 | "layout": [{"label":"Tab", "x":0, "y":0.25, "w":1.5}, {"label":"Q", "x":1.5, "y":0.25}, {"label":"W", "x":2.5, "y":0.25}, {"label":"E", "x":3.5, "y":0.25}, {"label":"R", "x":4.5, "y":0.25}, {"label":"T", "x":5.5, "y":0.25}, {"label":"Y", "x":6.5, "y":0.25}, {"label":"U", "x":7.5, "y":0.25}, {"label":"I", "x":8.5, "y":0.25}, {"label":"O", "x":9.5, "y":0.25}, {"label":"P", "x":10.5, "y":0.25}, {"label":"{", "x":11.5, "y":0.25}, {"label":"}", "x":12.5, "y":0.25}, {"label":"|", "x":13.5, "y":0.25, "w":1.5}, {"label":"Ctrl", "x":0, "y":1.25, "w":1.75}, {"label":"A", "x":1.75, "y":1.25}, {"label":"S", "x":2.75, "y":1.25}, {"label":"D", "x":3.75, "y":1.25}, {"label":"F", "x":4.75, "y":1.25}, {"label":"G", "x":5.75, "y":1.25}, {"label":"H", "x":6.75, "y":1.25}, {"label":"J", "x":7.75, "y":1.25}, {"label":"K", "x":8.75, "y":1.25}, {"label":"L", "x":9.75, "y":1.25}, {"label":":", "x":10.75, "y":1.25}, {"label":"\"", "x":11.75, "y":1.25}, {"label":"Enter", "x":12.75, "y":1.25, "w":2.25}, {"label":"\u2191", "x":16.25, "y":1.25}, {"label":"Shift", "x":0, "y":2.25, "w":1.25}, {"label":"Alt", "x":1.25, "y":2.25}, {"label":"Z", "x":2.25, "y":2.25}, {"label":"X", "x":3.25, "y":2.25}, {"label":"C", "x":4.25, "y":2.25}, {"label":"V", "x":5.25, "y":2.25}, {"x":6.25, "y":2.25, "w":2}, {"label":"B", "x":8.25, "y":2.25}, {"label":"N", "x":9.25, "y":2.25}, {"label":"M", "x":10.25, "y":2.25}, {"label":"<", "x":11.25, "y":2.25}, {"label":">", "x":12.25, "y":2.25}, {"label":"Fn", "x":13.25, "y":2.25, "w":1.75}, {"label":"\u2190", "x":15.25, "y":2.25}, {"label":"\u2193", "x":16.25, "y":2.25}, {"label":"\u2192", "x":17.25, "y":2.25}] | ||
10 | } | ||
11 | } | ||
12 | } | ||
diff --git a/keyboards/wsk/tkl30/keymaps/default/keymap.c b/keyboards/wsk/tkl30/keymaps/default/keymap.c new file mode 100644 index 000000000..7f1089304 --- /dev/null +++ b/keyboards/wsk/tkl30/keymaps/default/keymap.c | |||
@@ -0,0 +1,24 @@ | |||
1 | #include QMK_KEYBOARD_H | ||
2 | |||
3 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
4 | |||
5 | [0] = LAYOUT( | ||
6 | 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, | ||
7 | 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_UP, | ||
8 | KC_LSFT, KC_LALT, KC_Z, KC_X, KC_C, KC_V, LT(1,KC_SPC), KC_B, KC_N, KC_M, KC_COMM, KC_DOT, MO(2), KC_LEFT, KC_DOWN, KC_RGHT | ||
9 | ), | ||
10 | |||
11 | [1] = LAYOUT( | ||
12 | 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, | ||
13 | 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_PGUP, | ||
14 | KC_TRNS, KC_LGUI, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_SLSH, KC_TRNS, KC_HOME, KC_PGDN, KC_END | ||
15 | ), | ||
16 | |||
17 | [2] = LAYOUT( | ||
18 | RESET, 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, | ||
19 | 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, | ||
20 | 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 | ||
21 | ) | ||
22 | |||
23 | }; | ||
24 | |||
diff --git a/keyboards/wsk/tkl30/readme.md b/keyboards/wsk/tkl30/readme.md new file mode 100644 index 000000000..fb758b1d5 --- /dev/null +++ b/keyboards/wsk/tkl30/readme.md | |||
@@ -0,0 +1,16 @@ | |||
1 | # TKL30 | ||
2 | |||
3 |  | ||
4 | |||
5 | The TKL30 is a three-row TKL-style board. | ||
6 | |||
7 | * Keyboard Maintainer: [worldspawn00](https://github.com/worldspawn00/) | ||
8 | * Hardware Supported: TKL30 PCB, Pro Micro | ||
9 | * Hardware Availability: [PCB](https://github.com/worldspawn00/TKL30) | ||
10 | |||
11 | Make example for this keyboard (after setting up your build environment): | ||
12 | |||
13 | make wsk/tkl30: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). | ||
16 | |||
diff --git a/keyboards/wsk/tkl30/rules.mk b/keyboards/wsk/tkl30/rules.mk new file mode 100644 index 000000000..ad1dd3454 --- /dev/null +++ b/keyboards/wsk/tkl30/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 | # ATmega328P USBasp | ||
12 | BOOTLOADER = caterina | ||
13 | |||
14 | # Build Options | ||
15 | # change yes to no to disable | ||
16 | # | ||
17 | BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration | ||
18 | MOUSEKEY_ENABLE = yes # 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 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
28 | MIDI_ENABLE = no # MIDI support | ||
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 | ||
diff --git a/keyboards/wsk/tkl30/tkl30.c b/keyboards/wsk/tkl30/tkl30.c new file mode 100644 index 000000000..b25dc56a9 --- /dev/null +++ b/keyboards/wsk/tkl30/tkl30.c | |||
@@ -0,0 +1 @@ | |||
#include "tkl30.h" | |||
diff --git a/keyboards/wsk/tkl30/tkl30.h b/keyboards/wsk/tkl30/tkl30.h new file mode 100644 index 000000000..3beba7245 --- /dev/null +++ b/keyboards/wsk/tkl30/tkl30.h | |||
@@ -0,0 +1,14 @@ | |||
1 | #pragma once | ||
2 | |||
3 | #include "quantum.h" | ||
4 | |||
5 | #define LAYOUT( \ | ||
6 | K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, \ | ||
7 | K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, \ | ||
8 | K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K114, K214 \ | ||
9 | ) { \ | ||
10 | { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, KC_NO }, \ | ||
11 | { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114 }, \ | ||
12 | { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214 } \ | ||
13 | } | ||
14 | |||