diff --git a/arduino/MicroServoMouse/MicroServoMouse.ino b/arduino/MicroServoMouse/MicroServoMouse.ino new file mode 100644 index 0000000..1745cd4 --- /dev/null +++ b/arduino/MicroServoMouse/MicroServoMouse.ino @@ -0,0 +1,23 @@ +#include + +Servo fore;x +Servo hind; + +void setup() { + fore.attach(9, 1460-928, 1460+928); + hind.attach(10, 1440-928, 1440+928); + fore.write(90); + hind.write(90); + delay(1000); +} + +void loop() { + fore.write(115); + delay(250); + hind.write(75); + delay(250); + fore.write(65); + delay(250); + hind.write(105); + delay(250); +}