//This is a program to test servos on Bluebot
#include <Servo.h>
#define LEFT_SERVO_PORT 5
#define RIGHT_SERVO_PORT 3
Servo leftServo;
Servo rightServo;
void setup(){
leftServo.attach(LEFT_SERVO_PORT);
rightServo.attach(RIGHT_SERVO_PORT);
}
void loop(){
leftServo.write(0);
rightServo.write(179);
delay(1000);
rightServo.write(179);
leftServo.write(0);
delay(1000);
}
The second batch of servo writes doesn't work the servos just twitch. I'm using a Uno with the latest version of the IDE on Ubuntu.