forked from forks/qmk_firmware
[Keyboard] Add dnworks numpad (#22882)
* add dnworks numpad * Apply suggestions from code review (Added community layouts) Co-authored-by: Drashna Jaelre <drashna@live.com> * fix linting * formatted json --------- Co-authored-by: Drashna Jaelre <drashna@live.com>
This commit is contained in:
parent
06ed8dd14f
commit
39f06c3afb
20
keyboards/dnworks/numpad/config.h
Normal file
20
keyboards/dnworks/numpad/config.h
Normal file
|
@ -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
|
73
keyboards/dnworks/numpad/info.json
Normal file
73
keyboards/dnworks/numpad/info.json
Normal file
|
@ -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}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
29
keyboards/dnworks/numpad/keymaps/default/keymap.c
Normal file
29
keyboards/dnworks/numpad/keymaps/default/keymap.c
Normal file
|
@ -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
|
||||
),
|
||||
};
|
29
keyboards/dnworks/numpad/keymaps/via/keymap.c
Normal file
29
keyboards/dnworks/numpad/keymaps/via/keymap.c
Normal file
|
@ -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
|
||||
),
|
||||
};
|
1
keyboards/dnworks/numpad/keymaps/via/rules.mk
Normal file
1
keyboards/dnworks/numpad/keymaps/via/rules.mk
Normal file
|
@ -0,0 +1 @@
|
|||
VIA_ENABLE = yes
|
25
keyboards/dnworks/numpad/matrix_diagram.md
Normal file
25
keyboards/dnworks/numpad/matrix_diagram.md
Normal file
|
@ -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
|
||||
└───┴───┘
|
||||
```
|
27
keyboards/dnworks/numpad/readme.md
Normal file
27
keyboards/dnworks/numpad/readme.md
Normal file
|
@ -0,0 +1,27 @@
|
|||
# DN Numpad Rev1
|
||||
|
||||
![DN Numpad Rev1](https://i.imgur.com/OpklWTih.png)
|
||||
|
||||
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
|
1
keyboards/dnworks/numpad/rules.mk
Normal file
1
keyboards/dnworks/numpad/rules.mk
Normal file
|
@ -0,0 +1 @@
|
|||
# This file intentionally left blank
|
Loading…
Reference in a new issue