Use a Adafruit NeoKey Trinkey to wiggle the mouse periodically for reasons.
This has three modes, based on stoplight colours.
- Red is off, where no mouse wiggling happens.
- Yellow wiggles the mouse every 1 to 4 minutes at random.
- Green wiggles the mouse constantly.
You can see the current mode by touching the capacitive button, and cycle modes with the big button.
You'll need to set up CircuitPython on the Trinkey. Get the .uf2
file.
Double tap the reset button so it mounts as TRINKEYBOOT
and drag the file onto
that drive to install it. It should reboot as and mount with a new name. Copy
the code.py
file onto the drive and it should start running the code.
You can see the output of the script, and access a REPL, by connecting to the serial console. These instructions show you how to do that.
There's an issue where the wiggling doesn't always seem to return the cursor back to exactly where it started -- especially if it wiggles while your real mouse if also giving inputs or changes modes. I can't find the culprit.
This project is under the MIT license. At least to the extent it makes sense to release 12 lines of code.