Skip to content

Commit b9f8c0f

Browse files
authored
Merge pull request #564 from AdvayRoongta/main
Add Advay's Hackpad
2 parents ce87018 + 3577659 commit b9f8c0f

File tree

10 files changed

+35914
-0
lines changed

10 files changed

+35914
-0
lines changed
3.66 MB
Binary file not shown.

hackpads/Advays Hackapd/PCB/REALhackpadPCB.kicad_pcb

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

hackpads/Advays Hackapd/PCB/REALhackpadPCB.kicad_pro

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

hackpads/Advays Hackapd/PCB/hackpadschematicREAL.kicad_sch

Lines changed: 2343 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
import board
2+
from kmk.kmk_keyboard import KMKKeyboard
3+
from kmk.scanners.digital import DirectPinScanner
4+
from kmk.keys import KC
5+
from kmk.modules.encoder import EncoderHandler
6+
from kmk.scanners.keypad import KeysScanner
7+
from kmk.modules.macros import Press, Release, Tap, Macros
8+
9+
keyboard = KMKKeyboard()
10+
PINS = [board.GP1, board.GP2, board.GP4, board.GP29]
11+
macros = Macros()
12+
keyboard.modules.append(macros)
13+
keyboard.keymap = [
14+
[KC.A, KC.DELETE, KC.MACRO("hello"), KC.ENTER],
15+
]
16+
17+
keyboard.matrix = KeysScanner(
18+
pins=PINS,
19+
value_when_pressed=False,
20+
)
21+
22+
#encoder
23+
encoder_handler = EncoderHandler()
24+
encoder_handler.pins = [(board.GP28, board.GP0)]
25+
encoder_handler.map = [
26+
((KC.VOLU, KC.VOLD)),
27+
]
28+
keyboard.modules.append(encoder_handler)
29+
30+
if __name__ == "__main__":
31+
keyboard.go()

0 commit comments

Comments
 (0)