]> _ Git - hi3-hackpad.git/commitdiff
firmware'
authorparking_turkeys <roya1060wien@gmail.com>
Mon, 14 Sep 2026 21:36:33 +0000 (17:36 -0400)
committerparking_turkeys <roya1060wien@gmail.com>
Mon, 14 Sep 2026 21:36:33 +0000 (17:36 -0400)
firmware/README.txt [new file with mode: 0644]
firmware/config.h [new file with mode: 0644]
firmware/keyboard.json [new file with mode: 0644]
firmware/keymap.c [new file with mode: 0644]
firmware/rules.mk [new file with mode: 0644]

diff --git a/firmware/README.txt b/firmware/README.txt
new file mode 100644 (file)
index 0000000..193bb56
--- /dev/null
@@ -0,0 +1,10 @@
+firmware for the macropad. written in QMK
+
+uhhh i honestly took a lot for this from the example macropad:
+<https://github.com/hackclub/hackpad/blob/clean/extras/orpheuspad>
+
+because the QMK docs were super confusing!! like seriously they don't actually
+say anything...
+
+
+gpl v3 because qmk
diff --git a/firmware/config.h b/firmware/config.h
new file mode 100644 (file)
index 0000000..8f54762
--- /dev/null
@@ -0,0 +1,2 @@
+#define ENCODER_A_PINS { GP7, GP29 }
+#define ENCODER_B_PINS { GP6, GP28 }
diff --git a/firmware/keyboard.json b/firmware/keyboard.json
new file mode 100644 (file)
index 0000000..582f160
--- /dev/null
@@ -0,0 +1,39 @@
+{
+    "manufacturer": "parking_turkeys",
+    "keyboard_name": "hi3-hackpad",
+    "maintainer": "git.gay/parking_turkeys",
+    "bootloader": "rp2040",
+    "diode_direction": "COL2ROW",
+    "features": {
+        "bootmagic": true,
+        "command": false,
+        "console": false,
+        "nkro": true
+    },
+    "matrix_pins": {
+        "cols": ["GP3", "GP4", "GP2"],
+        "rows": ["GP1", "GP26", "GP27"]
+    },
+    "processor": "RP2040",
+    "url": "https://git.gay/parking_turkeys/hi3-hackpad",
+    "usb": {
+        "device_version": "1.0.0",
+        "pid": "0x2012",
+        "vid": "0xFEED"
+    },
+    "layouts": {
+        "LAYOUT": {
+            "layout": [
+                {"matrix": [0, 0], "x": 0, "y": 0},
+                {"matrix": [1, 0], "x": 0, "y": 1},
+                {"matrix": [2, 0], "x": 0, "y": 2},
+                {"matrix": [0, 1], "x": 1, "y": 0},
+                {"matrix": [1, 1], "x": 1, "y": 1},
+                {"matrix": [2, 1], "x": 1, "y": 2},
+                {"matrix": [0, 2], "x": 2, "y": 0},
+                {"matrix": [1, 2], "x": 2, "y": 1},
+                {"matrix": [2, 2], "x": 2, "y": 2}
+            ]
+        }
+    }
+}
diff --git a/firmware/keymap.c b/firmware/keymap.c
new file mode 100644 (file)
index 0000000..975ceea
--- /dev/null
@@ -0,0 +1,33 @@
+#include QMK_KEYBOARD_H
+
+//my HI3 keybinds, i don't want to switch them for this.
+#define HI3_ATTACK      KC_H
+#define HI3_ULT         KC_J
+#define HI3_WEAPON      KC_K
+#define HI3_DASH        KC_L
+#define HI3_JUMP        KC_SPACE
+#define HI3_SPECIAL     KC_F //stage skill
+#define HI3_ELF         KC_U //i cant remember which mine is lmao
+
+#define HI3_CAM_UP      KC_X
+#define HI3_CAM_DOWN    KC_N
+#define HI3_CAM_LEFT    KC_C
+#define HI3_CAM_RIGHT   KC_B
+
+enum layer_names {
+       _HI3
+};
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+       [_HI3] = LAYOUT(
+                       HI3_SPECIAL,   HI3_JUMP,     KC_ESCAPE,
+                       HI3_ELF,       HI3_WEAPON,   HI3_ULT,
+                       KC_ENTER,      HI3_DASH,     HI3_ATTACK
+                      )
+};
+
+const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {
+       [_HI3] = { ENCODER_CCW_CW(HI3_CAM_DOWN, HI3_CAM_UP), ENCODER_CCW_CW(HI3_CAM_LEFT, HI3_CAM_RIGHT) }
+};
+
+
diff --git a/firmware/rules.mk b/firmware/rules.mk
new file mode 100644 (file)
index 0000000..522a67e
--- /dev/null
@@ -0,0 +1,4 @@
+ENCODER_ENABLE = yes
+ENCODER_MAP_ENABLE = yes
+# required for rp2040
+LTO_ENABLE = yes