🛠 Custom HID Macro Pad

Romu USB Development Board (RP2354A) · intermediaire · Créez un pavé macro USB ultra-compact pour automatiser vos raccourcis clavier.

  1. Hardware: Romu board, USB Type-A port, system configuration software (AutoHotKey, Karabiner).
  2. Development: Use the C/C++ SDK to create a generic HID device. Define the USB descriptor to declare Romu as a keyboard and mouse.
  3. 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.
  4. LED: Program the RGB LED to indicate the active mode (red for keyboard, blue for mouse). Use PWM for brightness control.
  5. Flash: Compile the project. Enter BOOTSEL mode by shorting dedicated pads. Copy the .uf2 binary to the USB drive.
  6. Test: Plug in the Romu. Open a text editor. Press the button to verify shortcut sending. Switch modes to test cursor control.
  7. 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