Skip to content
Open
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
1,048 changes: 1,048 additions & 0 deletions hackpads/whirlxds pad/CAD/bottom-case.step

Large diffs are not rendered by default.

142,350 changes: 142,350 additions & 0 deletions hackpads/whirlxds pad/CAD/pad-compiled.step

Large diffs are not rendered by default.

6,851 changes: 6,851 additions & 0 deletions hackpads/whirlxds pad/CAD/top-case.step

Large diffs are not rendered by default.

72 changes: 72 additions & 0 deletions hackpads/whirlxds pad/FIRMWARE/firmware.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# representative implementation i plan to manually figure out and map keys to custom asus functions which im not able to get once it comes for my laptop
import board
from kmk.kmk_keyboard import KMKKeyboard
from kmk.scanners.keypad import KeysScanner
from kmk.keys import KC

from kmk.modules.layers import Layers
from kmk.modules.macros import Macros, Press, Release, Tap
from kmk.extensions.encoder import EncoderHandler
keyboard = KMKKeyboard()
layers = Layers()
macros = Macros()
keyboard.modules.append(layers)
keyboard.modules.append(macros)

encoder_handler = EncoderHandler()
keyboard.extensions.append(encoder_handler)


PINS = [
board.D1,
board.D2,
board.D3,
board.D4,
board.D5, # side button
board.D6,
]


encoder_handler.pins = (
(board.D7, board.D8, None, False),
)


keyboard.matrix = KeysScanner(
pins=PINS,
value_when_pressed=False,
pull=True,
)



keyboard.keymap = [

[
KC.MACRO("Hello from Profile 1!"),
KC.MACRO("Macro 2, Profile 1"),
KC.MACRO("Macro 3, Profile 1"),
KC.MACRO("Macro 4, Profile 1"),

KC.TO(1),

KC.NO,
],
[
KC.MACRO("Hello from Profile 2!"),
KC.MACRO("Macro 2, Profile 2"),
KC.MACRO("Macro 3, Profile 2"),
KC.MACRO("Macro 4, Profile 2"),
KC.TO(0),

KC.NO,
],
]

encoder_handler.map = [

((KC.VOLD, KC.VOLU),),
((KC.PGDN, KC.PGUP),),
]
if __name__ == '__main__':
keyboard.go()
Loading