Adafruit_Motor_Shield_V2_Library icon indicating copy to clipboard operation
Adafruit_Motor_Shield_V2_Library copied to clipboard

The dc and stepper motors 0 are always initialised upon a call to get…

Open audetto opened this issue 10 years ago • 1 comments

…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

audetto avatar Aug 26 '15 20:08 audetto

@ladyada This LGTM. Do you remember any reason for wanting an ID number for each instance? This does replace that with something else (bool).

caternuson avatar Sep 21 '21 23:09 caternuson