Thanks all for the recommendation to upgrade to Bookworm.
System:in terminal before and after.
However, with the available pinctrl functionality, this was corrected by adding the lines below:where nowDo note that the "pinB.close()" was required in this instance.
I will try to have a Pi 4 ordered for testing a change of hardware later.
System:
- bookworm March 2024 release
- Python 3.11.2
Code:
rpi32@rpi32: $ pinctrl get 1919: op -- | lo // GPIO19 = outputrpi32@rpi32: $ python /home/rpi32/Documents/probar.pyrpi32@rpi32 $ pinctrl get 1919: ip -- | lo // GPIO19 = input
However, with the available pinctrl functionality, this was corrected by adding the lines below:
Code:
from subprocess import runrun("pinctrl set 19 op", check=True, shell=true, text=True)
Code:
rpi32@rpi32 $ pinctrl get 1919: op -- -- | low //GPIO19 = output
I will try to have a Pi 4 ordered for testing a change of hardware later.
Statistics: Posted by anilles — Wed May 15, 2024 2:47 am