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

Add keyboard alhenkb #20123

Merged
merged 23 commits into from
Mar 29, 2023
Merged
Show file tree
Hide file tree
Changes from 20 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
73 changes: 73 additions & 0 deletions keyboards/alhenkb/macropad5x4/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
{
"manufacturer": "AlhenKB",
"keyboard_name": "Macropad 5x4",
"maintainer": "alhenx",
"development_board": "promicro",
"diode_direction": "COL2ROW",
"features": {
"bootmagic": true,
"command": false,
"console": false,
"extrakey": true,
"mousekey": true,
"nkro": true
},
"matrix_pins": {
"rows": ["F5", "F7", "B3", "B6", "B5"],
"cols": ["F4", "F6", "B1", "B2"]
},
"url": "",
"usb": {
"device_version": "1.0.0",
"pid": "0x0001",
"vid": "0x6178"
},
"community_layouts": ["ortho_5x4"],
alhenx marked this conversation as resolved.
Show resolved Hide resolved
"layouts": {
alhenx marked this conversation as resolved.
Show resolved Hide resolved
"LAYOUT_ortho_5x4": {
"layout": [
{"label": "K00 (F5,F4)", "matrix": [0, 0], "x": 0, "y": 0},
{"label": "K01 (F5,F6)", "matrix": [0, 1], "x": 1, "y": 0},
{"label": "K02 (F5,B1)", "matrix": [0, 2], "x": 2, "y": 0},
{"label": "K03 (F5,B2)", "matrix": [0, 3], "x": 3, "y": 0},
{"label": "K10 (F7,F4)", "matrix": [1, 0], "x": 0, "y": 1},
{"label": "K11 (F7,F6)", "matrix": [1, 1], "x": 1, "y": 1},
{"label": "K12 (F7,B1)", "matrix": [1, 2], "x": 2, "y": 1},
{"label": "K12 (F7,B2)", "matrix": [1, 3], "x": 3, "y": 1},
{"label": "K20 (B3,F4)", "matrix": [2, 0], "x": 0, "y": 2},
{"label": "K21 (B3,F6)", "matrix": [2, 1], "x": 1, "y": 2},
{"label": "K22 (B3,B1)", "matrix": [2, 2], "x": 2, "y": 2},
{"label": "K23 (B3,B2)", "matrix": [2, 3], "x": 3, "y": 1},
{"label": "K30 (B6,F4)", "matrix": [3, 0], "x": 0, "y": 3},
{"label": "K31 (B6,F6)", "matrix": [3, 1], "x": 1, "y": 3},
{"label": "K32 (B6,B1)", "matrix": [3, 2], "x": 2, "y": 3},
{"label": "K32 (B6,B2)", "matrix": [3, 3], "x": 3, "y": 3},
{"label": "K40 (B5,F4)", "matrix": [4, 0], "x": 0, "y": 4},
{"label": "K42 (B5,F6)", "matrix": [4, 1], "x": 1, "y": 4},
{"label": "K42 (B5,B1)", "matrix": [4, 2], "x": 2, "y": 4},
{"label": "K43 (B5,B2)", "matrix": [4, 3], "x": 3, "y": 3}
]
},
"LAYOUT_num4x5": {
"layout": [
{"label": "K00 (F5,F4)", "matrix": [0, 0], "x": 0, "y": 0},
{"label": "K01 (F5,F6)", "matrix": [0, 1], "x": 1, "y": 0},
{"label": "K02 (F5,B1)", "matrix": [0, 2], "x": 2, "y": 0},
{"label": "K03 (F5,B2)", "matrix": [0, 3], "x": 3, "y": 0},
{"label": "K10 (F7,F4)", "matrix": [1, 0], "x": 0, "y": 1},
{"label": "K11 (F7,F6)", "matrix": [1, 1], "x": 1, "y": 1},
{"label": "K12 (F7,B1)", "matrix": [1, 2], "x": 2, "y": 1},
{"label": "K23 (B3,B2)", "matrix": [2, 3], "x": 3, "y": 1, "h": 2},
{"label": "K20 (B3,F4)", "matrix": [2, 0], "x": 0, "y": 2},
{"label": "K21 (B3,F6)", "matrix": [2, 1], "x": 1, "y": 2},
{"label": "K22 (B3,B1)", "matrix": [2, 2], "x": 2, "y": 2},
{"label": "K30 (B6,F4)", "matrix": [3, 0], "x": 0, "y": 3},
{"label": "K31 (B6,F6)", "matrix": [3, 1], "x": 1, "y": 3},
{"label": "K32 (B6,B1)", "matrix": [3, 2], "x": 2, "y": 3},
{"label": "K43 (B5,B2)", "matrix": [4, 3], "x": 3, "y": 3, "h": 2},
{"label": "K40 (B5,F4)", "matrix": [4, 0], "x": 0, "y": 4, "w": 2},
{"label": "K42 (B5,B1)", "matrix": [4, 2], "x": 2, "y": 4}
]
alhenx marked this conversation as resolved.
Show resolved Hide resolved
}
}
}
27 changes: 27 additions & 0 deletions keyboards/alhenkb/macropad5x4/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// Copyright 2023 QMK
// SPDX-License-Identifier: GPL-2.0-or-later

