Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <Servo.h>;
- void setup() {
- Servo servoLeft;
- Servo servoRight;
- servoLeft.attach(12);
- servoRight.attach(11);
- //Forward 1 meter
- servoLeft.writeMicroseconds(1700);
- servoRight.writeMicroseconds(1380);
- delay(6000);
- servoLeft.writeMicroseconds(1300);
- servoRight.writeMicroseconds(1620);
- delay(6000);
- servoLeft.detach();
- servoRight.detach();
- }
- void loop() {
- // put your main code here, to run repeatedly:
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement