numpad layout

This commit is contained in:
Sam Hadow 2025-05-10 21:27:51 +02:00
parent bc42f44d0d
commit 0dc84f2f5a
4 changed files with 98 additions and 1 deletions

View File

@ -6,6 +6,6 @@ Redistribution and use in source and binary forms, with or without modification,
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
4. Redistributions of any form whatsoever must retain the following acknowledgment: 'This product includes software developed by the "Universidad de Palermo, Argentina" (http://www.palermo.edu/).'
4. Redistributions of any form whatsoever must retain the following acknowledgment: 'This product includes software developed by "Sam Hadow" (http://hadow.fr/).'
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

View File

@ -0,0 +1,61 @@
{
"manufacturer": "rp2040-zero",
"keyboard_name": "numpad",
"maintainer": "Sam Hadow",
"bootloader": "rp2040",
"diode_direction": "COL2ROW",
"features": {
"bootmagic": true,
"command": false,
"console": false,
"extrakey": true,
"mousekey": true,
"nkro": true
},
"matrix_pins": {
"rows": ["GP0", "GP1", "GP2", "GP3", "GP4", "GP5"],
"cols": ["GP6", "GP7", "GP8", "GP9"]
},
"processor": "RP2040",
"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": [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": [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": [3,0], "x": 0, "y": 3 },
{ "matrix": [3,1], "x": 1, "y": 3 },
{ "matrix": [3,2], "x": 2, "y": 3 },
{ "matrix": [3,3], "x": 3, "y": 3 },
{ "matrix": [4,0], "x": 0, "y": 4 },
{ "matrix": [4,1], "x": 1, "y": 4 },
{ "matrix": [4,2], "x": 2, "y": 4 },
{ "matrix": [4,3], "x": 3, "y": 4 },
{ "matrix": [5,0], "x": 0, "y": 5 },
{ "matrix": [5,1], "x": 1, "y": 5 },
{ "matrix": [5,2], "x": 2, "y": 5 },
{ "matrix": [5,3], "x": 3, "y": 5 }
]
}
},
"url": "",
"usb": {
"device_version": "1.0.0",
"pid": "0x0000",
"vid": "0xFEED"
}
}

View File

@ -0,0 +1,30 @@
#include QMK_KEYBOARD_H
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/*
*
*
* ESCF1 F2 F3
*
* NUM / * -
*
* 7 8 9
* ENT
* 4 5 6
*
* 1 2 3
* +
* 0 .
*
*/
[0] = LAYOUT(
KC_ESC, KC_F1, KC_F2, KC_F3,
KC_NUM_LOCK, KC_PSLS, KC_PAST, KC_PMNS,
KC_P7, KC_P8, KC_P9, KC_PPLS,
// row 3 (only cols 02 used)
KC_P4, KC_P5, KC_P6, KC_NO,
KC_P1, KC_P2, KC_P3, KC_PENT,
// row 5 (only cols 0 & 2 used)
KC_P0, KC_NO, KC_PDOT, KC_NO
)
};

View File

@ -0,0 +1,6 @@
# numpad
6 rows, 4 columns numpad
* Keyboard Maintainer: [Sam Hadow](https://git.hadow.fr/sam.hadow)
* Hardware Supported: rp2040 zero