void main() { int i = 0; // initialize the servo controls init_expbd_servos(1); // put servo 1 to 0 degrees // there are 6 servos (noted as servoX, X = 0, ..., 5) // on the expansion board servo1 = 0; sleep(.3); while(i < 10) { // servo has a range of 0 - 4000 // mapped to 0 - 180 degrees servo1 += 400; sleep(.3); i++; } }