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
10 changes: 10 additions & 0 deletions hackpads/Rudransh's Hackpad!!!/BOM.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# BOM :

1) 15 MX style switches
2) 1 xiao rp2040
3) 15 1N4148 Diodes (through hole)
4) case - should be white in color
5) pcb
6) 15 keycaps ( Red color )
7) Need 8 M3 screwholes
8) 8x m3 screws
Binary file added hackpads/Rudransh's Hackpad!!!/CAD/Base.stl
Binary file not shown.
Binary file added hackpads/Rudransh's Hackpad!!!/CAD/fullcase.3mf
Binary file not shown.
Binary file added hackpads/Rudransh's Hackpad!!!/CAD/top plate.stl
Binary file not shown.
Empty file.
43 changes: 43 additions & 0 deletions hackpads/Rudransh's Hackpad!!!/Firmware/code.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
import board

from kmk.kmk_keyboard import KMKKeyboard
from kmk.keys import KC
from kmk.handlers.sequences import simple_key_sequence
from kmk.extensions.media_keys import MediaKeys
from kmk.matrix import DiodeOrientation

keyboard = KMKKeyboard()
keyboard.extensions.append(MediaKeys())

keyboard.col_pins = (board.D0, board.D1, board.D2, board.D3, board.D4)
keyboard.row_pins = (board.D5, board.D6, board.D7)
keyboard.diode_orientation = DiodeOrientation.COL2ROW

# Custom key definitions
LOCK_PC = simple_key_sequence((KC.LGUI(KC.L),))
SNIPPING_TOOL = simple_key_sequence((KC.LGUI, KC.LSHIFT, KC.S))
OPEN_DISCORD = simple_key_sequence((KC.LGUI(KC.R), KC.ENTER, 'C:\\Users\\YourUsername\\AppData\\Local\\Discord\\Update.exe --processStart Discord.exe', KC.ENTER))
OPEN_WEBSITE = simple_key_sequence((KC.LGUI(KC.R), KC.ENTER, 'https://yourwebsite.com', KC.ENTER))
OPEN_ROBLOX = simple_key_sequence((KC.LGUI(KC.R), KC.ENTER, 'C:\\Program Files (x86)\\Roblox\\Versions\\version-{hash}\\RobloxPlayerBeta.exe', KC.ENTER))
OPEN_EDGE = simple_key_sequence((KC.LGUI(KC.R), KC.ENTER, 'msedge', KC.ENTER))
OPEN_GITHUB = simple_key_sequence((KC.LGUI(KC.R), KC.ENTER, 'https://github.com', KC.ENTER))
NEW_GITHUB_REPO = simple_key_sequence((KC.LGUI(KC.R), KC.ENTER, 'https://github.com/new', KC.ENTER))
PYTHON_PRINT = simple_key_sequence((
'for i in range(100):\n print("Your word here")\n',
))
OPEN_TERMINAL = simple_key_sequence((KC.LGUI(KC.R), KC.ENTER, 'cmd', KC.ENTER))
OPEN_VSCODE = simple_key_sequence((KC.LGUI(KC.R), KC.ENTER, 'code', KC.ENTER))
OPEN_PW_WEBSITE = simple_key_sequence((KC.LGUI(KC.R), KC.ENTER, 'https://yourpwwebsite.com', KC.ENTER))
GITHUB_COMMIT = simple_key_sequence((KC.LCTRL(KC.K), KC.LCTRL(KC.ENTER)))
OPEN_SLACK = simple_key_sequence((KC.LGUI(KC.R), KC.ENTER, 'slack:', KC.ENTER))

keyboard.keymap = [
[
LOCK_PC, KC.MUTE, SNIPPING_TOOL, OPEN_DISCORD, OPEN_WEBSITE,
OPEN_ROBLOX, OPEN_EDGE, OPEN_GITHUB, NEW_GITHUB_REPO, PYTHON_PRINT,
OPEN_TERMINAL, OPEN_VSCODE, OPEN_PW_WEBSITE, GITHUB_COMMIT, OPEN_SLACK
]
]

if __name__ == '__main__':
keyboard.go()
Binary file added hackpads/Rudransh's Hackpad!!!/PCB/Gerbers.zip
Binary file not shown.
Loading