Usually the 'installed' library source code in dist-packages should not be changed.
There is a programmatic way to change the pin factory described in https://gpiozero.readthedocs.io/en/stab ... in-factory
I would try something like this (untested and not possible on a Pi5)
There is a programmatic way to change the pin factory described in https://gpiozero.readthedocs.io/en/stab ... in-factory
I would try something like this (untested and not possible on a Pi5)
Code:
from gpiozero.pins.pigpio import PiGPIOFactoryfrom gpiozero import Device, LEDDevice.pin_factory = PiGPIOFactory()# other code
Statistics: Posted by ghp — Fri Dec 06, 2024 9:08 am