Arduinos Wifi Shield to control two servos

Yes. I can control the two servos with code:


#include <Servo.h>

Servo servoMain;
Servo servoSecond;

void setup()
{
servoMain.attach(10);
servoSecond.attach(11);

}

void loop()
{
servoMain.write(0);
servoSecond.write(0);
delay(1000);
servoMain.write(90);
servoSecond.write(90);
delay(1000);
}


I know delay isn´t ideal..

But So the thing I need to figure out is how to make the servos rotate a pre-defined degree
when I send a command via a web-browser.

Was that understandable? :slight_smile: