Skip to content

Commit eca2557

Browse files
authored
Merge pull request #634 from return-misaPuding/main
Add ULTRAPAD (JIT)
2 parents ea118f2 + 0a636b5 commit eca2557

34 files changed

+90575
-0
lines changed

hackpads/ULTRAPAD/CAD/Bottom_case.step

Lines changed: 13030 additions & 0 deletions
Large diffs are not rendered by default.

hackpads/ULTRAPAD/CAD/Top_case.step

Lines changed: 4936 additions & 0 deletions
Large diffs are not rendered by default.

hackpads/ULTRAPAD/CAD/a

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

hackpads/ULTRAPAD/CAD/full_hackpad.step

Lines changed: 18144 additions & 0 deletions
Large diffs are not rendered by default.

hackpads/ULTRAPAD/Firmware/a

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.

hackpads/ULTRAPAD/Firmware/main.py

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import board
2+
import kmk.modules.macros
3+
4+
from kmk.kmk_keyboard import KMKKeyboard
5+
from kmk.keys import KC
6+
from kmk.scanners import DiodeOrientation
7+
from kmk.modules.encoder import EncoderHandler
8+
macros = Macros(unicode_mode=UnicodeModeWinC)
9+
keyboard.modules.append(macros)
10+
keyboard = KMKKeyboard()
11+
encoder_handler = EncoderHandler()
12+
encoder_handler.pins = ((board.GPIO0, board.GPIO1, None))
13+
14+
keyboard.col_pins = (board.GPIO26, board.GPIO27, board.GPIO28, board.GPIO29)
15+
keyboard.row_pins = (board.GPIO2,board.GPIO4,board.GPIO3)
16+
keyboard.diode_orientation = DiodeOrientation.COL2ROW
17+
knuckle = KC.MACRO(KC.G, on_hold=KC.F, on_release=KC.G, blocking=False)
18+
#uses G to switch to knuckleblaster, holds F to punch/blast, switches back
19+
keyboard.keymap = [
20+
[KC.R, KC.F, knuckle, KC.SPACE]
21+
[KC.E, KC.D, KC.S, KC.W]
22+
[KC.A, KC.BSLASH, KC.LSHIFT, KC.LCTRL]
23+
]
24+
encoder_handler.map = [((KC.VOLD, KC.VOLU, KC.NO))]
25+
26+
if __name__ == '__main__':
27+
keyboard.go()

hackpads/ULTRAPAD/PCB/a

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.

0 commit comments

Comments
 (0)