#include QMK_KEYBOARD_H

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/*
* ┌───┬───┬───┬───┐
* │ 1 │ 2 │ 3 │ 4 │
* ├───┼───┼───┼───┤
* │ 5 │ 6 │ 7 │ 8 │
* ├───┼───┼───┼───┤
* │ Q │ W │ E │ R │
* ├───┼───┼───┼───┤
* │ A │ S │ D │ F │
* ├───┼───┼───┼───┤
* │ Z │ X │ C │ V │
* └───────┴───┴───┘
*/
[0] = LAYOUT_ortho_5x4(
KC_P1, KC_P2, KC_P3, KC_P4,
KC_P5, KC_P6, KC_P7, KC_P8,
KC_Q, KC_W, KC_E, KC_R,
KC_A, KC_S, KC_D, KC_F,
KC_Z, KC_X, KC_C, KC_V
),
};
48 changes: 48 additions & 0 deletions keyboards/alhenkb/macropad5x4/keymaps/numpad/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
// Copyright 2023 QMK
// SPDX-License-Identifier: GPL-2.0-or-later

#include QMK_KEYBOARD_H

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/*
* ┌───┬───┬───┬───┐
* │TG1│ / │ * │ - │
* ├───┼───┼───┼───┤
* │ 7 │ 8 │ 9 │ │
* ├───┼───┼───┤ + │
* │ 4 │ 5 │ 6 │ │
* ├───┼───┼───┼───┤
* │ 1 │ 2 │ 3 │ │
* ├───┴───┼───┤Ent│
* │ 0 │ . │ │
* └───────┴───┴───┘
*/
[0] = LAYOUT_num4x5(
TG(1), KC_PSLS, KC_PAST, KC_PMNS,
KC_P7, KC_P8, KC_P9, KC_PPLS,
KC_P4, KC_P5, KC_P6,
KC_P1, KC_P2, KC_P3, KC_PENT,
KC_P0, KC_PDOT
),
alhenx marked this conversation as resolved.
Show resolved Hide resolved

/*
* ┌───┬───┬───┬───┐
* │TG1│ / │ * │ - │
* ┌───┬───┬───┐───┤
* │Hom│ ↑ │PgU│ │
* ├───┼───┼───┤ + │
* │ ← │ │ → │ │
* ├───┼───┼───┤───┤
* │End│ ↓ │PgD│ │
* ├───┴───┼───┤Ent│
* │Insert │Del│ │
* └───────┴───┘───┘
*/
[1] = LAYOUT_num4x5(
_______, _______, _______, _______,
KC_HOME, KC_UP, KC_PGUP, _______,
KC_LEFT, XXXXXXX, KC_RGHT,
KC_END, KC_DOWN, KC_PGDN, _______,
KC_INS, KC_DEL
)
alhenx marked this conversation as resolved.
Show resolved Hide resolved
};
27 changes: 27 additions & 0 deletions keyboards/alhenkb/macropad5x4/keymaps/via/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// Copyright 2023 QMK
// SPDX-License-Identifier: GPL-2.0-or-later

#include QMK_KEYBOARD_H

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/*
* ┌───┬───┬───┬───┐
* │ 1 │ 2 │ 3 │ 4 │
* ├───┼───┼───┼───┤
* │ 5 │ 6 │ 7 │ 8 │
* ├───┼───┼───┼───┤
* │ Q │ W │ E │ R │
* ├───┼───┼───┼───┤
* │ A │ S │ D │ F │
* ├───┼───┼───┼───┤
* │ Z │ X │ C │ V │
* └───────┴───┴───┘
*/
[0] = LAYOUT_ortho_5x4(
KC_P1, KC_P2, KC_P3, KC_P4,
KC_P5, KC_P6, KC_P7, KC_P8,
KC_Q, KC_W, KC_E, KC_R,
KC_A, KC_S, KC_D, KC_F,
KC_Z, KC_X, KC_C, KC_V
),
};
1 change: 1 addition & 0 deletions keyboards/alhenkb/macropad5x4/keymaps/via/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
VIA_ENABLE = yes
41 changes: 41 additions & 0 deletions keyboards/alhenkb/macropad5x4/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# AlhenKB - Macropad 5x4 and Numpad

alhenx marked this conversation as resolved.
Show resolved Hide resolved
![Imgur Image](https://imgur.com/t7Zi2w3h.jpg)
![Imgur Image](https://i.imgur.com/5xlKJlBh.jpg)


A macropad 5x4 for MerryPCB.

* Keyboard Maintainer: [Alhen](https://github.com/alhenx)
* Hardware Supported: MerryPCB

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

Macropad:

make alhenkb/macropad5x4:default

Numpad:

make alhenkb/macropad5x4:numpad

Flashing example for this keyboard:

Macropad:

make alhenkb/macropad5x4:default:flash


Numpad:

make alhenkb/macropad5x4:numpad: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 key at (0,0) in the matrix (usually the top left key or Escape) and plug in the keyboard
* **Physical reset button**: Briefly press the button on the back of the PCB - some may have pads you must short instead
* **Keycode in layout**: Press the key mapped to `QK_BOOT` if it is available
1 change: 1 addition & 0 deletions keyboards/alhenkb/macropad5x4/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# This file intentionally left blank