Adafruit_Motor_Shield_V2_Library
Adafruit_Motor_Shield_V2_Library copied to clipboard
The dc and stepper motors 0 are always initialised upon a call to get…
…Motor().
A value of 0 is used at the same time to signal non initialised and the number of the motor.
As there is no need for a motor to know which number it is, we can simply use a bool 0/1.
Andrea
@ladyada This LGTM. Do you remember any reason for wanting an ID number for each instance? This does replace that with something else (bool).