Quantcast
Viewing all articles
Browse latest Browse all 4825

Python • Re: Runtime error waiting_for_edge GPIO

i had some time before work so here it is...
this is after making the reccomended edit to

Code:

/usr/lib/python3/dist-packages/RPi/GPIO __init__.py
the error report captured at bootup with redirects in place...

Code:

/usr/lib/python3/dist-packages/RPi/GPIO/__init__.py:660: Warning: A physical pull up resistor is fitted on this channel!  warnings.warn(Warning(Traceback (most recent call last):  File "/opt/RetroFlag/SafeShutdown.py", line 59, in <module>    init()  File "/opt/RetroFlag/SafeShutdown.py", line 19, in init    GPIO.setup(powerenPin, GPIO.OUT)  File "/usr/lib/python3/dist-packages/RPi/GPIO/__init__.py", line 677, in setup    initial = _check(lgpio.gpio_read(_chip, gpio))                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^  File "/usr/lib/python3/dist-packages/lgpio.py", line 903, in gpio_read    return _u2i(_lgpio._gpio_read(handle&0xffff, gpio))           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  File "/usr/lib/python3/dist-packages/lgpio.py", line 458, in _u2i    raise error(error_text(v))lgpio.error: 'GPIO not allocated'
this is above my head now

Statistics: Posted by LPSeg13 — Fri Jul 26, 2024 5:05 pm



Viewing all articles
Browse latest Browse all 4825

Trending Articles