88d4462e528a64a50942b718e9b7705b4d6dd3dd
- Author
- Marco Pelegrini <marcopelegrini@users.noreply.github.com>
- Committer
- GitHub <noreply@github.com>
- Date
Message
Diff
This diff is truncated to protect this page.
1diff --git a/keyboards/marcopad/keyboard.json b/keyboards/marcopad/keyboard.json
2new file mode 100644
3index 0000000000000000000000000000000000000000..c0a8ca37c049e3ded5cdf0d24c5d55f0237417e3
4--- /dev/null
5+++ b/keyboards/marcopad/keyboard.json
6@@ -0,0 +1,80 @@
7+{
8+ "manufacturer": "pelegrini.ca",
9+ "keyboard_name": "MarcoPad",
10+ "maintainer": "Marco Pelegrini",
11+ "bootloader": "rp2040",
12+ "diode_direction": "ROW2COL",
13+ "features": {
14+ "bootmagic": true,
15+ "rgb_matrix": true
16+ },
17+ "matrix_pins": {
18+ "cols": ["GP4", "GP26", "GP27"],
19+ "rows": ["GP15", "GP14", "GP29"]
20+ },
21+ "processor": "RP2040",
22+ "rgb_matrix": {
23+ "animations": {
24+ "breathing": true,
25+ "cycle_all": true,
26+ "cycle_left_right": true,
27+ "cycle_up_down": true,
28+ "dual_beacon": true,
29+ "pixel_rain": true,
30+ "rainbow_beacon": true,
31+ "rainbow_moving_chevron": true,
32+ "solid_reactive": true,
33+ "solid_reactive_multicross": true,
34+ "solid_reactive_multinexus": true,
35+ "solid_reactive_multiwide": true,
36+ "splash": true,
37+ "typing_heatmap": true
38+ },
39+ "default": {
40+ "animation": "splash",
41+ "hue": 132,
42+ "sat": 102,
43+ "speed": 80,
44+ "val": 255
45+ },
46+ "driver": "ws2812",
47+ "layout": [
48+ {"matrix": [0, 0], "x": 0, "y": 0, "flags": 4},
49+ {"matrix": [0, 1], "x": 0, "y": 32, "flags": 4},
50+ {"matrix": [0, 2], "x": 0, "y": 64, "flags": 4},
51+ {"matrix": [1, 0], "x": 112, "y": 0, "flags": 4},
52+ {"matrix": [1, 1], "x": 112, "y": 32, "flags": 4},
53+ {"matrix": [1, 2], "x": 112, "y": 64, "flags": 4},
54+ {"matrix": [2, 0], "x": 224, "y": 0, "flags": 4},
55+ {"matrix": [2, 1], "x": 224, "y": 32, "flags": 4},
56+ {"matrix": [2, 2], "x": 224, "y": 64, "flags": 4}
57+ ],
58+ "sleep": true
59+ },
60+ "url": "https://pelegrini.ca/marcopad",
61+ "usb": {
62+ "device_version": "1.0.0",
63+ "pid": "0x0000",
64+ "vid": "0xFEED"
65+ },
66+ "ws2812": {
67+ "driver": "vendor",
68+ "pin": "GP28"
69+ },
70+ "community_layouts": ["ortho_3x3"],
71+ "layouts": {
72+ "LAYOUT_ortho_3x3": {
73+ "layout": [
74+ {"matrix": [0, 0], "x": 0, "y": 0},
75+ {"matrix": [0, 1], "x": 0, "y": 1},
76+ {"matrix": [0, 2], "x": 0, "y": 2},
77+ {"matrix": [1, 0], "x": 1, "y": 0},
78+ {"matrix": [1, 1], "x": 1, "y": 1},
79+ {"matrix": [1, 2], "x": 1, "y": 2},
80+ {"matrix": [2, 0], "x": 2, "y": 0},
81+ {"matrix": [2, 1], "x": 2, "y": 1},
82+ {"matrix": [2, 2], "x": 2, "y": 2}
83+ ]
84+ }
85+ }
86+}
87diff --git a/keyboards/marcopad/keymaps/backlit/keymap.c b/keyboards/marcopad/keymaps/backlit/keymap.c
88new file mode 100644
89index 0000000000000000000000000000000000000000..d70df8e6f75b223d16efe38956eb828325af0244
90--- /dev/null
91+++ b/keyboards/marcopad/keymaps/backlit/keymap.c
92@@ -0,0 +1,44 @@
93+// Copyright (c) 2022 Marco Pelegrini <marco@pelegrini.ca>
94+// SPDX-License-Identifier: GPL-2.0-or-later
95+
96+#include QMK_KEYBOARD_H
97+
98+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
99+ /*
100+ * ┌───┬───┬───┐
101+ * │ 7 │ 8 │ 9 │
102+ * ├───┼───┼───┤
103+ * │ 4 │ 5 │ 6 │
104+ * ├───┼───┼───┤
105+ * │ 1 │ 2 │ 3 │
106+ * └───┴───┴───┘
107+ */
108+ [0] = LAYOUT_ortho_3x3(
109+ KC_P7, KC_P8, KC_P9,
110+ KC_P4, KC_P5, KC_P6,
111+ KC_P1, KC_P2, KC_P3
112+ )
113+};
114+
115+const uint16_t PROGMEM backlight_next[] = {KC_P7, KC_P8, COMBO_END};
116+const uint16_t PROGMEM backlight_toggle[] = {KC_P7, KC_P9, COMBO_END};
117+const uint16_t PROGMEM hue_up[] = {KC_P7, KC_P4, COMBO_END};
118+const uint16_t PROGMEM hue_down[] = {KC_P7, KC_P1, COMBO_END};
119+const uint16_t PROGMEM sat_up[] = {KC_P7, KC_P5, COMBO_END};
120+const uint16_t PROGMEM sat_down[] = {KC_P7, KC_P2, COMBO_END};
121+const uint16_t PROGMEM value_up[] = {KC_P7, KC_P6, COMBO_END};
122+const uint16_t PROGMEM value_down[] = {KC_P7, KC_P3, COMBO_END};
123+const uint16_t PROGMEM speed_up[] = {KC_P8, KC_P4, COMBO_END};
124+const uint16_t PROGMEM speed_down[] = {KC_P8, KC_P1, COMBO_END};
125+combo_t key_combos[] = {
126+ COMBO(backlight_next, RGB_MODE_FORWARD),
127+ COMBO(backlight_toggle, RGB_TOG),
128+ COMBO(hue_up, RGB_HUI),
129+ COMBO(hue_down, RGB_HUD),
130+ COMBO(sat_up, RGB_SAI),
131+ COMBO(sat_down, RGB_SAD),
132+ COMBO(value_up, RGB_VAI),
133+ COMBO(value_down, RGB_VAD),
134+ COMBO(speed_up, RGB_SPI),
135+ COMBO(speed_down, RGB_SPD)
136+};
137diff --git a/keyboards/marcopad/keymaps/backlit/rules.mk b/keyboards/marcopad/keymaps/backlit/rules.mk
138new file mode 100644
139index 0000000000000000000000000000000000000000..c358f5460504b347e154503117b6bf06c45d7708
140--- /dev/null
141+++ b/keyboards/marcopad/keymaps/backlit/rules.mk
142@@ -0,0 +1,4 @@
143+# Copyright (c) 2022 Marco Pelegrini <marco@pelegrini.ca>
144+# SPDX-License-Identifier: GPL-2.0-or-later
145+
146+COMBO_ENABLE = yes
147diff --git a/keyboards/marcopad/keymaps/default/keymap.c b/keyboards/marcopad/keymaps/default/keymap.c
148new file mode 100644
149index 0000000000000000000000000000000000000000..b892c0e80c8186c51ad55f56bdc9d09a0831b8c3
150--- /dev/null
151+++ b/keyboards/marcopad/keymaps/default/keymap.c
152@@ -0,0 +1,21 @@
153+// Copyright (c) 2022 Marco Pelegrini <marco@pelegrini.ca>
154+// SPDX-License-Identifier: GPL-2.0-or-later
155+
156+#include QMK_KEYBOARD_H
157+
158+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
159+ /*
160+ * ┌───┬───┬───┐
161+ * │ 7 │ 8 │ 9 │
162+ * ├───┼───┼───┤
163+ * │ 4 │ 5 │ 6 │
164+ * ├───┼───┼───┤
165+ * │ 1 │ 2 │ 3 │
166+ * └───┴───┴───┘
167+ */
168+ [0] = LAYOUT_ortho_3x3(
169+ KC_P7, KC_P8, KC_P9,
170+ KC_P4, KC_P5, KC_P6,
171+ KC_P1, KC_P2, KC_P3
172+ )
173+};
174diff --git a/keyboards/marcopad/readme.md b/keyboards/marcopad/readme.md
175new file mode 100644
176index 0000000000000000000000000000000000000000..6bc1733f30ccbf9a5435e2bf787fc298945235e9
177--- /dev/null
178+++ b/keyboards/marcopad/readme.md
179@@ -0,0 +1,27 @@
180+# MarcoPad
181+
182+
183+
184+*A compact 3x3 keys macropad built with RP-2040 Zero*
185+
186+* Keyboard Maintainer: [pelegrini.ca](https://pelegrini.ca/marcopad)
187+* Hardware Supported: [MarcoPad](https://pelegrini.ca/marcopad)
188+* Hardware Availability: [MarcoPad](https://pelegrini.ca/marcopad)
189+
190+Make example for this keyboard (after setting up your build environment):
191+
192+ make marcopad:default
193+
194+Flashing example for this keyboard:
195+
196+ make marcopad:default:flash
197+