Skip to content

Initial commit. #1

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 3 commits into from
Nov 16, 2018
Merged

Initial commit. #1

merged 3 commits into from
Nov 16, 2018

Conversation

kattni
Copy link
Contributor

@kattni kattni commented Nov 16, 2018

I'm not sure about the value property. If I understand it correctly, you can still return the value of an output pin, so shouldn't it return something other than an error? There's no way to accidentally set any of the pins to input because of all the other checks in place, so I'm not sure why value is also acting as a check.

@kattni kattni requested a review from ladyada November 16, 2018 19:20
@ladyada
Copy link
Member

ladyada commented Nov 16, 2018

oh yes that is true you can do something like

pin.value = not pin.value

to toggle it, so it should return the last set value (failing on setting it to INPUT is where the failure should get caught!)

@ladyada
Copy link
Member

ladyada commented Nov 16, 2018

nice work! please merge & release :)

@kattni kattni merged commit 7313db7 into adafruit:master Nov 16, 2018
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