Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Keyboard] Added nibell micropad4x4 #24662

Merged
merged 9 commits into from
Dec 2, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions keyboards/nibell/micropad4x4/keyboard.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"manufacturer": "nibell",
"keyboard_name": "nibell/micropad4x4",
"maintainer": "Linus Nibell",
"bootloader": "rp2040",
"diode_direction": "COL2ROW",
"features": {
"bootmagic": true,
"extrakey": true,
"mousekey": true,
"nkro": true
},
"matrix_pins": {
"cols": ["GP2", "GP3", "GP4", "GP5"],
"rows": ["GP10", "GP11", "GP12", "GP13"]
},
"processor": "RP2040",
"url": "",
"usb": {
"device_version": "1.0.0",
"pid": "0xFEED",
"vid": "0x4C4E"
},
Nibell marked this conversation as resolved.
Show resolved Hide resolved
"layouts": {
"LAYOUT_ortho_4x4": {
"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}
]
}
}
}
90 changes: 90 additions & 0 deletions keyboards/nibell/micropad4x4/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
/*
* 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] = {
/* LAYER 0
* ┌───────┬─────┬────────┬───────┐
* │ F1 │ F2 │ F3 │ F4 │
* ├───────┼─────┼────────┼───────┤
* │ F5 │ F6 │ F7 │ F8 │
* ├───────┼─────┼────────┼───────┤
* │ 1 │ 2 │ 3 │ 4 │
* ├───────┼─────┼────────┼───────┤
* │ PRTSC │ INS │ RSHIFT │ RCTRL │
* └───────┴─────┴────────┴───────┘
*/
[0] = LAYOUT_ortho_4x4(
KC_F1, KC_F2, KC_F3, KC_F4,
KC_F5, KC_F6, KC_F7, KC_F8,
KC_1, KC_2, KC_3, KC_4,
KC_PRINT_SCREEN, KC_INSERT, KC_RIGHT_SHIFT, KC_RIGHT_CTRL
),

/* LAYER 1
* ┌─────┬─────┬─────┬─────┐
* │ │ │ │ │
* ├─────┼─────┼─────┼─────┤
* │ │ │ │ │
* ├─────┼─────┼─────┼─────┤
* │ │ │ │ │
* ├─────┼─────┼─────┼─────┤
* │ │ │ │ │
* └─────┴─────┴─────┴─────┘
*/
[1] = LAYOUT_ortho_4x4(
_______, _______, _______, _______,
_______, _______, _______, _______,
_______, _______, _______, _______,
_______, _______, _______, _______
),

/* LAYER 2
* ┌─────┬─────┬─────┬─────┐
* │ │ │ │ │
* ├─────┼─────┼─────┼─────┤
* │ │ │ │ │
* ├─────┼─────┼─────┼─────┤
* │ │ │ │ │
* ├─────┼─────┼─────┼─────┤
* │ │ │ │ │
* └─────┴─────┴─────┴─────┘
*/
[2] = LAYOUT_ortho_4x4(
_______, _______, _______, _______,
_______, _______, _______, _______,
_______, _______, _______, _______,
_______, _______, _______, _______
),

/* LAYER 3
* ┌─────┬─────┬─────┬─────┐
* │ │ │ │ │
* ├─────┼─────┼─────┼─────┤
* │ │ │ │ │
* ├─────┼─────┼─────┼─────┤
* │ │ │ │ │
* ├─────┼─────┼─────┼─────┤
* │ │ │ │ │
* └─────┴─────┴─────┴─────┘
*/
[3] = LAYOUT_ortho_4x4(
_______, _______, _______, _______,
_______, _______, _______, _______,
_______, _______, _______, _______,
_______, _______, _______, _______
),
Nibell marked this conversation as resolved.
Show resolved Hide resolved
};
15 changes: 15 additions & 0 deletions keyboards/nibell/micropad4x4/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Micropad 4x4

![Micropad 4x4](https://imgur.com/ugfJLXJ.jpg)

A budget-friendly 4x4 Macropad

* Keyboard Maintainer: [nibell](https://github.com/Nibell)
Hardware Supported: Raspberry Pi Pico
* Hardware Availability: [GitHub](https://github.com/Nibell/Keyboards/tree/main/micropad4x4)

Make example for this keyboard (after setting up your build environment):

make nibell/micropad4x4:default
waffle87 marked this conversation as resolved.
Show resolved Hide resolved

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).
drashna marked this conversation as resolved.
Show resolved Hide resolved