diff options
author | gadzkun <gadzkun@gmail.com> | 2020-07-31 11:23:06 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-30 21:23:06 -0700 |
commit | 2ec2f80bfce352e60d58dd5248ab347f7272c5b3 (patch) | |
tree | 50c23f363a86f110dc983d050fe6d2eca159f5af | |
parent | 6ff08202a5183733b51b35530b65dc6ad11f3824 (diff) | |
download | qmk_firmware-2ec2f80bfce352e60d58dd5248ab347f7272c5b3.tar.gz qmk_firmware-2ec2f80bfce352e60d58dd5248ab347f7272c5b3.zip |
[Keyboard] Add otd_plus keyboard (#9726)
-rw-r--r-- | keyboards/hardlineworks/otd_plus/config.h | 33 | ||||
-rw-r--r-- | keyboards/hardlineworks/otd_plus/info.json | 103 | ||||
-rw-r--r-- | keyboards/hardlineworks/otd_plus/keymaps/default/keymap.c | 22 | ||||
-rw-r--r-- | keyboards/hardlineworks/otd_plus/otd_plus.c | 12 | ||||
-rw-r--r-- | keyboards/hardlineworks/otd_plus/otd_plus.h | 35 | ||||
-rw-r--r-- | keyboards/hardlineworks/otd_plus/readme.md | 16 | ||||
-rw-r--r-- | keyboards/hardlineworks/otd_plus/rules.mk | 22 |
7 files changed, 243 insertions, 0 deletions
diff --git a/keyboards/hardlineworks/otd_plus/config.h b/keyboards/hardlineworks/otd_plus/config.h new file mode 100644 index 000000000..5474dbfee --- /dev/null +++ b/keyboards/hardlineworks/otd_plus/config.h | |||
@@ -0,0 +1,33 @@ | |||
1 | #pragma once | ||
2 | |||
3 | #include "config_common.h" | ||
4 | |||
5 | /* USB Device descriptor parameter */ | ||
6 | #define VENDOR_ID 0x484C // "HL" | ||
7 | #define PRODUCT_ID 0x0087 // "TKL" | ||
8 | #define DEVICE_VER 0x0001 | ||
9 | #define MANUFACTURER Hardlineworks | ||
10 | #define PRODUCT OTD-PLUS | ||
11 | |||
12 | /* key matrix size */ | ||
13 | #define MATRIX_ROWS 12 | ||
14 | #define MATRIX_COLS 9 | ||
15 | |||
16 | #define MATRIX_ROW_PINS { D2, D4, D1, E6, F5, C6, B6, F6, F0, D0, D6, D3 } | ||
17 | #define MATRIX_COL_PINS { B3, B2, B1, B7, B0, F1, D7, F7, C7 } | ||
18 | #define UNUSED_PINS | ||
19 | |||
20 | /* COL2ROW or ROW2COL */ | ||
21 | #define DIODE_DIRECTION COL2ROW | ||
22 | |||
23 | #define CAPS_LOCK_LED_PIN F4 | ||
24 | #define SCROLL_LOCK_LED_PIN D5 | ||
25 | |||
26 | /* Set 0 if debouncing isn't needed */ | ||
27 | #define DEBOUNCE 5 | ||
28 | |||
29 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
30 | #define LOCKING_SUPPORT_ENABLE | ||
31 | |||
32 | /* Locking resynchronize hack */ | ||
33 | #define LOCKING_RESYNC_ENABLE | ||
diff --git a/keyboards/hardlineworks/otd_plus/info.json b/keyboards/hardlineworks/otd_plus/info.json new file mode 100644 index 000000000..c6ba4f256 --- /dev/null +++ b/keyboards/hardlineworks/otd_plus/info.json | |||
@@ -0,0 +1,103 @@ | |||
1 | { | ||
2 | "keyboard_name": "OTD-PLUS", | ||
3 | "url": "", | ||
4 | "maintainer": "Hardlineworks", | ||
5 | "width": 18.25, | ||
6 | "height": 6.25, | ||
7 | "layouts": { | ||
8 | "LAYOUT_tkl_ansi_wkl": { | ||
9 | "layout": [ | ||
10 | |||
11 | {"label" : "Esc", "x":0, "y":0}, | ||
12 | {"label" : "F1", "x":2, "y":0}, | ||
13 | {"label" : "F2", "x":3, "y":0}, | ||
14 | {"label" : "F3", "x":4, "y":0}, | ||
15 | {"label" : "F4", "x":5, "y":0}, | ||
16 | {"label" : "F5", "x":6.5, "y":0}, | ||
17 | {"label" : "F6", "x":7.5, "y":0}, | ||
18 | {"label" : "F7", "x":8.5, "y":0}, | ||
19 | {"label" : "F8", "x":9.5, "y":0}, | ||
20 | {"label" : "F9", "x":11, "y":0}, | ||
21 | {"label" : "F10", "x":12, "y":0}, | ||
22 | {"label" : "F11", "x":13, "y":0}, | ||
23 | {"label" : "F12", "x":14, "y":0}, | ||
24 | {"label" : "Print screen", "x":15.25, "y":0}, | ||
25 | {"label" : "Scroll lock", "x":16.25, "y":0}, | ||
26 | {"label" : "Pause", "x":17.25, "y":0}, | ||
27 | |||
28 | {"label" : "`", "x":0, "y":1.25}, | ||
29 | {"label" : "1", "x":1, "y":1.25}, | ||
30 | {"label" : "2", "x":2, "y":1.25}, | ||
31 | {"label" : "3", "x":3, "y":1.25}, | ||
32 | {"label" : "4", "x":4, "y":1.25}, | ||
33 | {"label" : "5", "x":5, "y":1.25}, | ||
34 | {"label" : "6", "x":6, "y":1.25}, | ||
35 | {"label" : "7", "x":7, "y":1.25}, | ||
36 | {"label" : "8", "x":8, "y":1.25}, | ||
37 | {"label" : "9", "x":9, "y":1.25}, | ||
38 | {"label" : "0", "x":10, "y":1.25}, | ||
39 | {"label" : "-", "x":11, "y":1.25}, | ||
40 | {"label" : "=", "x":12, "y":1.25}, | ||
41 | {"label" : "Backspace", "x":13, "y":1.25, "w":2}, | ||
42 | {"label" : "Insert", "x":15.25, "y":1.25}, | ||
43 | {"label" : "Home", "x":16.25, "y":1.25}, | ||
44 | {"label" : "Page up", "x":17.25, "y":1.25}, | ||
45 | |||
46 | {"label" : "Tab", "x":0, "y":2.25, "w":1.5}, | ||
47 | {"label" : "Q", "x":1.5, "y":2.25}, | ||
48 | {"label" : "W", "x":2.5, "y":2.25}, | ||
49 | {"label" : "E", "x":3.5, "y":2.25}, | ||
50 | {"label" : "R", "x":4.5, "y":2.25}, | ||
51 | {"label" : "T", "x":5.5, "y":2.25}, | ||
52 | {"label" : "Y", "x":6.5, "y":2.25}, | ||
53 | {"label" : "U", "x":7.5, "y":2.25}, | ||
54 | {"label" : "I", "x":8.5, "y":2.25}, | ||
55 | {"label" : "O", "x":9.5, "y":2.25}, | ||
56 | {"label" : "P", "x":10.5, "y":2.25}, | ||
57 | {"label" : "[", "x":11.5, "y":2.25}, | ||
58 | {"label" : "]", "x":12.5, "y":2.25}, | ||
59 | {"label" : "|", "x":13.5, "y":2.25, "w":1.5}, | ||
60 | {"label" : "Delete", "x":15.25, "y":2.25}, | ||
61 | {"label" : "End", "x":16.25, "y":2.25}, | ||
62 | {"label" : "Page down", "x":17.25, "y":2.25}, | ||
63 | |||
64 | {"label" : "Caps lock", "x":0, "y":3.25, "w":1.75}, | ||
65 | {"label" : "A", "x":1.75, "y":3.25}, | ||
66 | {"label" : "S", "x":2.75, "y":3.25}, | ||
67 | {"label" : "D", "x":3.75, "y":3.25}, | ||
68 | {"label" : "F", "x":4.75, "y":3.25}, | ||
69 | {"label" : "G", "x":5.75, "y":3.25}, | ||
70 | {"label" : "H", "x":6.75, "y":3.25}, | ||
71 | {"label" : "J", "x":7.75, "y":3.25}, | ||
72 | {"label" : "K", "x":8.75, "y":3.25}, | ||
73 | {"label" : "L", "x":9.75, "y":3.25}, | ||
74 | {"label" : ";", "x":10.75, "y":3.25}, | ||
75 | {"label" : "'", "x":11.75, "y":3.25}, | ||
76 | {"label" : "Enter", "x":12.75, "y":3.25, "w":2.25}, | ||
77 | |||
78 | {"label" : "Shift", "x":0, "y":4.25, "w":2.25}, | ||
79 | {"label" : "Z", "x":2.25, "y":4.25}, | ||
80 | {"label" : "X", "x":3.25, "y":4.25}, | ||
81 | {"label" : "C", "x":4.25, "y":4.25}, | ||
82 | {"label" : "V", "x":5.25, "y":4.25}, | ||
83 | {"label" : "B", "x":6.25, "y":4.25}, | ||
84 | {"label" : "N", "x":7.25, "y":4.25}, | ||
85 | {"label" : "M", "x":8.25, "y":4.25}, | ||
86 | {"label" : ",", "x":9.25, "y":4.25}, | ||
87 | {"label" : ".", "x":10.25, "y":4.25}, | ||
88 | {"label" : "/", "x":11.25, "y":4.25}, | ||
89 | {"label" : "Shift", "x":12.25, "y":4.25, "w":2.75}, | ||
90 | {"label" : "Up", "x":16.25, "y":4.25}, | ||
91 | |||
92 | {"label" : "Ctrl", "x":0, "y":5.25, "w":1.5}, | ||
93 | {"label" : "Alt", "x":2.5, "y":5.25, "w":1.5}, | ||
94 | {"label" : "Space", "x":4, "y":5.25, "w":7}, | ||
95 | {"label" : "Alt", "x":11, "y":5.25, "w":1.5}, | ||
96 | {"label" : "Ctrl", "x":13.5, "y":5.25, "w":1.5}, | ||
97 | {"label" : "Left", "x":15.25, "y":5.25 }, | ||
98 | {"label" : "Down", "x":16.25, "y":5.25 }, | ||
99 | {"label" : "Right", "x":17.25, "y":5.25 } | ||
100 | ] | ||
101 | } | ||
102 | } | ||
103 | } | ||
diff --git a/keyboards/hardlineworks/otd_plus/keymaps/default/keymap.c b/keyboards/hardlineworks/otd_plus/keymaps/default/keymap.c new file mode 100644 index 000000000..397b815bd --- /dev/null +++ b/keyboards/hardlineworks/otd_plus/keymaps/default/keymap.c | |||
@@ -0,0 +1,22 @@ | |||
1 | #include QMK_KEYBOARD_H | ||
2 | |||
3 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
4 | |||
5 | [0] = LAYOUT_tkl_ansi_wkl( | ||
6 | KC_ESC, 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_PSCR, KC_SLCK, KC_PAUS, | ||
7 | 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_INS, KC_HOME, KC_PGUP, | ||
8 | 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_DEL, KC_END, KC_PGDN, | ||
9 | 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, | ||
10 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, | ||
11 | KC_LCTL, KC_LALT, KC_SPC, MO(1), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT | ||
12 | ), | ||
13 | |||
14 | [1] = LAYOUT_tkl_ansi_wkl( | ||
15 | RESET, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
16 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
17 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
18 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
19 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
20 | _______, _______, _______, _______, _______, _______, _______, _______ | ||
21 | ), | ||
22 | }; | ||
diff --git a/keyboards/hardlineworks/otd_plus/otd_plus.c b/keyboards/hardlineworks/otd_plus/otd_plus.c new file mode 100644 index 000000000..f7f96800d --- /dev/null +++ b/keyboards/hardlineworks/otd_plus/otd_plus.c | |||
@@ -0,0 +1,12 @@ | |||
1 | #include "otd_plus.h" | ||
2 | |||
3 | void keyboard_pre_init_kb(void) { | ||
4 | led_init_ports(); | ||
5 | keyboard_pre_init_user(); | ||
6 | } | ||
7 | void led_init_ports(void) { | ||
8 | setPinOutput(CAPS_LOCK_LED_PIN); | ||
9 | setPinOutput(SCROLL_LOCK_LED_PIN); | ||
10 | } | ||
11 | |||
12 | |||
diff --git a/keyboards/hardlineworks/otd_plus/otd_plus.h b/keyboards/hardlineworks/otd_plus/otd_plus.h new file mode 100644 index 000000000..f523cfff2 --- /dev/null +++ b/keyboards/hardlineworks/otd_plus/otd_plus.h | |||
@@ -0,0 +1,35 @@ | |||
1 | |||
2 | #pragma once | ||
3 | |||
4 | #include "quantum.h" | ||
5 | |||
6 | /* This a shortcut to help you visually see your layout. | ||
7 | * | ||
8 | * The first section contains all of the arguments representing the physical | ||
9 | * layout of the board and position of the keys. | ||
10 | * | ||
11 | * The second converts the arguments into a two-dimensional array which | ||
12 | * represents the switch matrix. | ||
13 | */ | ||
14 | #define LAYOUT_tkl_ansi_wkl( \ | ||
15 | K00, K01, KB1, K02, KB2, K03, KB3, K04, KB4, KB5, K06, KB6, K07, KB7, K08, KB8, \ | ||
16 | K10, KA0, K11, KA1, K12, KA2, K13, KA3, K14, KA4, K15, KA5, K16, KA6, KA7, K18, KA8, \ | ||
17 | K20, K90, K21, K91, K22, K92, K23, K93, K24, K94, K25, K95, K26, K96, K97, K28, K98, \ | ||
18 | K30, K80, K31, K81, K32, K82, K33, K83, K34, K84, K35, K85, K86, \ | ||
19 | K40, K70, K41, K71, K42, K72, K43, K73, K44, K74, K45, K46, K48, \ | ||
20 | K50, K51, K62, K55, K56, K67, K58, K68 \ | ||
21 | ) \ | ||
22 | { \ | ||
23 | { K00, K01, K02, K03, K04, KC_NO, K06, K07, K08, }, \ | ||
24 | { K10, K11, K12, K13, K14, K15, K16, KC_NO, K18, }, \ | ||
25 | { K20, K21, K22, K23, K24, K25, K26, KC_NO, K28, }, \ | ||
26 | { K30, K31, K32, K33, K34, K35, KC_NO, KC_NO, KC_NO, }, \ | ||
27 | { K40, K41, K42, K43, K44, K45, K46, KC_NO, K48, }, \ | ||
28 | { K50, K51, KC_NO, KC_NO, KC_NO, K55, K56, KC_NO, K58, }, \ | ||
29 | { KC_NO, KC_NO, K62, KC_NO, KC_NO, KC_NO, KC_NO, K67, K68, }, \ | ||
30 | { K70, K71, K72, K73, K74, KC_NO, KC_NO, KC_NO, KC_NO, }, \ | ||
31 | { K80, K81, K82, K83, K84, K85, K86, KC_NO, KC_NO, }, \ | ||
32 | { K90, K91, K92, K93, K94, K95, K96, K97, K98, }, \ | ||
33 | { KA0, KA1, KA2, KA3, KA4, KA5, KA6, KA7, KA8, }, \ | ||
34 | { KC_NO, KB1, KB2, KB3, KB4, KB5, KB6, KB7, KB8, }, \ | ||
35 | } | ||
diff --git a/keyboards/hardlineworks/otd_plus/readme.md b/keyboards/hardlineworks/otd_plus/readme.md new file mode 100644 index 000000000..7e2687e06 --- /dev/null +++ b/keyboards/hardlineworks/otd_plus/readme.md | |||
@@ -0,0 +1,16 @@ | |||
1 | # [OTD PLUS](https://github.com/gadzkun/Hardlineworks/tree/master/otd%20plus) | ||
2 | |||
3 |  | ||
4 | |||
5 | A modern PCB replacement for OTD keyboards, powered by HardLineWorks | ||
6 | |||
7 | * Keyboard Maintainer : [Hardlineworks](https://github.com/gadzkun/Hardlineworks) | ||
8 | * Hardware Supported : otd plus pcb | ||
9 | * Hardware Availability : Private GB | ||
10 | |||
11 | Make example for this keyboard (after setting up your build environment): | ||
12 | |||
13 | make hardlineworks/otd_plus: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/hardlineworks/otd_plus/rules.mk b/keyboards/hardlineworks/otd_plus/rules.mk new file mode 100644 index 000000000..e07b7a000 --- /dev/null +++ b/keyboards/hardlineworks/otd_plus/rules.mk | |||
@@ -0,0 +1,22 @@ | |||
1 | # MCU name | ||
2 | MCU = atmega32u4 | ||
3 | |||
4 | # Bootloader selection | ||
5 | BOOTLOADER = atmel-dfu | ||
6 | |||
7 | # Build Options | ||
8 | # change yes to no to disable | ||
9 | # | ||
10 | BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration | ||
11 | MOUSEKEY_ENABLE = yes # Mouse keys | ||
12 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
13 | CONSOLE_ENABLE = no # Console for debug | ||
14 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
15 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
16 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
17 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
18 | NKRO_ENABLE = yes # USB Nkey Rollover | ||
19 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
20 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
21 | BLUETOOTH_ENABLE = no # Enable Bluetooth | ||
22 | AUDIO_ENABLE = no # Audio output | ||