 #include <Wire.h>
 #include <Adafruit_PWMServoDriver.h>
 
+#define NUM_SERVOS 12
+
 // create the servo driver instance
 // change 0x40 to match your servo shield if necessary
 Adafruit_PWMServoDriver pwm = Adafruit_PWMServoDriver(0x40);  

    // angle 1800 is 2,500 us
    long ticks = ((500L + (2000L*angle)/1800L)*4096L)/20000L;
    // update the servo channel with the new pusle
    pwm.setPWM(servo, 0, ticks);
  }
}


}

// the servo handler for Servorator
void update_servo( int index, int angle)
{
  if (index >= 0 && index < NUM_SERVOS)
  {
