Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
d2bf004
Create README.md
AyoubChafiq Feb 16, 2025
67bf780
Add files via upload
AyoubChafiq Feb 19, 2025
f327dc1
Delete hackpads/ChessPad/CAD/BackPlate.step
AyoubChafiq Feb 19, 2025
908e418
Delete hackpads/ChessPad/CAD/FrontPlate.step
AyoubChafiq Feb 19, 2025
9f55c84
Update README.md
AyoubChafiq Feb 19, 2025
c39831f
Update README.md
AyoubChafiq Feb 19, 2025
aaac636
Add files via upload
AyoubChafiq Feb 19, 2025
c2f716c
Delete hackpads/ChessPad/PCB/ChessPad_KiCad_Folder/MacroPad#2-B_Cu.gbr
AyoubChafiq Mar 9, 2025
32d525d
Delete hackpads/ChessPad/PCB/ChessPad_KiCad_Folder/MacroPad#2-B_Mask.gbr
AyoubChafiq Mar 9, 2025
15ed1d4
Delete hackpads/ChessPad/PCB/ChessPad_KiCad_Folder/MacroPad#2-B_Paste…
AyoubChafiq Mar 9, 2025
af60ebe
Delete hackpads/ChessPad/PCB/ChessPad_KiCad_Folder/MacroPad#2-B_Silks…
AyoubChafiq Mar 9, 2025
8d72c18
Delete hackpads/ChessPad/PCB/ChessPad_KiCad_Folder/MacroPad#2-Edge_Cu…
AyoubChafiq Mar 9, 2025
98e980f
Delete hackpads/ChessPad/PCB/ChessPad_KiCad_Folder/MacroPad#2-F_Cu.gbr
AyoubChafiq Mar 9, 2025
7410633
Delete hackpads/ChessPad/PCB/ChessPad_KiCad_Folder/MacroPad#2-F_Mask.gbr
AyoubChafiq Mar 9, 2025
a3db9de
Delete hackpads/ChessPad/PCB/ChessPad_KiCad_Folder/MacroPad#2-F_Paste…
AyoubChafiq Mar 9, 2025
b5d1621
Delete hackpads/ChessPad/PCB/ChessPad_KiCad_Folder/MacroPad#2-F_Silks…
AyoubChafiq Mar 9, 2025
9c0be45
Delete hackpads/ChessPad/PCB/ChessPad_KiCad_Folder/MacroPad#2-NPTH-dr…
AyoubChafiq Mar 9, 2025
03f98d1
Delete hackpads/ChessPad/PCB/ChessPad_KiCad_Folder/MacroPad#2-backups…
AyoubChafiq Mar 9, 2025
3157a95
Delete hackpads/ChessPad/PCB/ChessPad_KiCad_Folder/MacroPad#2-NPTH.drl
AyoubChafiq Mar 9, 2025
1298ec1
Delete hackpads/ChessPad/PCB/ChessPad_KiCad_Folder/MacroPad#2-PTH-drl…
AyoubChafiq Mar 9, 2025
54d6f60
Delete hackpads/ChessPad/PCB/ChessPad_KiCad_Folder/MacroPad#2-PTH.drl
AyoubChafiq Mar 9, 2025
f9ec654
Delete hackpads/ChessPad/PCB/ChessPad_KiCad_Folder/MacroPad#2-job.gbrjob
AyoubChafiq Mar 9, 2025
73e92f8
Delete hackpads/ChessPad/PCB/ChessPad_KiCad_Folder/MacroPad#2.xml
AyoubChafiq Mar 9, 2025
b8c8f5a
Delete hackpads/ChessPad/PCB/ChessPad_KiCad_Folder/~MacroPad#2.kicad_…
AyoubChafiq Mar 9, 2025
fb455f1
Delete hackpads/ChessPad/PCB/ChessPad_KiCad_Folder/~MacroPad#2.kicad_…
AyoubChafiq Mar 9, 2025
7a57f35
Delete hackpads/ChessPad/PCB/ChessPad_KiCad_Folder/MacroPad#2.png
AyoubChafiq Mar 9, 2025
4cc08de
Update README.md
AyoubChafiq Mar 14, 2025
b7fce9a
Delete hackpads/ChessPad/PCB/ChessPad_KiCad_Folder/Seeed Studio XIAO …
AyoubChafiq Oct 6, 2025
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
13,393 changes: 13,393 additions & 0 deletions hackpads/ChessPad/CAD/Assembled_Case.step

Large diffs are not rendered by default.

46 changes: 46 additions & 0 deletions hackpads/ChessPad/Firmware/main.py.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# You import all the IOs of your board
import board

# These are imports from the kmk library
from kmk.kmk_keyboard import KMKKeyboard
from kmk.scanners.keypad import KeysScanner
from kmk.keys import KC
from kmk.modules.macros import Press, Release, Tap, Macros
from kmk.modules.rotary_encoder import RotaryEncoderHandler


# This is the main instance of your keyboard
keyboard = KMKKeyboard()

# Add the macro extension
macros = Macros()
keyboard.modules.append(macros)

# Define your pins here!
PINS = [board.D7, board.D8, board.D9, board.D10, board.D6, board.D5, board.D2, board.D3]

# Define rotary encoder module
encoder_handler = RotaryEncoderHandler()
keyboard.modules.append(encoder_handler)

# Assign rotary encoder actions
encoder_handler.pins = (board.GP26, board.GP27)
encoder_handler.divisor = 4
encoder_handler.map = [KC.VOLD, KC.VOLU] # Rotate Left = Volume Down, Rotate Right = Volume Up

# Tell kmk we are not using a key matrix
keyboard.matrix = KeysScanner(
pins=PINS,
value_when_pressed=False,
)

# Here you define the buttons corresponding to the pins
# Look here for keycodes: https://github.com/KMKfw/kmk_firmware/blob/main/docs/en/keycodes.md
# And here for macros: https://github.com/KMKfw/kmk_firmware/blob/main/docs/en/macros.md
keyboard.keymap = [
[KC.W, KC.A, KC.S, KC.D, KC.DEL, KC.SPC]
]

# Start kmk!
if __name__ == '__main__':
keyboard.go()
5,648 changes: 5,648 additions & 0 deletions hackpads/ChessPad/PCB/ChessPad_KiCad_Folder/MacroPad#2.kicad_pcb

Large diffs are not rendered by default.

83 changes: 83 additions & 0 deletions hackpads/ChessPad/PCB/ChessPad_KiCad_Folder/MacroPad#2.kicad_prl
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
{
"board": {
"active_layer": 0,
"active_layer_preset": "All Layers",
"auto_track_width": true,
"hidden_netclasses": [],
"hidden_nets": [],
"high_contrast_mode": 0,
"net_color_mode": 1,
"opacity": {
"images": 0.6,
"pads": 1.0,
"tracks": 1.0,
"vias": 1.0,
"zones": 0.6
},
"selection_filter": {
"dimensions": true,
"footprints": true,
"graphics": true,
"keepouts": true,
"lockedItems": false,
"otherItems": true,
"pads": true,
"text": true,
"tracks": true,
"vias": true,
"zones": true
},
"visible_items": [
0,
1,
2,
3,
4,
5,
8,
9,
10,
11,
12,
13,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26,
27,
28,
29,
30,
32,
33,
34,
35,
36,
39,
40
],
"visible_layers": "fffffff_ffffffff",
"zone_display_mode": 0
},
"git": {
"repo_password": "",
"repo_type": "",
"repo_username": "",
"ssh_key": ""
},
"meta": {
"filename": "MacroPad#2.kicad_prl",
"version": 3
},
"project": {
"files": []
}
}
Loading