arduino with sensor shield 6 servo's with switches

Hello,

I have a simple question, how can I make the servo’s a bit slower ( individual.)
Here is the program that I found on the Internet.

Thanks for the answer.

Ruud

#include <Servo.h>
#define numpins 6// Number of Servos
Servo servo[numpins] ;

int i,k,l;
int pins = {14,15,16,17,18,19}; // Pushbutton/LED pins
int spins = {2,3,4,5,6,7}; // Servo pins
int sstart = {25,25,25,25,25,25}; // Servo Start Positions
int sstop = {160,160,160,160,160,160}; // Servo Stop Positions
boolean pinval = { true,true,true,true,true,true }; // Servo State
//
void setup() {
for (i=0; i<numpins; i++) {
servo_.attach (spins*); // Set up servo controls*_
servo_.write(sstart*); // Set each servo to start position*
* }
pinMode(pins,OUTPUT); // Initialize PB/LED pins*

digitalWrite(pins*,HIGH);
}*

void loop() {_

* for (i=0; i<numpins; i++) {*
pinMode (pins*,INPUT_PULLUP);
_ if (digitalRead(pins)==LOW) { // Check if a Pushbutton is pressed*
pinval=!pinval*; // Assume only one at a time*
if (pinval==true) servo.write(sstart*);
else servo.write(sstop);
delay(1000);
while (digitalRead(pins)==LOW);*_

_ pinMode(pins*,OUTPUT); // Now go back to maintaining LEDs*
digitalWrite(pins,pinval*); }
}
}*_

Delete that site from your bookmarks, now. That code won't come close to compiling.

Here is a library (with examples) that allows speed control of multiple servos.