-
Notifications
You must be signed in to change notification settings - Fork 57
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
gpio incorrectly assumes 0 value by default #34
Comments
This is not exactly a bug with this |
I confirm that it is a bug, especially for inputs. If we have an input with pull-up enabled, the default state is '1', but the library returns 0 as long as there was no transition on that input. |
@mmajchrzycki please confirm linked patch is working. |
The patch was already merged into master. Tests are in #58 and will be merged into v1 branch. Closing issue. |
In set there's comparison of current value with the new one. But current value is not read from hardware but assumed to be
0
by default. Therefore if gpio is high I cannot make it back low.The text was updated successfully, but these errors were encountered: