You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 30, 2019. It is now read-only.
Dear friends, thanks a lot for porting to python 3. I tried to run the following code:
from Adafruit_GPIO. PCF8574 import PCF8574,OUT
from time import sleep
expander=PCF8574(address=0x38)
expander.setup(0,OUT)
while True:
expander.output(0,True)
sleep(0.5)
expander.output(0,False)
and caught an exception
Traceback (most recent call last):
File "/share/rover/trash/PCF8574_test.py", line 6, in <module>
expander.setup(0,OUT)
File "/root/rover3/lib/python3.4/site-packages/Adafruit_GPIO-1.0.0-py3.4.egg/Adafruit_GPIO/PCF8574.py", line 68, in setup
File "/root/rover3/lib/python3.4/site-packages/Adafruit_GPIO-1.0.0-py3.4.egg/Adafruit_GPIO/PCF8574.py", line 71, in setup_pins
AttributeError: 'dict' object has no attribute 'iteritems'
Dear friends, thanks a lot for porting to python 3. I tried to run the following code:
and caught an exception
I think this is issue.
pep-0469
The text was updated successfully, but these errors were encountered: