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] Add Marcopad #24636

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
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
5 changes: 5 additions & 0 deletions keyboards/marcopad/config.h
marcopelegrini marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// Copyright (c) 2022 Marco Pelegrini <[email protected]>
// SPDX-License-Identifier: GPL-2.0-or-later

#define WS2812_DRIVER vendor
#define WS2812_DI_PIN GP28
60 changes: 60 additions & 0 deletions keyboards/marcopad/keyboard.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
"manufacturer": "pelegrini.ca",
"keyboard_name": "marcopad",
"maintainer": "Marco Pelegrini",
"development_board": "promicro_rp2040",
marcopelegrini marked this conversation as resolved.
Show resolved Hide resolved
"diode_direction": "ROW2COL",
"features": {
"bootmagic": true,
"command": false,
"console": false,
"extrakey": false,
"mousekey": false,
"nkro": false
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"command": false,
"console": false,
"extrakey": false,
"mousekey": false,
"nkro": false
"extrakey": true,
"mousekey": true,
"rgblight": true

},
"matrix_pins": {
"cols": ["GP4", "GP26", "GP27"],
"rows": ["GP15", "GP14", "GP29"]
},
"url": "https://pelegrini.ca/marcopad",
"usb": {
"device_version": "1.0.0",
"pid": "0x0000",
"vid": "0xFEED"
},
"backlight": {
"pin": "GP28"
},
marcopelegrini marked this conversation as resolved.
Show resolved Hide resolved
"rgblight": {
"led_count": 9,
"saturation_steps": 8,
"brightness_steps": 8,
"animations": {
"breathing": true,
"rainbow_mood": true,
"rainbow_swirl": true,
"snake": true,
"knight": true,
"christmas": true,
"static_gradient": true,
"rgb_test": true,
"alternating": true,
"twinkle": true
}
},
marcopelegrini marked this conversation as resolved.
Show resolved Hide resolved
"layouts": {
"LAYOUT": {
marcopelegrini marked this conversation as resolved.
Show resolved Hide resolved
"layout": [
{ "matrix": [0, 0], "x": 0, "y": 0 },
{ "matrix": [0, 1], "x": 0, "y": 1 },
{ "matrix": [0, 2], "x": 0, "y": 2 },
{ "matrix": [1, 0], "x": 1, "y": 0 },
{ "matrix": [1, 1], "x": 1, "y": 1 },
{ "matrix": [1, 2], "x": 1, "y": 2 },
{ "matrix": [2, 0], "x": 2, "y": 0 },
{ "matrix": [2, 1], "x": 2, "y": 1 },
{ "matrix": [2, 2], "x": 2, "y": 2 }
]
}
}
}
26 changes: 26 additions & 0 deletions keyboards/marcopad/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// Copyright (c) 2022 Marco Pelegrini <[email protected]>
// SPDX-License-Identifier: GPL-2.0-or-later

#include QMK_KEYBOARD_H

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/*
* ┌───┬───┬───┐
* │ 7 │ 8 │ 9 │
* ├───┼───┼───┤
* │ 4 │ 5 │ 6 │
* ├───┼───┼───┤
* │ 1 │ 2 │ 3 │
* └───┴───┴───┘
*/
[0] = LAYOUT(
marcopelegrini marked this conversation as resolved.
Show resolved Hide resolved
KC_P7, KC_P8, KC_P9,
KC_P4, KC_P5, KC_P6,
KC_P1, KC_P2, KC_P3
)
};

const uint16_t PROGMEM backlight_combo[] = {KC_P7, KC_P8, COMBO_END};
combo_t key_combos[] = {
COMBO(backlight_combo, UG_NEXT)
};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • default keymaps should be "pristine"
    • what does pristine mean? no custom keycodes. no advanced features like tap dance or macros
Suggested change
const uint16_t PROGMEM backlight_combo[] = {KC_P7, KC_P8, COMBO_END};
combo_t key_combos[] = {
COMBO(backlight_combo, UG_NEXT)
};

marcopelegrini marked this conversation as resolved.
Show resolved Hide resolved
3 changes: 3 additions & 0 deletions keyboards/marcopad/keymaps/default/rules.mk
marcopelegrini marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
RGBLIGHT_ENABLE = yes
WS2812_DRIVER = vendor
COMBO_ENABLE = yes
27 changes: 27 additions & 0 deletions keyboards/marcopad/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Marcopad

![macropad](imgur.com image replace me!)
marcopelegrini marked this conversation as resolved.
Show resolved Hide resolved

*A compact 3x3 keys macropad built with RP-2040 Zero*

* Keyboard Maintainer: [Marco Pelegrini](https://pelegrini.ca/marcopad)
* Hardware Supported: [Macropad PCB](https://pelegrini.ca/marcopad/hardware)
* Hardware Availability: [Macropad](https://pelegrini.ca/marcopad)
marcopelegrini marked this conversation as resolved.
Show resolved Hide resolved

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

make marcopad:default

Flashing example for this keyboard:

make marcopad: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 key at (0,0) in the matrix (top left key) and plug in the keyboard
* **Physical reset button**: Using 2 paperclips, press and hold the BOOT button, then short press the RESET button on the back of the Marcopad
* **Physical reset button + plug in**: Using a paperclip, press and hold the BOOT button, then plug in the Marcopad