diff --git a/keyboards/lazydesigners/duo/info.json b/keyboards/lazydesigners/duo/info.json new file mode 100644 index 0000000000..cb6245bb53 --- /dev/null +++ b/keyboards/lazydesigners/duo/info.json @@ -0,0 +1,72 @@ +{ + "keyboard_name": "duo", + "manufacturer": "lazydesigners", + "url": "http://lazydesigners.cn", + "maintainer": "lazydesigners", + "usb": { + "vid": "0x4C44", + "pid": "0x0044", + "device_version": "0.0.1" + }, + "processor": "STM32F072", + "bootloader": "stm32-dfu", + "diode_direction": "COL2ROW", + "matrix_pins": { + "cols": [ "B11", "B3", "B5", "B6", "B7", "B8", "B9", "C13", "C14", "C15", "F0", "F1" ], + "rows": [ "A14", "A15", "B4", "B10"] + }, + "layouts": { + "LAYOUT": { + "layout": [ + {"matrix": [0, 0], "x": 0, "y": 0}, + {"matrix": [0, 1], "x": 1, "y": 0}, + {"matrix": [0, 2], "x": 2, "y": 0}, + {"matrix": [0, 3], "x": 3, "y": 0}, + {"matrix": [0, 4], "x": 4, "y": 0}, + {"matrix": [0, 5], "x": 5, "y": 0}, + {"matrix": [0, 6], "x": 6, "y": 0}, + {"matrix": [0, 7], "x": 7, "y": 0}, + {"matrix": [0, 8], "x": 8, "y": 0}, + {"matrix": [0, 9], "x": 9, "y": 0}, + {"matrix": [0, 10], "x": 10, "y": 0}, + {"matrix": [0, 11], "x": 11, "y": 0}, + + {"matrix": [1, 0], "x": 0, "y": 1}, + {"matrix": [1, 1], "x": 1, "y": 1}, + {"matrix": [1, 2], "x": 2, "y": 1}, + {"matrix": [1, 3], "x": 3, "y": 1}, + {"matrix": [1, 4], "x": 4, "y": 1}, + {"matrix": [1, 5], "x": 5, "y": 1}, + {"matrix": [1, 6], "x": 6, "y": 1}, + {"matrix": [1, 7], "x": 7, "y": 1}, + {"matrix": [1, 8], "x": 8, "y": 1}, + {"matrix": [1, 9], "x": 9, "y": 1}, + {"matrix": [1, 10], "x": 10, "y": 1}, + {"matrix": [1, 11], "x": 11, "y": 1}, + + {"matrix": [2, 0], "x": 0, "y": 2}, + {"matrix": [2, 1], "x": 1, "y": 2}, + {"matrix": [2, 2], "x": 2, "y": 2}, + {"matrix": [2, 3], "x": 3, "y": 2}, + {"matrix": [2, 4], "x": 4, "y": 2}, + {"matrix": [2, 5], "x": 5, "y": 2}, + {"matrix": [2, 6], "x": 6, "y": 2}, + {"matrix": [2, 7], "x": 7, "y": 2}, + {"matrix": [2, 8], "x": 8, "y": 2}, + {"matrix": [2, 9], "x": 9, "y": 2}, + {"matrix": [2, 10], "x": 10, "y": 2}, + {"matrix": [2, 11], "x": 11, "y": 2}, + + {"matrix": [3, 0], "x": 0, "y": 3, "w": 1.25}, + {"matrix": [3, 1], "x": 1.25, "y": 3 }, + {"matrix": [3, 2], "x": 2.25, "y": 3, "w": 1.25}, + {"matrix": [3, 4], "x": 3.5, "y": 3, "w": 2 }, + {"matrix": [3, 6], "x": 5.5, "y": 3 }, + {"matrix": [3, 7], "x": 6.5, "y": 3, "w": 2 }, + {"matrix": [3, 8], "x": 8.5, "y": 3, "w": 1.25}, + {"matrix": [3, 9], "x": 9.75, "y": 3 }, + {"matrix": [3, 10], "x": 10.75,"y": 3, "w": 1.25} + ] + } + } +} diff --git a/keyboards/lazydesigners/duo/keymaps/default/keymap.c b/keyboards/lazydesigners/duo/keymaps/default/keymap.c new file mode 100644 index 0000000000..a40f26d80f --- /dev/null +++ b/keyboards/lazydesigners/duo/keymaps/default/keymap.c @@ -0,0 +1,30 @@ +// Copyright 2024 LAZDESIGNERS +// SPDX-License-Identifier: GPL-2.0-or-later + +#include QMK_KEYBOARD_H + +#define LT2_TAB LT(2, KC_TAB) +#define LT1_SPC LT(1, KC_SPC) + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + [0] = LAYOUT( + KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, + LT2_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_ENT, + KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_DOT, KC_UP, KC_COMM, MO(2), + KC_LCTL, KC_LGUI, KC_RALT, LT1_SPC, KC_SPC, KC_SPC, KC_LEFT, KC_DOWN, KC_RGHT + ), + [1] = LAYOUT( + KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_NO, + QK_BOOT, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_NO, + KC_NO, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, + KC_VOLD, KC_MUTE, KC_VOLU, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO + ), + [2] = LAYOUT( + KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, + KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, + KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, + KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO + ), +}; + + diff --git a/keyboards/lazydesigners/duo/keymaps/vial/config.h b/keyboards/lazydesigners/duo/keymaps/vial/config.h new file mode 100644 index 0000000000..7cc754421b --- /dev/null +++ b/keyboards/lazydesigners/duo/keymaps/vial/config.h @@ -0,0 +1,13 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ + + +#pragma once + +#define VIAL_KEYBOARD_UID {0xBA, 0xD2, 0xF0, 0xFA, 0x20, 0x23, 0x91, 0x1C} + +#define VIAL_UNLOCK_COMBO_ROWS { 0, 0 } +#define VIAL_UNLOCK_COMBO_COLS { 0, 11 } + +#define VIAL_COMBO_ENTRIES 32 +#define VIAL_TAP_DANCE_ENTRIES 32 +#define DYNAMIC_KEYMAP_LAYER_COUNT 8 diff --git a/keyboards/lazydesigners/duo/keymaps/vial/keymap.c b/keyboards/lazydesigners/duo/keymaps/vial/keymap.c new file mode 100644 index 0000000000..a40f26d80f --- /dev/null +++ b/keyboards/lazydesigners/duo/keymaps/vial/keymap.c @@ -0,0 +1,30 @@ +// Copyright 2024 LAZDESIGNERS +// SPDX-License-Identifier: GPL-2.0-or-later + +#include QMK_KEYBOARD_H + +#define LT2_TAB LT(2, KC_TAB) +#define LT1_SPC LT(1, KC_SPC) + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + [0] = LAYOUT( + KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, + LT2_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_ENT, + KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_DOT, KC_UP, KC_COMM, MO(2), + KC_LCTL, KC_LGUI, KC_RALT, LT1_SPC, KC_SPC, KC_SPC, KC_LEFT, KC_DOWN, KC_RGHT + ), + [1] = LAYOUT( + KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_NO, + QK_BOOT, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_NO, + KC_NO, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, + KC_VOLD, KC_MUTE, KC_VOLU, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO + ), + [2] = LAYOUT( + KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, + KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, + KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, + KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO + ), +}; + + diff --git a/keyboards/lazydesigners/duo/keymaps/vial/rules.mk b/keyboards/lazydesigners/duo/keymaps/vial/rules.mk new file mode 100644 index 0000000000..4f7618e9b2 --- /dev/null +++ b/keyboards/lazydesigners/duo/keymaps/vial/rules.mk @@ -0,0 +1,2 @@ +VIA_ENABLE = yes +VIAL_ENABLE = yes diff --git a/keyboards/lazydesigners/duo/keymaps/vial/vial.json b/keyboards/lazydesigners/duo/keymaps/vial/vial.json new file mode 100644 index 0000000000..0c586f892b --- /dev/null +++ b/keyboards/lazydesigners/duo/keymaps/vial/vial.json @@ -0,0 +1,33 @@ +{ + "matrix": {"rows": 4, "cols": 12}, + "layouts": { + "labels": + [ + ["Style", "Staggered","Ortho"], + ["Bottom Row", "Classic", "HHKB Classic","2.25+2","HHKB2.25+2", "3U", "HHKB3U","2X2U","HHKB2X2U"] + ], + "keymap": [ + [ + {"y":0.25,"x":1},"0,0","0,1","0,2","0,3","0,4","0,5","0,6","0,7","0,8","0,9","0,10","0,11" + ], + [ + {"x":1,"w":1.25},"1,0\n\n\n0,0","1,1\n\n\n0,0","1,2\n\n\n0,0","1,3\n\n\n0,0","1,4\n\n\n0,0","1,5\n\n\n0,0","1,6\n\n\n0,0","1,7\n\n\n0,0","1,8\n\n\n0,0","1,9\n\n\n0,0",{"w":1.75},"1,10\n\n\n0,0", + {"x":1},"1,0\n\n\n0,1","1,1\n\n\n0,1","1,2\n\n\n0,1","1,3\n\n\n0,1","1,4\n\n\n0,1","1,5\n\n\n0,1","1,6\n\n\n0,1","1,7\n\n\n0,1","1,8\n\n\n0,1","1,9\n\n\n0,1","1,10\n\n\n0,1","1,11\n\n\n0,1" + ], + [ + {"x":1,"w":1.75},"2,0\n\n\n0,0","2,1\n\n\n0,0","2,2\n\n\n0,0","2,3\n\n\n0,0","2,4\n\n\n0,0","2,5\n\n\n0,0","2,6\n\n\n0,0","2,7\n\n\n0,0","2,8\n\n\n0,0","2,9\n\n\n0,0",{"w":1.25},"2,10\n\n\n0,0", + {"x":1},"2,0\n\n\n0,1","2,1\n\n\n0,1","2,2\n\n\n0,1","2,3\n\n\n0,1","2,4\n\n\n0,1","2,5\n\n\n0,1","2,6\n\n\n0,1","2,7\n\n\n0,1","2,8\n\n\n0,1","2,9\n\n\n0,1","2,10\n\n\n0,1","2,11\n\n\n0,1" + ], + [ + {"x":1,"w":1.25},"3,0\n\n\n1,0","3,1\n\n\n1,0",{"w":1.25},"3,2\n\n\n1,0",{"w":2.25},"3,4\n\n\n1,0",{"w":2.75},"3,6\n\n\n1,0",{"w":1.25},"3,8\n\n\n1,0","3,9\n\n\n1,0",{"w":1.25},"3,10\n\n\n1,0", + {"x":2.25,"w":1.25,"d": true},"\n\n\n1,1","3,1\n\n\n1,1",{"w":1.25},"3,2\n\n\n1,1",{"w":2.25},"3,4\n\n\n1,1",{"w":2.75},"3,6\n\n\n1,1",{"w":1.25},"3,8\n\n\n1,1","3,9\n\n\n1,1", + {"x":1,"w":1.25},"3,0\n\n\n1,2","3,1\n\n\n1,2",{"w":1.25},"3,2\n\n\n1,2",{"w":2.25},"3,4\n\n\n1,2",{"w":2},"3,6\n\n\n1,2","3,7\n\n\n1,2","3,8\n\n\n1,2","3,9\n\n\n1,2",{"w":1.25},"3,10\n\n\n1,2", + {"x":2.25,"w":1.25,"d": true},"\n\n\n1,3","3,1\n\n\n1,3",{"w":1.25},"3,2\n\n\n1,3",{"w":2.25},"3,4\n\n\n1,3",{"w":2},"3,6\n\n\n1,3","3,7\n\n\n1,3","3,8\n\n\n1,3","3,9\n\n\n1,3", + {"x":1,"w":1.25},"3,0\n\n\n1,4","3,1\n\n\n1,4",{"w":1.25},"3,2\n\n\n1,4","3,4\n\n\n1,4",{"w":3},"3,6\n\n\n1,4","3,7\n\n\n1,4",{"w":1.25},"3,8\n\n\n1,4","3,9\n\n\n1,4",{"w":1.25},"3,10\n\n\n1,4", + {"x":2.25,"w":1.25,"d": true},"\n\n\n1,5","3,1\n\n\n1,5",{"w":1.25},"3,2\n\n\n1,5","3,4\n\n\n1,5",{"w":3},"3,6\n\n\n1,5","3,7\n\n\n1,5",{"w":1.25},"3,8\n\n\n1,5","3,9\n\n\n1,5", + {"x":1,"w":1.25},"3,0\n\n\n1,6","3,1\n\n\n1,6",{"w":1.25},"3,2\n\n\n1,6",{"w":2},"3,4\n\n\n1,6","3,6\n\n\n1,6",{"w":2},"3,7\n\n\n1,6",{"w":1.25},"3,8\n\n\n1,6","3,9\n\n\n1,6",{"w":1.25},"3,10\n\n\n1,6", + {"x":2.25,"w":1.25,"d": true},"\n\n\n1,7","3,1\n\n\n1,7",{"w":1.25},"3,2\n\n\n1,7",{"w":2},"3,4\n\n\n1,7","3,6\n\n\n1,7",{"w":2},"3,7\n\n\n1,7",{"w":1.25},"3,8\n\n\n1,7","3,9\n\n\n1,7" + ] + ] + } +} diff --git a/keyboards/lazydesigners/duo/readme.md b/keyboards/lazydesigners/duo/readme.md new file mode 100644 index 0000000000..efa073c66c --- /dev/null +++ b/keyboards/lazydesigners/duo/readme.md @@ -0,0 +1,19 @@ +# duo + +A gasket mounted 40% keyboard designed and produced in 2024 by [LAZYDESIGNERS](http://lazydesigners.cn). +An original version was designed by LAZYDESIGNERS in 2018, which is not compatible with the new duo design. + +* Keyboard Maintainer: [LAZYDESIGNERS](https://github.com/jackytrabbit) +* Hardware Supported: duo +* Hardware Availability: Check [LAZYDESIGNERS's homepage.](http://lazydesigners.cn) + +Make example for this keyboard (after setting up your vial build environment): + + make lazydesigners/duo:vial + +Flashing example for this keyboard: + + make lazydesigners/duo:vial:flash + +**Reset Key:** To enter the bootloader, press the boot button and short the reset pads together on the PCB. + diff --git a/keyboards/lazydesigners/duo/rules.mk b/keyboards/lazydesigners/duo/rules.mk new file mode 100644 index 0000000000..2c43a6d05d --- /dev/null +++ b/keyboards/lazydesigners/duo/rules.mk @@ -0,0 +1,12 @@ +# Build Options +# change yes to no to disable +# +BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite +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 +NKRO_ENABLE = yes # Enable N-Key Rollover +BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality +RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow +AUDIO_ENABLE = no # Audio output \ No newline at end of file