diff options
| -rw-r--r-- | keyboards/dnworks/numpad/config.h | 20 | ||||
| -rw-r--r-- | keyboards/dnworks/numpad/info.json | 73 | ||||
| -rw-r--r-- | keyboards/dnworks/numpad/keymaps/default/keymap.c | 29 | ||||
| -rw-r--r-- | keyboards/dnworks/numpad/keymaps/via/keymap.c | 29 | ||||
| -rw-r--r-- | keyboards/dnworks/numpad/keymaps/via/rules.mk | 1 | ||||
| -rw-r--r-- | keyboards/dnworks/numpad/matrix_diagram.md | 25 | ||||
| -rw-r--r-- | keyboards/dnworks/numpad/readme.md | 27 | ||||
| -rw-r--r-- | keyboards/dnworks/numpad/rules.mk | 1 | 
8 files changed, 205 insertions, 0 deletions
| diff --git a/keyboards/dnworks/numpad/config.h b/keyboards/dnworks/numpad/config.h new file mode 100644 index 0000000000..77970ce4d3 --- /dev/null +++ b/keyboards/dnworks/numpad/config.h @@ -0,0 +1,20 @@ +/* +Copyright 2023 zeix (@itsme-zeix) + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 2 of the License, or +(at your option) any later version. +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program.  If not, see <http://www.gnu.org/licenses/>. +*/ + +#pragma once + +#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET +#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET_TIMEOUT 500U diff --git a/keyboards/dnworks/numpad/info.json b/keyboards/dnworks/numpad/info.json new file mode 100644 index 0000000000..26fbcbf146 --- /dev/null +++ b/keyboards/dnworks/numpad/info.json @@ -0,0 +1,73 @@ +{ +    "manufacturer": "dnworks", +    "keyboard_name": "DN Numpad Rev1", +    "maintainer": "itsme-zeix", +    "bootloader": "rp2040", +    "diode_direction": "COL2ROW", +    "matrix_pins": { +        "cols": ["GP5", "GP6", "GP7", "GP25"], +        "rows": ["GP11", "GP4", "GP3", "GP2", "GP1", "GP0", "GP24"] +    }, +    "processor": "RP2040", +    "usb": { +        "device_version": "0.0.1", +        "pid": "0x2937", +        "vid": "0x4C23" +    }, +    "community_layouts": ["numpad_6x4", "ortho_6x4"], +    "layouts": { +        "LAYOUT_numpad_6x4": { +            "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": [1, 0], "x": 0, "y": 1.25}, +                {"matrix": [1, 1], "x": 1, "y": 1.25}, +                {"matrix": [1, 2], "x": 2, "y": 1.25}, +                {"matrix": [6, 3], "x": 3, "y": 1.25}, +                {"matrix": [2, 0], "x": 0, "y": 2.25}, +                {"matrix": [2, 1], "x": 1, "y": 2.25}, +                {"matrix": [2, 2], "x": 2, "y": 2.25}, +                {"matrix": [3, 0], "x": 0, "y": 3.25}, +                {"matrix": [3, 1], "x": 1, "y": 3.25}, +                {"matrix": [3, 2], "x": 2, "y": 3.25}, +                {"matrix": [3, 3], "x": 3, "y": 2.25, "h": 2}, +                {"matrix": [4, 0], "x": 0, "y": 4.25}, +                {"matrix": [4, 1], "x": 1, "y": 4.25}, +                {"matrix": [4, 2], "x": 2, "y": 4.25}, +                {"matrix": [5, 0], "x": 0, "y": 5.25, "w": 2}, +                {"matrix": [5, 2], "x": 2, "y": 5.25}, +                {"matrix": [5, 3], "x": 3, "y": 4.25, "h": 2} +            ] +        }, +        "LAYOUT_ortho_6x4": { +            "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": [1, 0], "x": 0, "y": 1.25}, +                {"matrix": [1, 1], "x": 1, "y": 1.25}, +                {"matrix": [1, 2], "x": 2, "y": 1.25}, +                {"matrix": [6, 3], "x": 3, "y": 1.25}, +                {"matrix": [2, 0], "x": 0, "y": 2.25}, +                {"matrix": [2, 1], "x": 1, "y": 2.25}, +                {"matrix": [2, 2], "x": 2, "y": 2.25}, +                {"matrix": [2, 3], "x": 3, "y": 2.25}, +                {"matrix": [3, 0], "x": 0, "y": 3.25}, +                {"matrix": [3, 1], "x": 1, "y": 3.25}, +                {"matrix": [3, 2], "x": 2, "y": 3.25}, +                {"matrix": [3, 3], "x": 3, "y": 3.25}, +                {"matrix": [4, 0], "x": 0, "y": 4.25}, +                {"matrix": [4, 1], "x": 1, "y": 4.25}, +                {"matrix": [4, 2], "x": 2, "y": 4.25}, +                {"matrix": [4, 3], "x": 3, "y": 4.25}, +                {"matrix": [5, 0], "x": 0, "y": 5.25}, +                {"matrix": [5, 1], "x": 1, "y": 5.25}, +                {"matrix": [5, 2], "x": 2, "y": 5.25}, +                {"matrix": [5, 3], "x": 3, "y": 5.25} +            ] +        } +    } +}
\ No newline at end of file diff --git a/keyboards/dnworks/numpad/keymaps/default/keymap.c b/keyboards/dnworks/numpad/keymaps/default/keymap.c new file mode 100644 index 0000000000..ad8c588704 --- /dev/null +++ b/keyboards/dnworks/numpad/keymaps/default/keymap.c @@ -0,0 +1,29 @@ +/* +Copyright 2023 zeix (@itsme-zeix) + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 2 of the License, or +(at your option) any later version. +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program.  If not, see <http://www.gnu.org/licenses/>. +*/ +#include QMK_KEYBOARD_H + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + +[0] = LAYOUT_ortho_6x4( +        KC_ESC,  KC_APP,  KC_TAB,  KC_BSPC, +     +        KC_NUM,  KC_PSLS, KC_PAST, KC_PMNS, +        KC_P7,   KC_P8,   KC_P9,   KC_PPLS, +        KC_P4,   KC_P5,   KC_P6,   KC_PPLS, +        KC_P1,   KC_P2,   KC_P3,   KC_PENT, +        KC_P0,   KC_P0,   KC_PDOT, KC_PENT +    ), +}; diff --git a/keyboards/dnworks/numpad/keymaps/via/keymap.c b/keyboards/dnworks/numpad/keymaps/via/keymap.c new file mode 100644 index 0000000000..ad8c588704 --- /dev/null +++ b/keyboards/dnworks/numpad/keymaps/via/keymap.c @@ -0,0 +1,29 @@ +/* +Copyright 2023 zeix (@itsme-zeix) + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 2 of the License, or +(at your option) any later version. +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program.  If not, see <http://www.gnu.org/licenses/>. +*/ +#include QMK_KEYBOARD_H + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + +[0] = LAYOUT_ortho_6x4( +        KC_ESC,  KC_APP,  KC_TAB,  KC_BSPC, +     +        KC_NUM,  KC_PSLS, KC_PAST, KC_PMNS, +        KC_P7,   KC_P8,   KC_P9,   KC_PPLS, +        KC_P4,   KC_P5,   KC_P6,   KC_PPLS, +        KC_P1,   KC_P2,   KC_P3,   KC_PENT, +        KC_P0,   KC_P0,   KC_PDOT, KC_PENT +    ), +}; diff --git a/keyboards/dnworks/numpad/keymaps/via/rules.mk b/keyboards/dnworks/numpad/keymaps/via/rules.mk new file mode 100644 index 0000000000..1e5b99807c --- /dev/null +++ b/keyboards/dnworks/numpad/keymaps/via/rules.mk @@ -0,0 +1 @@ +VIA_ENABLE = yes diff --git a/keyboards/dnworks/numpad/matrix_diagram.md b/keyboards/dnworks/numpad/matrix_diagram.md new file mode 100644 index 0000000000..9bd195650d --- /dev/null +++ b/keyboards/dnworks/numpad/matrix_diagram.md @@ -0,0 +1,25 @@ +# Matrix Diagram for dnworks numpad rev1 + +``` +Top Left 2u +┌───────┐┌───────┐ +│00     ││02     │ Top Right 2u +└───────┘└───────┘ +┌───┬───┬───┬───┐ +│00 │01 │02 │03 │ +└───┴───┴───┴───┘ +┌───┬───┬───┬───┐ +│10 │11 │12 │63 │ +├───┼───┼───┼───┤ ┌───┐ +│20 │21 │22 │   │ │23 │ +├───┼───┼───┤33 │ ├───┤ Split Plus +│30 │31 │32 │   │ │33 │ +├───┼───┼───┼───┤ └───┘ ┌───┐ +│40 │41 │42 │   │       │43 │ +├───┴───┼───┤53 │       ├───┤ Split Enter +│50     │52 │   │       │53 │ +└───────┴───┴───┘       └───┘ +┌───┬───┐ +│50 │51 │ Split Zero +└───┴───┘ +``` diff --git a/keyboards/dnworks/numpad/readme.md b/keyboards/dnworks/numpad/readme.md new file mode 100644 index 0000000000..080ced6f77 --- /dev/null +++ b/keyboards/dnworks/numpad/readme.md @@ -0,0 +1,27 @@ +# DN Numpad Rev1 + + + +PCB that supports the numpad designed by dnworks. + +* Keyboard Maintainer: [Zeix](https://github.com/itsme-zeix) +* Hardware Supported: DN Numpad Rev1 +* Hardware Availability: dnworks.co + +Make example for this keyboard (after setting up your build environment): + +    make dnworks/numpad:default + +Flashing example for this keyboard: + +    make dnworks/numpad:default:flash + +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). + +## Bootloader + +Enter the bootloader in 3 ways: + +* **Bootmagic reset**: Hold down the top left key and plug in the keyboard +* **Physical reset button**: Briefly press the `RESET` button twice or short the `USB_BOOT` and `GND` pads and plug in the keyboard +* **Keycode in layout**: Press the key mapped to `QK_BOOT` if it is available
\ No newline at end of file diff --git a/keyboards/dnworks/numpad/rules.mk b/keyboards/dnworks/numpad/rules.mk new file mode 100644 index 0000000000..6e7633bfe0 --- /dev/null +++ b/keyboards/dnworks/numpad/rules.mk @@ -0,0 +1 @@ +# This file intentionally left blank | 
