Skip to content

Change argument name to *_dio #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 7, 2022
Merged

Change argument name to *_dio #15

merged 1 commit into from
Jul 7, 2022

Conversation

tekktrik
Copy link
Member

@tekktrik tekktrik commented Jul 7, 2022

Changes the argument name from units_pin to units_dio, since it takes microcontroller.Pin, whereas the other argument data_pin really does take microcontroller.Pin. This would be a breaking change, but I found no dependent libraries, and the only Learn Guide example uses the arguments positionally.

Resolves #14.

@tekktrik tekktrik requested a review from a team July 7, 2022 15:31
Copy link
Contributor

@dhalbert dhalbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks - this is the right thing to do.

@dhalbert dhalbert merged commit 36dbc55 into adafruit:main Jul 7, 2022
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Jul 8, 2022
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.

Library uses _pin name for both Pin and DigitalInOut objects
2 participants