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
(serial-env) nz@orangepizero:~/mihome$ python testGpio.py
Hello blinka!>/home/nz/serial-env/lib/python3.11/site-packages/adafruit_blinka/microcontroller/generic_linux/libgpiod/libgpiod_pin_2_x.py(52)init()
-> self._line_request = self._chip.request_lines(
(Pdb) s
>/home/nz/serial-env/lib/python3.11/site-packages/adafruit_blinka/microcontroller/generic_linux/libgpiod/libgpiod_pin_2_x.py(53)init()
-> config={int(self._num): None},
(Pdb) a
self = 13
mode = 0
pull = None
(Pdb) p _num
*** NameError: name '_num' is not defined
(Pdb) s
AttributeError: 'Pin' object has no attribute '_num'
Board Name
Orange Pi Zero
Steps
run testGpio.py for gpio testing:
Description
Additional information
looks like the issue is related to the following code in libgpiod_pin_2_x.py.
somehow "_num" is not initialized here.
manually assign pin_id to _num can fix the issue.
The text was updated successfully, but these errors were encountered: