Servo write - variable

How does it number the servos when I define them by

servo mys[20]

Does it start at zero so that its defining a servo named mys0-my19?

The servos will be named mys[0], mys[1] etc up to mys[18], mys[19]

Note that the array index does not bear any relationship to the pins used

Here is an example of declaring an array of 3 servos and attaching them to pins defined in an array

#include <Servo.h>

Servo servos[3];
const byte servoPins[] = {10, 11, 12};

void setup()
{
  for (int s = 0 ; s < 3; s++)
  {
    servos[s].attach(servoPins[s]);
  }
}