The MacroPad by Adafruit is a poor man’s StreamDeck; consisting of a 3x4 keypad, a rotary encoder knob (with button) and an OLED display. Making it a great piece of hardware that can be made to be quite useful.
HotKeys
To quickly make it useful there is an existing project MacroPad HotKeys that you can grab to quickly setup HotKeys. Allowing you to config specific buttons to combinations of keyboard actions. The rotary encoder provides you with 20 different menus that you can config each of the 12 keys and the press of the rotary knob as well.
- project guide: MacroPad HotKeys
- project repo: Adafruit_Learning_System_Guides/Macropad_Hotkeys/
- circuitPython: MacroPad RP2040 by Adafruit
|
|
gist: injector.py
To let go a key, prefix it with -
e.g. [Keycode.ALT, Keycode.F12, -Keycode.ALT, 'fvm flutter gen-l10n', Keycode.ENTER]
Introduce a delay to your Keycode sequency be adding the duration in seconds
e.g. [Keycode.A, 0.5, Keycode.B, 1.0, Keycode.C]
- Adafruit HID Library: Keycodes (repo)
- Adafruit HID Library: All modules for which code is available (this includes Mouse and Media controls)
I’ve found I use it for 2 use cases:
- For commands I don’t use much or can never remember
e.g. running a projects code generation taskfvm flutter pub pub run build_runner build --delete-conflicting-outputs
- For text expansion / injection where I want the pleasure of just pushing 1 key to make it happen instead or having to use a complex shortcut key combination, such as: inserting your email address, fullname, or fill out a form of fields when testing an app