Skip to content

Commit 37481ea

Browse files
authored
Merge pull request #610 from keenwarice/main
Keenpad V1
2 parents 6397bb0 + 6449792 commit 37481ea

15 files changed

+21827
-0
lines changed

hackpads/KeenpadV1/assets/cad.png

1.01 MB
Loading

hackpads/KeenpadV1/assets/cad2.png

133 KB
Loading

hackpads/KeenpadV1/assets/pcb.png

182 KB
Loading
35.6 KB
Loading
14.1 MB
Binary file not shown.

hackpads/KeenpadV1/firmware/main.py

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# not done, THIS WONT WORK. i did not have enough time to finish it. will do after recieving hackpad as idk how to test if my code works.
2+
3+
import board
4+
5+
from kmk.kmk_keyboard import KMKKeyboard
6+
from kmk.scanners.keypad import KeysScanner
7+
from kmk.keys import KC
8+
from kmk.modules.macros import Press, Release, Tap, Macros
9+
10+
keyboard = KMKKeyboard()
11+
12+
macros = Macros()
13+
keyboard.modules.append(macros)
14+
15+
PINS = [board.D3, board.D4, board.D2, board.D1]
16+
17+
keyboard.matrix = KeysScanner(
18+
pins=PINS,
19+
value_when_pressed=False,
20+
)
21+
22+
keyboard.keymap = [
23+
[KC.A, KC.DELETE, KC.MACRO("Hello world!"), KC.Macro(Press(KC.LCMD), Tap(KC.S), Release(KC.LCMD)),]
24+
]
25+
26+
if __name__ == '__main__':
27+
keyboard.go()

0 commit comments

Comments
 (0)