Skip to content

Instantly share code, notes, and snippets.

@spipm
Created December 22, 2025 19:33
Show Gist options
  • Select an option

  • Save spipm/cd05fec6c6f237ca456d2b566b94f8ad to your computer and use it in GitHub Desktop.

Select an option

Save spipm/cd05fec6c6f237ca456d2b566b94f8ad to your computer and use it in GitHub Desktop.
Digispark mouse jiggler
#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