2014-git-work/arduino/MicroServoMouse/MicroServoMouse.ino
2013-10-24 01:40:58 +09:00

23 lines
338 B
C++

#include <Servo.h>
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);
}