User:MTomaselli/ENES-100/Pet Food Controller (continued)/Servo & Arduino

/* Use the Arduino Uno to rotate a Futaba S3004 Servo for the Pet Food Controller. Servo servoMain; // Define our Servo
 * 1) include 
 * 1) include 

void setup {  servoMain.attach(10); // servo on digital pin 10 }

void loop {  servoMain.write(0);   // Start with Servo in the middle at   delay(10000);         // 0 degrees. Wait 10 seconds. servoMain.write(180); // Turn Servo Right to 180 degrees delay(10000);        // Wait 10 second }