mirror of
https://codeberg.org/mclemens/mousewiggle.git
synced 2024-11-15 19:15:57 -05:00
17 lines
389 B
C++
17 lines
389 B
C++
#include "DigiMouse.h"
|
|
|
|
void setup() {
|
|
DigiMouse.begin();
|
|
pinMode(1, OUTPUT);
|
|
}
|
|
|
|
void loop() {
|
|
DigiMouse.update();
|
|
digitalWrite(1, HIGH); // turn LED on
|
|
DigiMouse.move(1,0,0,0); // Move mouse
|
|
DigiMouse.delay(1000); // wait a second
|
|
DigiMouse.move(-1,0,0,0); // Move mouse back
|
|
digitalWrite(1, LOW); // turn LED off
|
|
DigiMouse.delay(60000); // wait a minute
|
|
}
|