diff options
Diffstat (limited to 'keyboards/hardlineworks')
-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 0000000000..5474dbfee9 --- /dev/null +++ b/keyboards/hardlineworks/otd_plus/config.h @@ -0,0 +1,33 @@ +#pragma once + +#include "config_common.h" + +/* USB Device descriptor parameter */ +#define VENDOR_ID 0x484C // "HL" +#define PRODUCT_ID 0x0087 // "TKL" +#define DEVICE_VER 0x0001 +#define MANUFACTURER Hardlineworks +#define PRODUCT OTD-PLUS + +/* key matrix size */ +#define MATRIX_ROWS 12 +#define MATRIX_COLS 9 + +#define MATRIX_ROW_PINS { D2, D4, D1, E6, F5, C6, B6, F6, F0, D0, D6, D3 } +#define MATRIX_COL_PINS { B3, B2, B1, B7, B0, F1, D7, F7, C7 } +#define UNUSED_PINS + +/* COL2ROW or ROW2COL */ +#define DIODE_DIRECTION COL2ROW + +#define CAPS_LOCK_LED_PIN F4 +#define SCROLL_LOCK_LED_PIN D5 + +/* Set 0 if debouncing isn't needed */ +#define DEBOUNCE 5 + +/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ +#define LOCKING_SUPPORT_ENABLE + +/* Locking resynchronize hack */ +#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 0000000000..c6ba4f256a --- /dev/null +++ b/keyboards/hardlineworks/otd_plus/info.json @@ -0,0 +1,103 @@ +{ + "keyboard_name": "OTD-PLUS", + "url": "", + "maintainer": "Hardlineworks", + "width": 18.25, + "height": 6.25, + "layouts": { + "LAYOUT_tkl_ansi_wkl": { + "layout": [ + + {"label" : "Esc", "x":0, "y":0}, + {"label" : "F1", "x":2, "y":0}, + {"label" : "F2", "x":3, "y":0}, + {"label" : "F3", "x":4, "y":0}, + {"label" : "F4", "x":5, "y":0}, + {"label" : "F5", "x":6.5, "y":0}, + {"label" : "F6", "x":7.5, "y":0}, + {"label" : "F7", "x":8.5, "y":0}, + {"label" : "F8", "x":9.5, "y":0}, + {"label" : "F9", "x":11, "y":0}, + {"label" : "F10", "x":12, "y":0}, + {"label" : "F11", "x":13, "y":0}, + {"label" : "F12", "x":14, "y":0}, + {"label" : "Print screen", "x":15.25, "y":0}, + {"label" : "Scroll lock", "x":16.25, "y":0}, + {"label" : "Pause", "x":17.25, "y":0}, + + {"label" : "`", "x":0, "y":1.25}, + {"label" : "1", "x":1, "y":1.25}, + {"label" : "2", "x":2, "y":1.25}, + {"label" : "3", "x":3, "y":1.25}, + {"label" : "4", "x":4, "y":1.25}, + {"label" : "5", "x":5, "y":1.25}, + {"label" : "6", "x":6, "y":1.25}, + {"label" : "7", "x":7, "y":1.25}, + {"label" : "8", "x":8, "y":1.25}, + {"label" : "9", "x":9, "y":1.25}, + {"label" : "0", "x":10, "y":1.25}, + {"label" : "-", "x":11, "y":1.25}, + {"label" : "=", "x":12, "y":1.25}, + {"label" : "Backspace", "x":13, "y":1.25, "w":2}, + {"label" : "Insert", "x":15.25, "y":1.25}, + {"label" : "Home", "x":16.25, "y":1.25}, + {"label" : "Page up", "x":17.25, "y":1.25}, + + {"label" : "Tab", "x":0, "y":2.25, "w":1.5}, + {"label" : "Q", "x":1.5, "y":2.25}, + {"label" : "W", "x":2.5, "y":2.25}, + {"label" : "E", "x":3.5, "y":2.25}, + {"label" : "R", "x":4.5, "y":2.25}, + {"label" : "T", "x":5.5, "y":2.25}, + {"label" : "Y", "x":6.5, "y":2.25}, + {"label" : "U", "x":7.5, "y":2.25}, + {"label" : "I", "x":8.5, "y":2.25}, + {"label" : "O", "x":9.5, "y":2.25}, + {"label" : "P", "x":10.5, "y":2.25}, + {"label" : "[", "x":11.5, "y":2.25}, + {"label" : "]", "x":12.5, "y":2.25}, + {"label" : "|", "x":13.5, "y":2.25, "w":1.5}, + {"label" : "Delete", "x":15.25, "y":2.25}, + {"label" : "End", "x":16.25, "y":2.25}, + {"label" : "Page down", "x":17.25, "y":2.25}, + + {"label" : "Caps lock", "x":0, "y":3.25, "w":1.75}, + {"label" : "A", "x":1.75, "y":3.25}, + {"label" : "S", "x":2.75, "y":3.25}, + {"label" : "D", "x":3.75, "y":3.25}, + {"label" : "F", "x":4.75, "y":3.25}, + {"label" : "G", "x":5.75, "y":3.25}, + {"label" : "H", "x":6.75, "y":3.25}, + {"label" : "J", "x":7.75, "y":3.25}, + {"label" : "K", "x":8.75, "y":3.25}, + {"label" : "L", "x":9.75, "y":3.25}, + {"label" : ";", "x":10.75, "y":3.25}, + {"label" : "'", "x":11.75, "y":3.25}, + {"label" : "Enter", "x":12.75, "y":3.25, "w":2.25}, + + {"label" : "Shift", "x":0, "y":4.25, "w":2.25}, + {"label" : "Z", "x":2.25, "y":4.25}, + {"label" : "X", "x":3.25, "y":4.25}, + {"label" : "C", "x":4.25, "y":4.25}, + {"label" : "V", "x":5.25, "y":4.25}, + {"label" : "B", "x":6.25, "y":4.25}, + {"label" : "N", "x":7.25, "y":4.25}, + {"label" : "M", "x":8.25, "y":4.25}, + {"label" : ",", "x":9.25, "y":4.25}, + {"label" : ".", "x":10.25, "y":4.25}, + {"label" : "/", "x":11.25, "y":4.25}, + {"label" : "Shift", "x":12.25, "y":4.25, "w":2.75}, + {"label" : "Up", "x":16.25, "y":4.25}, + + {"label" : "Ctrl", "x":0, "y":5.25, "w":1.5}, + {"label" : "Alt", "x":2.5, "y":5.25, "w":1.5}, + {"label" : "Space", "x":4, "y":5.25, "w":7}, + {"label" : "Alt", "x":11, "y":5.25, "w":1.5}, + {"label" : "Ctrl", "x":13.5, "y":5.25, "w":1.5}, + {"label" : "Left", "x":15.25, "y":5.25 }, + {"label" : "Down", "x":16.25, "y":5.25 }, + {"label" : "Right", "x":17.25, "y":5.25 } + ] + } + } +} 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 0000000000..397b815bd1 --- /dev/null +++ b/keyboards/hardlineworks/otd_plus/keymaps/default/keymap.c @@ -0,0 +1,22 @@ +#include QMK_KEYBOARD_H + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + + [0] = LAYOUT_tkl_ansi_wkl( + 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, + 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, + 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, + 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, + 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, + KC_LCTL, KC_LALT, KC_SPC, MO(1), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT + ), + + [1] = LAYOUT_tkl_ansi_wkl( + RESET, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______ + ), +}; diff --git a/keyboards/hardlineworks/otd_plus/otd_plus.c b/keyboards/hardlineworks/otd_plus/otd_plus.c new file mode 100644 index 0000000000..f7f96800d0 --- /dev/null +++ b/keyboards/hardlineworks/otd_plus/otd_plus.c @@ -0,0 +1,12 @@ +#include "otd_plus.h" + +void keyboard_pre_init_kb(void) { + led_init_ports(); + keyboard_pre_init_user(); +} +void led_init_ports(void) { + setPinOutput(CAPS_LOCK_LED_PIN); + setPinOutput(SCROLL_LOCK_LED_PIN); +} + + diff --git a/keyboards/hardlineworks/otd_plus/otd_plus.h b/keyboards/hardlineworks/otd_plus/otd_plus.h new file mode 100644 index 0000000000..f523cfff29 --- /dev/null +++ b/keyboards/hardlineworks/otd_plus/otd_plus.h @@ -0,0 +1,35 @@ + +#pragma once + +#include "quantum.h" + +/* This a shortcut to help you visually see your layout. + * + * The first section contains all of the arguments representing the physical + * layout of the board and position of the keys. + * + * The second converts the arguments into a two-dimensional array which + * represents the switch matrix. + */ +#define LAYOUT_tkl_ansi_wkl( \ + K00, K01, KB1, K02, KB2, K03, KB3, K04, KB4, KB5, K06, KB6, K07, KB7, K08, KB8, \ + K10, KA0, K11, KA1, K12, KA2, K13, KA3, K14, KA4, K15, KA5, K16, KA6, KA7, K18, KA8, \ + K20, K90, K21, K91, K22, K92, K23, K93, K24, K94, K25, K95, K26, K96, K97, K28, K98, \ + K30, K80, K31, K81, K32, K82, K33, K83, K34, K84, K35, K85, K86, \ + K40, K70, K41, K71, K42, K72, K43, K73, K44, K74, K45, K46, K48, \ + K50, K51, K62, K55, K56, K67, K58, K68 \ +) \ +{ \ + { K00, K01, K02, K03, K04, KC_NO, K06, K07, K08, }, \ + { K10, K11, K12, K13, K14, K15, K16, KC_NO, K18, }, \ + { K20, K21, K22, K23, K24, K25, K26, KC_NO, K28, }, \ + { K30, K31, K32, K33, K34, K35, KC_NO, KC_NO, KC_NO, }, \ + { K40, K41, K42, K43, K44, K45, K46, KC_NO, K48, }, \ + { K50, K51, KC_NO, KC_NO, KC_NO, K55, K56, KC_NO, K58, }, \ + { KC_NO, KC_NO, K62, KC_NO, KC_NO, KC_NO, KC_NO, K67, K68, }, \ + { K70, K71, K72, K73, K74, KC_NO, KC_NO, KC_NO, KC_NO, }, \ + { K80, K81, K82, K83, K84, K85, K86, KC_NO, KC_NO, }, \ + { K90, K91, K92, K93, K94, K95, K96, K97, K98, }, \ + { KA0, KA1, KA2, KA3, KA4, KA5, KA6, KA7, KA8, }, \ + { KC_NO, KB1, KB2, KB3, KB4, KB5, KB6, KB7, KB8, }, \ +} diff --git a/keyboards/hardlineworks/otd_plus/readme.md b/keyboards/hardlineworks/otd_plus/readme.md new file mode 100644 index 0000000000..7e2687e061 --- /dev/null +++ b/keyboards/hardlineworks/otd_plus/readme.md @@ -0,0 +1,16 @@ +# [OTD PLUS](https://github.com/gadzkun/Hardlineworks/tree/master/otd%20plus) + +![TKL top](https://user-images.githubusercontent.com/67696967/87272049-54679300-c4ff-11ea-8f5a-4f7c2825b85c.png) + +A modern PCB replacement for OTD keyboards, powered by HardLineWorks + +* Keyboard Maintainer : [Hardlineworks](https://github.com/gadzkun/Hardlineworks) +* Hardware Supported : otd plus pcb +* Hardware Availability : Private GB + +Make example for this keyboard (after setting up your build environment): + + make hardlineworks/otd_plus:default + +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/hardlineworks/otd_plus/rules.mk b/keyboards/hardlineworks/otd_plus/rules.mk new file mode 100644 index 0000000000..e07b7a000b --- /dev/null +++ b/keyboards/hardlineworks/otd_plus/rules.mk @@ -0,0 +1,22 @@ +# MCU name +MCU = atmega32u4 + +# Bootloader selection +BOOTLOADER = atmel-dfu + +# Build Options +# change yes to no to disable +# +BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration +MOUSEKEY_ENABLE = yes # Mouse keys +EXTRAKEY_ENABLE = yes # Audio control and System control +CONSOLE_ENABLE = no # Console for debug +COMMAND_ENABLE = no # Commands for debug and configuration +# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE +SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend +# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work +NKRO_ENABLE = yes # USB Nkey Rollover +BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality +RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow +BLUETOOTH_ENABLE = no # Enable Bluetooth +AUDIO_ENABLE = no # Audio output |