MicroServoMouse

This commit is contained in:
Nebel 2013-10-24 01:40:58 +09:00
parent 7a8c6154a9
commit bf17e4b02e

View file

@ -0,0 +1,23 @@
#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);
}