Skip to content

Commit cd8ec32

Browse files
authored
Merge pull request #640 from Hitcoinfur/main
Algopad
2 parents b9f8c0f + e2df807 commit cd8ec32

File tree

11 files changed

+53820
-0
lines changed

11 files changed

+53820
-0
lines changed

hackpads/Algopad/CAD/2theaR's Macro v2.step

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

hackpads/Algopad/Firmware/main.py

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import board
2+
3+
from kmk.kmk_keyboard import KMKKeyboard
4+
from kmk.scanners.keypad import KeysScanner
5+
from kmk.keys import KC
6+
from kmk.modules.macros import Press, Release, Tap, Macros
7+
8+
keyboard = KMKKeyboard()
9+
macros = Macros()
10+
keyboard.modules.append(macros)
11+
12+
PINS = [board.D8, board.D9, board.D10, board.D11]
13+
14+
keyboard.matrix = KeysScanner(
15+
pins=PINS,
16+
value_when_pressed=False,
17+
)
18+
19+
keyboard.keymap = [
20+
[
21+
KC.DELETE,
22+
KC.MACRO(Press(KC.LCMD), Tap(KC.C), Release(KC.LCMD)),
23+
KC.MACRO(Press(KC.LCMD), Tap(KC.V), Release(KC.LCMD)),
24+
KC.Macro(Press(KC.LCMD), Tap(KC.S), Release(KC.LCMD))
25+
]
26+
]
27+
28+
if name == 'main':
29+
keyboard.go()

0 commit comments

Comments
 (0)