Presumably something is or isn't being cleaned up when the LED object is redefined !?
I see the same on my Pi5 running the latest Bookworm.
At boot:After program 1:After program 2:
I see the same on my Pi5 running the latest Bookworm.
At boot:
Code:
pi@raspberrypi:~ $ pinctrl get 3 3: no pu | -- // PIN5/GPIO3 = none
Code:
pi@raspberrypi:~ $ pinctrl get 3 3: op dl pn | lo // PIN5/GPIO3 = output
Code:
pi@raspberrypi:~ $ pinctrl get 3 3: ip pn | hi // PIN5/GPIO3 = input
Statistics: Posted by rpiMike — Fri Dec 22, 2023 2:33 pm