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

Python • Re: Failed To Add Edge Detection, GPIOZERO

$
0
0
On Pi4 running Bookworm 64-bit, running this script (LightSensor.py) in Thonny does not give any error:

Code:

from gpiozero import LightSensorldr = LightSensor(4)print (ldr.value)
I do not have an Argon case.
So maybe that "Argonone configuration" is doing something to affect the GPIO e.g. fan control or some other service running in the background?
What is that "Argonone configuration" = maybe a script downloaded from the argon site?
It wasn't the case. I ran it today, as the script was done downloading, but it still said GPIO Busy. This occured on Pin 4 and 14.
I'm not sure what is wrong. I use the extention pins on my argon case.

Statistics: Posted by Procid — Thu Jul 31, 2025 8:26 pm



Viewing all articles
Browse latest Browse all 7521

Trending Articles