Created
December 22, 2025 19:33
-
-
Save spipm/cd05fec6c6f237ca456d2b566b94f8ad to your computer and use it in GitHub Desktop.
Digispark mouse jiggler
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <DigiMouse.h> | |
| void setup() { | |
| DigiMouse.begin(); | |
| } | |
| #define ONE_SECOND 1000 | |
| #define SLEEP_SECOND ONE_SECOND * 30 | |
| #define JIGGLE_PIXELS 5 | |
| void loop() { | |
| // https://github.com/digistump/DigistumpArduino/blob/master/digistump-avr/libraries/DigisparkMouse/examples/Mouse/Mouse.ino | |
| // Mouse jiggler | |
| DigiMouse.moveX(JIGGLE_PIXELS); | |
| DigiMouse.delay(150); | |
| DigiMouse.moveX(-JIGGLE_PIXELS); | |
| DigiMouse.delay(SLEEP_SECOND); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment