aboutsummaryrefslogtreecommitdiff
path: root/keyboards
diff options
context:
space:
mode:
authorMarco Pelegrini <[email protected]>2024-12-04 08:51:40 -0800
committerGitHub <[email protected]>2024-12-04 09:51:40 -0700
commit88d4462e528a64a50942b718e9b7705b4d6dd3dd (patch)
tree19f4bde7c524b8c2d6e037963c55a7ea1f4b267b /keyboards
parentc2bc6e2b3c4edd20587b881b480232734f966212 (diff)
downloadqmk_firmware-88d4462e528a64a50942b718e9b7705b4d6dd3dd.tar.gz
qmk_firmware-88d4462e528a64a50942b718e9b7705b4d6dd3dd.zip
[Keyboard] Add Marcopad (#24636)
* Marcopad debut * Applying core review suggestions * Optional layout with backlit * Line feeds and replacing dev board configs * Function to toggle backlight * Move to RGB Matrix * Fixing capitalization * Review comments --------- Co-authored-by: Marco Pelegrini <[email protected]>
Diffstat (limited to 'keyboards')
-rw-r--r--keyboards/marcopad/keyboard.json80
-rw-r--r--keyboards/marcopad/keymaps/backlit/keymap.c44
-rw-r--r--keyboards/marcopad/keymaps/backlit/rules.mk4
-rw-r--r--keyboards/marcopad/keymaps/default/keymap.c21
-rw-r--r--keyboards/marcopad/readme.md27
5 files changed, 176 insertions, 0 deletions
diff --git a/keyboards/marcopad/keyboard.json b/keyboards/marcopad/keyboard.json
new file mode 100644
index 0000000000..c0a8ca37c0
--- /dev/null
+++ b/keyboards/marcopad/keyboard.json
@@ -0,0 +1,80 @@
+{
+ "manufacturer": "pelegrini.ca",
+ "keyboard_name": "MarcoPad",
+ "maintainer": "Marco Pelegrini",
+ "bootloader": "rp2040",
+ "diode_direction": "ROW2COL",
+ "features": {
+ "bootmagic": true,
+ "rgb_matrix": true
+ },
+ "matrix_pins": {
+ "cols": ["GP4", "GP26", "GP27"],
+ "rows": ["GP15", "GP14", "GP29"]
+ },
+ "processor": "RP2040",
+ "rgb_matrix": {
+ "animations": {
+ "breathing": true,
+ "cycle_all": true,
+ "cycle_left_right": true,
+ "cycle_up_down": true,
+ "dual_beacon": true,
+ "pixel_rain": true,
+ "rainbow_beacon": true,
+ "rainbow_moving_chevron": true,
+ "solid_reactive": true,
+ "solid_reactive_multicross": true,
+ "solid_reactive_multinexus": true,
+ "solid_reactive_multiwide": true,
+ "splash": true,
+ "typing_heatmap": true
+ },
+ "default": {
+ "animation": "splash",
+ "hue": 132,
+ "sat": 102,
+ "speed": 80,
+ "val": 255
+ },
+ "driver": "ws2812",
+ "layout": [
+ {"matrix": [0, 0], "x": 0, "y": 0, "flags": 4},
+ {"matrix": [0, 1], "x": 0, "y": 32, "flags": 4},
+ {"matrix": [0, 2], "x": 0, "y": 64, "flags": 4},
+ {"matrix": [1, 0], "x": 112, "y": 0, "flags": 4},
+ {"matrix": [1, 1], "x": 112, "y": 32, "flags": 4},
+ {"matrix": [1, 2], "x": 112, "y": 64, "flags": 4},
+ {"matrix": [2, 0], "x": 224, "y": 0, "flags": 4},
+ {"matrix": [2, 1], "x": 224, "y": 32, "flags": 4},
+ {"matrix": [2, 2], "x": 224, "y": 64, "flags": 4}
+ ],
+ "sleep": true
+ },
+ "url": "https://pelegrini.ca/marcopad",
+ "usb": {
+ "device_version": "1.0.0",
+ "pid": "0x0000",
+ "vid": "0xFEED"
+ },
+ "ws2812": {
+ "driver": "vendor",
+ "pin": "GP28"
+ },
+ "community_layouts": ["ortho_3x3"],
+ "layouts": {
+ "LAYOUT_ortho_3x3": {
+ "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}
+ ]
+ }
+ }
+}
diff --git a/keyboards/marcopad/keymaps/backlit/keymap.c b/keyboards/marcopad/keymaps/backlit/keymap.c
new file mode 100644
index 0000000000..d70df8e6f7
--- /dev/null
+++ b/keyboards/marcopad/keymaps/backlit/keymap.c
@@ -0,0 +1,44 @@
+// 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_ortho_3x3(
+ KC_P7, KC_P8, KC_P9,
+ KC_P4, KC_P5, KC_P6,
+ KC_P1, KC_P2, KC_P3
+ )
+};
+
+const uint16_t PROGMEM backlight_next[] = {KC_P7, KC_P8, COMBO_END};
+const uint16_t PROGMEM backlight_toggle[] = {KC_P7, KC_P9, COMBO_END};
+const uint16_t PROGMEM hue_up[] = {KC_P7, KC_P4, COMBO_END};
+const uint16_t PROGMEM hue_down[] = {KC_P7, KC_P1, COMBO_END};
+const uint16_t PROGMEM sat_up[] = {KC_P7, KC_P5, COMBO_END};
+const uint16_t PROGMEM sat_down[] = {KC_P7, KC_P2, COMBO_END};
+const uint16_t PROGMEM value_up[] = {KC_P7, KC_P6, COMBO_END};
+const uint16_t PROGMEM value_down[] = {KC_P7, KC_P3, COMBO_END};
+const uint16_t PROGMEM speed_up[] = {KC_P8, KC_P4, COMBO_END};
+const uint16_t PROGMEM speed_down[] = {KC_P8, KC_P1, COMBO_END};
+combo_t key_combos[] = {
+ COMBO(backlight_next, RGB_MODE_FORWARD),
+ COMBO(backlight_toggle, RGB_TOG),
+ COMBO(hue_up, RGB_HUI),
+ COMBO(hue_down, RGB_HUD),
+ COMBO(sat_up, RGB_SAI),
+ COMBO(sat_down, RGB_SAD),
+ COMBO(value_up, RGB_VAI),
+ COMBO(value_down, RGB_VAD),
+ COMBO(speed_up, RGB_SPI),
+ COMBO(speed_down, RGB_SPD)
+};
diff --git a/keyboards/marcopad/keymaps/backlit/rules.mk b/keyboards/marcopad/keymaps/backlit/rules.mk
new file mode 100644
index 0000000000..c358f54605
--- /dev/null
+++ b/keyboards/marcopad/keymaps/backlit/rules.mk
@@ -0,0 +1,4 @@
+# Copyright (c) 2022 Marco Pelegrini <[email protected]>
+# SPDX-License-Identifier: GPL-2.0-or-later
+
+COMBO_ENABLE = yes
diff --git a/keyboards/marcopad/keymaps/default/keymap.c b/keyboards/marcopad/keymaps/default/keymap.c
new file mode 100644
index 0000000000..b892c0e80c
--- /dev/null
+++ b/keyboards/marcopad/keymaps/default/keymap.c
@@ -0,0 +1,21 @@
+// 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_ortho_3x3(
+ KC_P7, KC_P8, KC_P9,
+ KC_P4, KC_P5, KC_P6,
+ KC_P1, KC_P2, KC_P3
+ )
+};
diff --git a/keyboards/marcopad/readme.md b/keyboards/marcopad/readme.md
new file mode 100644
index 0000000000..6bc1733f30
--- /dev/null
+++ b/keyboards/marcopad/readme.md
@@ -0,0 +1,27 @@
+# MarcoPad
+
+![marcopad](https://i.imgur.com/AnC9SeW.png)
+
+*A compact 3x3 keys macropad built with RP-2040 Zero*
+
+* Keyboard Maintainer: [pelegrini.ca](https://pelegrini.ca/marcopad)
+* Hardware Supported: [MarcoPad](https://pelegrini.ca/marcopad)
+* Hardware Availability: [MarcoPad](https://pelegrini.ca/marcopad)
+
+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