I recently bought an Adafruit Macropad to make my inkscaping more efficient. I wanted to give it a bit of a lift to make it ergonomic and to allow me to read the display without having to lean over it. Here is what I came up with…
I recently bought an Adafruit Macropad to make my inkscaping more efficient. I wanted to give it a bit of a lift to make it ergonomic and to allow me to read the display without having to lean over it. Here is what I came up with…
Hey, that’s pretty handy!
No idea what a Adafruit Macropad is but that is AWESOME! (Running to Google now…)
There’s a bit of set up with it but they have a guide to walk you through the basics. I’m using it for the macro functionality but it’s capable of way much more.
You are quite correct. Forgive my oversight and thank you for doing the deed.
That’s nice, maybe post your set up for Inkscape? I don’t think that is too far afield as there is a bunch of us who use it.
I don’t have this one, yet, but I do ancillary keyboards galore.
Very nice! I was looking to make one from scratch, but the kit makes it lot easier to source the parts.
Here ya go…
# MACROPAD Hotkeys example
from adafruit_hid.keycode import Keycode # REQUIRED if using Keycode.* values
app = { # REQUIRED dict, must be named 'app'
'name' : 'Inkscape', # Application name
'macros' : [ # List of button macros...
# COLOR LABEL KEY SEQUENCE
# 1st row ----------
(0x400000, 'Undo', [Keycode.CONTROL, 'z']), # Undo Last Action
(0x000040, 'Select', 's'), # Select Tool
(0x202000, 'ToPath', [Keycode.SHIFT, Keycode.CONTROL, 'c']), # Object to path
# 2nd row ----------
(0x004000, 'Redo', [Keycode.SHIFT, Keycode.CONTROL, 'Z']), # Redo Last action
(0x000040, 'Node', 'n'), # Node Tool
(0x000040, 'Rect', 'r'), # Rectangle Tool
# 3rd row ----------
(0x400000, 'Ungrp', [Keycode.SHIFT, Keycode.CONTROL, 'g']), # UnGroup Selection
(0x400000, 'Break', [Keycode.SHIFT, Keycode.CONTROL, 'k']), # Break Apart Selection
(0x000040, 'Circle', 'e'), # Draw Circle
# 4th row ----------
(0x004000, 'group', [Keycode.CONTROL, 'g']), # Group Selection
(0x004000, 'Combin', [Keycode.CONTROL, 'k']), # Combine Selection
(0x000040, 'Text', 't'), # Text tool
# Encoder button ---
(0x000000, '', [Keycode.CONTROL, 's']) # Save
]
}
thanks,
I’ll definitely deconstruct this.
That’s just the macro file there is accompanying code that runs on the root of the device that is required to process the macro code.
Most cool, thanks for sharing!
Cool! Thank you!