Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. /*
  2. * Mouse jiggler for Arduino compatible modules.
  3. * It moves cursor every 5 seconds.
  4. */
  5.  
  6. #include <Mouse.h>
  7.  
  8. void setup()
  9. {
  10. Mouse.begin();
  11. }
  12.  
  13. void loop()
  14. {
  15. delay(1000);
  16.  
  17. while(true) {
  18. Mouse.move(4,0,0);
  19. delay(100);
  20. Mouse.move(-8,0,0);
  21. delay(100);
  22. Mouse.move(4,0,0);
  23. delay(5000);
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement