Skip to content

Instantly share code, notes, and snippets.

View danybony's full-sized avatar

Daniele Bonaldo danybony

View GitHub Profile
@danybony
danybony / mouse-jiggler.ino
Created February 10, 2023 12:28
DigiMouse Arduino jiggler
#define SIZE 40
#define SPEED 30
#include <DigiMouse.h>
void setup(){
DigiMouse.begin();
}
void loop() {
DigiMouse.update();
@danybony
danybony / mouse-jiggler-with-timeout.ino
Created December 13, 2023 23:33
DigiMouse Arduino jiggler with timeout
#define SIZE 40
#define SPEED 30
#include <DigiMouse.h>
const int inputPin = 2;
int buttonState;
int lastButtonState = LOW;
unsigned long lastDebounceTime = 0; // the last time the output pin was toggled
unsigned long debounceDelay = 50; // the debounce time; increase if the output flickers