-
Notifications
You must be signed in to change notification settings - Fork 98
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
OPi Zero internal pullup/down error #24
Comments
If you do |
It replied: DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning. |
Ok, so you have the latest version. But you know that pull-up/down is not yet supported? See #9 However GPIO.PUD_UP should exist. What version of python are you using? |
All right, so there was no issue with it before the 'new' OPi firmware. Ok, thank you for the intel. I'm using Python 2.7 (but 3.5 is installed as well). I will add externally a resistor then. |
Hi!
After a recent OS (dietpi) and firmware update on my OPi Zero, my python code stopped working. I found that the problem is around "GPIO.setup(..., pull_up_down=GPIO.PUD_UP)".
When I run the code it spits out "AttributeError: 'module' object has no attribute 'PUD_UP' ".
Probably I screwed up something but I could not figure out what.
my code:
when run with
./mycode.py
it replies:Thanks for reading ;)
The text was updated successfully, but these errors were encountered: