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

New PR #331

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all 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
8 changes: 8 additions & 0 deletions hackpads/MyHackpad/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# BOM
-16 Gateron Milky Yellows switches
-16 Through Hole 1N4148 Diodes
-16 Keycaps
-1 EC11 Rotary encoder
-1 PCB
-1 Through Hole Seeed XIAO RP2040
-1 Case
Binary file added hackpads/MyHackpad/cad/BottomCase.stl
Binary file not shown.
115,727 changes: 115,727 additions & 0 deletions hackpads/MyHackpad/cad/MacroPadCase.step

Large diffs are not rendered by default.

Binary file added hackpads/MyHackpad/cad/TopCase.stl
Binary file not shown.
Binary file not shown.
Binary file not shown.
8 changes: 8 additions & 0 deletions hackpads/MyHackpad/firmware/qmk/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#pragma once

//Encoder Setup
#define ENCODER_A_PINS { GP6 }
#define ENCODER_B_PINS { GP7 }

#define ENCODER_RESOLUTION 4

52 changes: 52 additions & 0 deletions hackpads/MyHackpad/firmware/qmk/keyboard.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"manufacturer": "Ethan Pope",
"keyboard_name": "4x4_macropad",
"maintainer": "ethanJPope",
"bootloader": "rp2040",
"diode_direction": "COL2ROW",
"features": {
"bootmagic": true,
"command": false,
"console": false,
"extrakey": true,
"mousekey": true,
"nkro": true
},
"matrix_pins": {
"cols": ["GP26", "GP27", "GP28", "GP29"],
"rows": ["GP0", "GP3", "GP4", "GP2", "GP1"]
},
"processor": "RP2040",
"url": "",
"usb": {
"device_version": "1.0.0",
"pid": "0x0000",
"vid": "0xFEED"
},
"layouts": {
"LAYOUT_ortho_5x4": {
"layout": [
{"matrix": [0, 0], "x": 0, "y": 0},
{"matrix": [0, 1], "x": 1, "y": 0},
{"matrix": [0, 2], "x": 2, "y": 0},
{"matrix": [0, 3], "x": 3, "y": 0},
{"matrix": [1, 0], "x": 0, "y": 1},
{"matrix": [1, 1], "x": 1, "y": 1},
{"matrix": [1, 2], "x": 2, "y": 1},
{"matrix": [1, 3], "x": 3, "y": 1},
{"matrix": [2, 0], "x": 0, "y": 2},
{"matrix": [2, 1], "x": 1, "y": 2},
{"matrix": [2, 2], "x": 2, "y": 2},
{"matrix": [2, 3], "x": 3, "y": 2},
{"matrix": [3, 0], "x": 0, "y": 3},
{"matrix": [3, 1], "x": 1, "y": 3},
{"matrix": [3, 2], "x": 2, "y": 3},
{"matrix": [3, 3], "x": 3, "y": 3},
{"matrix": [4, 0], "x": 0, "y": 4},
{"matrix": [4, 1], "x": 1, "y": 4},
{"matrix": [4, 2], "x": 2, "y": 4},
{"matrix": [4, 3], "x": 3, "y": 4}
]
}
}
}
26 changes: 26 additions & 0 deletions hackpads/MyHackpad/firmware/qmk/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// Copyright 2023 QMK
// SPDX-License-Identifier: GPL-2.0-or-later

#include QMK_KEYBOARD_H

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {

[0] = LAYOUT_ortho_5x4(
KC_0, KC_0, KC_0, KC_0,
KC_P7, KC_P8, KC_P9, KC_PSLS,
KC_P4, KC_P5, KC_P6, KC_PAST,
KC_P1, KC_P2, KC_P3, KC_PMNS,
KC_P0, KC_PDOT, KC_PENT, KC_PPLS
)
};

bool encoder_update_user(uint8_t index, bool clockwise) {
if (index == 0) { /* First encoder */
if (clockwise) {
tap_code(KC_VOLU);
} else {
tap_code(KC_VOLD);
}
}
return false;
};
27 changes: 27 additions & 0 deletions hackpads/MyHackpad/firmware/qmk/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# 4x4_macropad

![4x4_macropad](imgur.com image replace me!)

*A short description of the keyboard/project*

* Keyboard Maintainer: [Ethan Pope](https://github.com/ethanJPope)
* Hardware Supported: *The PCBs, controllers supported*
* Hardware Availability: *Links to where you can find this hardware*

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

make 4x4_macropad:default

Flashing example for this keyboard:

make 4x4_macropad: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 (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
5 changes: 5 additions & 0 deletions hackpads/MyHackpad/firmware/qmk/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
MCU = RP2040

ENCODER_ENABLE = yes


Loading