Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5175

Troubleshooting • Re: Busy GPIO's Raspberry PI5

$
0
0
I guess 'flask' with 'debug=True' is doing something like this -

Code:

import gpiozeroimport osimport sysLED = gpiozero.OutputDevice(0)if len(sys.argv) <= 1 or sys.argv[1] != "forked":  os.popen("python3 {} forked".format(sys.argv[0])).read()
That works pre-Bookworm if not using 'libgpiod'. It doesn't with 'Bookworm', using 'libgpiod', and presumably Pi 5.

Arguably it should never have worked, only worked because of what some would describe as flaws in the way GPIO has traditionally been handled on a Pi, which 'libgpiod' no longer allows.
Ah! Good to know.

Statistics: Posted by memjr — Tue Dec 26, 2023 11:13 pm



Viewing all articles
Browse latest Browse all 5175

Trending Articles