🛠 Custom HID Macro Pad
Romu USB Development Board (RP2354A) · intermediaire · Créez un pavé macro USB ultra-compact pour automatiser vos raccourcis clavier.
- Hardware: Romu board, USB Type-A port, system configuration software (AutoHotKey, Karabiner).
- Development: Use the C/C++ SDK to create a generic HID device. Define the USB descriptor to declare Romu as a keyboard and mouse.
- Logic: Code a state machine for the single button. A short press sends a key sequence (e.g., Ctrl+C, Ctrl+V). A long press toggles 'mouse' mode.
- LED: Program the RGB LED to indicate the active mode (red for keyboard, blue for mouse). Use PWM for brightness control.
- Flash: Compile the project. Enter BOOTSEL mode by shorting dedicated pads. Copy the .uf2 binary to the USB drive.
- Test: Plug in the Romu. Open a text editor. Press the button to verify shortcut sending. Switch modes to test cursor control.
- Deep Dive: Add non-volatile memory (RP2354 Flash) to save custom macros defined via a serial interface.
Other tutorials for this board
Code examples for this board
← Back to the board 🛠 All tutorials