Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add public repository as a folder in hackpads #318

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
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
Binary file added hackpads/RubixCubeMacropad/CAD/Assembly_w_PCB.3mf
Binary file not shown.
Binary file added hackpads/RubixCubeMacropad/CAD/Enclosure.3mf
Binary file not shown.
48,419 changes: 48,419 additions & 0 deletions hackpads/RubixCubeMacropad/CAD/MX .STEP

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
64,997 changes: 64,997 additions & 0 deletions hackpads/RubixCubeMacropad/CAD/macropad_pcb_step_file.step

Large diffs are not rendered by default.

2,330 changes: 2,330 additions & 0 deletions hackpads/RubixCubeMacropad/CAD/r1_100.STEP

Large diffs are not rendered by default.

3,329 changes: 3,329 additions & 0 deletions hackpads/RubixCubeMacropad/CAD/r2_100.STEP

Large diffs are not rendered by default.

3,250 changes: 3,250 additions & 0 deletions hackpads/RubixCubeMacropad/CAD/r3_100.STEP

Large diffs are not rendered by default.

53 changes: 53 additions & 0 deletions hackpads/RubixCubeMacropad/FIRMWARE/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
'''
RUBIX CUBE MARCOPAD
'''
import board
import busio
from kmk.kmk_keyboard import KMKKeyboard
from kmk.keys import KC
from kmk.scanners import DiodeOrientation
from kmk.extensions.media_keys import MediaKeys
from kmk.extensions.display import Display, TextEntry, ImageEntry
from kmk.modules.encoder import EncoderHandler
from kmk.extensions.display.ssd1306 import SSD1306

# Pinout
COL0 = board.D3
COL1 = board.D4
COL2 = board.D5
ROW1 = board.D0
ROW2 = board.D1
ROW3 = board.D2

keyboard = KMKKeyboard()

#matrix settings
keyboard.col_pins = (COL0, COL1, COL2)
keyboard.row_pins = (ROW0, ROW1, ROW2)
keyboard.diode_orientation = DiodeOrientation.COL2ROW

EXTRUDE = KC.LCTL(KC.SHIFT, KC.E) # Extrude
EXTRUDE_CUT = KC.LCTL(KC.SHIFT, KC.X) # Extrude Cut
SKETCH = KC.LCTL(KC.SHIFT, KC.K) # Start Sketch
DIMENSION = KC.LCTL(KC.SHIFT, KC.D) # Dimension Tool
LINE = KC.L # Line Tool
CIRCLE = KC.LCTL(KC.SHIFT, KC.I) # Circle Tool
RECT = KC.LCTL(KC.SHIFT, KC.R) # Rectangle Tool
FILLET = KC.LCTL(KC.SHIFT, KC.F) # Fillet Tool
NORMAL_TO = KC.LCTL(KC.SHIFT, KC.N) # Normal To Tool

# Keymap
keyboard.keymap = [
[LINE,
CIRCLE,
RECT,
SKETCH,
EXTRUDE_CUT,
EXTRUDE,
FILLET,
NORMAL_TO,
DIMENSION]
]

if __name__ == '__main__':
keyboard.go()
Binary file not shown.
Loading