Skip to content
Merged
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
14,924 changes: 14,924 additions & 0 deletions hackpads/osupad/CAD/osupad_case.step

Large diffs are not rendered by default.

110,722 changes: 110,722 additions & 0 deletions hackpads/osupad/CAD/osupad_full.step

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions hackpads/osupad/Firmware/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#define ENCODER_A_PINS { GP6 }
#define ENCODER_B_PINS { GP5 }
74 changes: 74 additions & 0 deletions hackpads/osupad/Firmware/keyboard.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
{
"manufacturer": "Sreekar Ramisetty",
"keyboard_name": "sreekar617_hackpad",
"description": "A 4x1 macropad with 4 keys",
"maintainer": "Sreekar617",
"bootloader": "rp2040",
"diode_direction": "COL2ROW",
"features": {
"bootmagic": true,
"command": false,
"console": false,
"extrakey": true,
"mousekey": true,
"nkro": true
},
"matrix_pins": {
"direct": [
["GP4", "GP7", "GP8", "GP9", "GP10"]
]
},
"processor": "RP2040",
"url": "",
"usb": {
"device_version": "1.0.0",
"pid": "0x0000",
"vid": "0xFEED"
},
"macros": [
[
{"action":"down", "keycodes": ["LCTL"]},
{"action":"down", "keycodes": ["LSFT"]},
{"action":"tap", "keycodes": ["M"]},
{"action":"tap", "keycodes": ["SPC"]},
{"action":"up", "keycodes": ["LSFT"]},
{"action":"up", "keycodes": ["LCTL"]}
],
[
{"action":"down", "keycodes": ["LSFT"]},
{"action":"tap", "keycodes": ["TAB"]},
{"action":"tap", "keycodes": ["TAB"]},
{"action":"up", "keycodes": ["LSFT"]},

{"action":"tap", "keycodes": ["TAB"]},
{"action":"tap", "keycodes": ["SPC"]},
{"action":"tap", "keycodes": ["TAB"]},
{"action":"tap", "keycodes": ["SPC"]},
{"action":"tap", "keycodes": ["TAB"]},
{"action":"tap", "keycodes": ["SPC"]}
],
[
{"action":"down", "keycodes": ["LALT"]},
{"action":"tap", "keycodes": ["F4"]},
{"action":"up", "keycodes": ["LALT"]}
],
[
{"action":"down", "keycodes": ["LCTL"]},
{"action":"down", "keycodes": ["LSFT"]},
{"action":"tap", "keycodes": ["ESC"]},
{"action":"up", "keycodes": ["LSFT"]},
{"action":"up", "keycodes": ["LCTL"]}
]
],
"layouts": {
"LAYOUT": {
"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": [0, 4], "x": 4, "y": 0}
]
}
}
}
22 changes: 22 additions & 0 deletions hackpads/osupad/Firmware/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// Copyright 2023 QMK
// SPDX-License-Identifier: GPL-2.0-or-later

#include QMK_KEYBOARD_H

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/*
* ┌───┐
* │ o │
* ┌───────────┼───┤
* │ D │ F │ J │ K │
* └───┴───┴───┴───┘
*/
[0] = LAYOUT(
KC_KB_MUTE, // encoder
QK_MACRO_0, QK_MACRO_1, QK_MACRO_2, QK_MACRO_3 // dfjk
)
};

const uint16_t PROGMEM encoder_map[][1][2] = {
[0] = { ENCODER_CCW_CW(KC_KB_VOLUME_DOWN, KC_KB_VOLUME_UP) },
};
3 changes: 3 additions & 0 deletions hackpads/osupad/Firmware/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
LTO_ENABLE = yes
ENCODER_ENABLE = yes
ENCODER_MAP_ENABLE = yes
4 changes: 4 additions & 0 deletions hackpads/osupad/PCB/bom.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
"Id";"Designator";"Footprint";"Quantity";"Designation";"Supplier and ref";
1;"SW3,SW4,SW2,SW1";"SW_Cherry_MX_1.00u_PCB";4;"SW_Push";;;
2;"U1";"XIAO-Generic-Hybrid-14P-2.54-21X17.8MM";1;"MOUDLE-SEEEDUINO-XIAO";;;
3;"SW5";"RotaryEncoder_Alps_EC11E-Switch_Vertical_H20mm";1;"RotaryEncoder_Switch";;;
Loading