From bf17e4b02eb9060159adb5676cb446bb62b272c7 Mon Sep 17 00:00:00 2001 From: kou029w Date: Thu, 24 Oct 2013 01:40:58 +0900 Subject: [PATCH] MicroServoMouse --- arduino/MicroServoMouse/MicroServoMouse.ino | 23 +++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 arduino/MicroServoMouse/MicroServoMouse.ino 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); +}