Hello
I'm currently using the servo library on a MEGA2560-board to control several brushless motors.
When I was reading through the information about the servo library it says
Attach the Servo variable to a pin. Note that in Arduino 0016 and earlier, the Servo library supports only servos on only two pins: 9 and 10.
from http://arduino.cc/de/Reference/ServoAttach#.U0ZvHhaYndk
But in other code, several servos were attached to the library/board.
#include <Servo.h>
// Sample sketch for driving 12 Servos from an Arduino UNO,
servos are attached to digital pins 2,3,4,5,6,7,8,9,10,11,12,13
#define CONNECTED_SERVOS 12
Servo myServos[CONNECTED_SERVOS];
void setup()
{
// attach the servos
for(int nServo = 0;nServo < CONNECTED_SERVOS;nServo++)
{
myServos[nServo].attach(SERVO_TO_PIN(nServo));
}
the code has been cut.
from:
So at which Pins can I now actually connect brushless motors while using the Servo.h library?
Thank you for your answer