What happens if you run this script, which sets the "pin factory"
Code:
from gpiozero import LightSensor, Devicefrom gpiozero.pins.rpigpio import RPiGPIOFactoryDevice.pin_factory = RPiGPIOFactory()ldr = LightSensor(4)print ("factory=",Device.pin_factory)print (ldr.value)Statistics: Posted by neilgl — Wed Jul 30, 2025 10:05 am