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

Python • Re: PiGPIO Pin Factory

$
0
0
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)

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



Viewing all articles
Browse latest Browse all 1234

Trending Articles