I am a complete noob here and trying to get a model railroad going. I have started with Kushagra Keshari's "Keyboard Controlled Model Train Interface PS/2 v2.5"
He has two turnouts. The one I am building has three. How do I incorporate a second motor driver to operate the third turnout?
Adafruit_MotorShield AFMS = Adafruit_MotorShield();
Adafruit_DCMotor *loco = AFMS.getMotor(1);
Adafruit_DCMotor *turnoutA = AFMS.getMotor(3);
Adafruit_DCMotor *turnoutB = AFMS.getMotor(4);
Do I make a :
Adafruit_MotorShield AFMS = Adafruit_MotorShield(1); (or 2?)
and do :
Adafruit_DCMotor *turnoutB = AFMS.getMotor(5); (or some other number?)
Thank you for any help!