Adabox 19 Macropad
Keyboard / Macropad use cases
Section titled “Keyboard / Macropad use cases”- Macros with key executions
- Shortcuts
- Midi notes for music, midi trigger
- Gamepad, joystick
- Colour keys and colour feedback
- Rotary encoder (rotate or push), also used for reset on push down with reset button
- OLED: stats, keys, computer performance
Components
Section titled “Components”- Raspberry Pi RP 2040, 8 mb flash memory. 264k RAM
- Stemma Qt for plugin boards
- USB C power/input
- Speaker
- MX compatible switches
- Keycaps for MX switches
Ideas for Macropad / AutoHotKey / Operating System Key Remappings
Section titled “Ideas for Macropad / AutoHotKey / Operating System Key Remappings”Context switching for applications
- Teams:
- Mute/unmute
- Games / Applications
- Send special key commands
- VS Code:
- Open to dos
- No context / Operating System: App shortcuts
- Open Firefox and search on text in clipboard
- Media player
- Next, previous
- Advance/go back 10 sec, 1 min, 10 mins
- Volume control
- Reminders?
Macropad Library
Section titled “Macropad Library”Overview from 2021-08-06 CircuitPython Day, left off at https://youtu.be/NgykgLEKB3k?t=3103
- Library written to abstract all hardware of macropad to a library (keys, sounds, rotator)
- DisplayIO for key press display on OLED
- Fidget mode, temporarily disable HID keys sending data
- Board printing and creation - digi key, os park (sp?)
- Key matrix, pins, or shift
register
for each key are used to detech which keys are pressed
- Keys could be used to control other hardware (e.g. servos)
- Keys are “debounced” to allow switches to settle down after presses.
- The RP2040 uses a one key per pin
- Key matrix code demo
- Change
pyfiles to load on run
Learning with RP2040
Section titled “Learning with RP2040”Pros:
- Uses CircuitPython
- Like other microcontrollers
- Can load all libraries without memory issues
Cons:
- Pins will be different than other controllers
See Macropad library examples for more code:
- Display and key presses
- Can send mouse clicks (like HID devices)
- Send common keys in keyboards include volume up/down, next
- Send collection of keys/sentences, for example can be used with text expander
See Also
Section titled “See Also”Resources
Section titled “Resources”- My guide on Macropad
- Learn Adafruit019
- Assembly
- RP2040 overview and code libraries
- Arduino
- Projects: