Here’s a shorter, cleaner README, with the warnings moved up and clear emphasis on compatible microcontrollers:
A minimal CircuitPython USB HID jiggler that periodically sends mouse movement or keyboard input to keep a host computer from going idle. The onboard LED blinks on each action.
- This device actively sends USB input events (mouse/keyboard).
- Use only on systems you own or control.
boot.pyincludes commented code to disable the USB storage drive. The idea is to be able to plug the board into a usb port and have it do its thing, and unplug without a hassle. Unplugging while storage is mounted can cause problems, so you may want to disable the storage mode and keep only the HID functionality. Enabling it can make the device difficult to recover without reflashing.
Must support BOTH USB device mode and USB HID in CircuitPython, for example:
- Raspberry Pi Pico / Pico W
- Adafruit QT Py (RP2040)
- Adafruit Feather RP2040
- Seeeduino XIAO RP2040
- Any RP2040 board with native USB + HID support
❌ Boards without native USB HID support will not work.
code.py– Main logic (mouse or keyboard behavior)boot.py– Optional USB storage configuration (safe by default)
In code.py:
mode = 0 # 0 = mouse, 1 = keyboard
SLEEP_TIME = 2
jump_size = 5- Mouse mode: moves cursor left/right
- Keyboard mode: sends Up / Down arrow keys alternately
- Install CircuitPython on a supported board
- Copy
code.py(and optionallyboot.py) to the device - Plug it into a computer — it runs automatically
If you want, I can compress this into a ~10-line ultra-minimal README, or tailor it to a specific board model.