Skip to content

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

Open
audetto wants to merge 1 commit into
adafruit:masterfrom
audetto:init-fix
Open

The dc and stepper motors 0 are always initialised upon a call to get…#17
audetto wants to merge 1 commit into
adafruit:masterfrom
audetto:init-fix

Conversation

@audetto

@audetto audetto commented Aug 26, 2015

Copy link
Copy Markdown

…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

…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
@caternuson

Copy link
Copy Markdown
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants