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

Python • PiGPIO Pin Factory

$
0
0
Hello, i am a relatively new raspi user. I'm trying to simply rotate a servo (ES08AII if it matters) with GPIOzero; but when i try to run the code:

Code:

from gpiozero import LED, ServovPin = LED(16)testServo = Servo(18)vPin.ontestServo.max
it returns with:
/usr/lib/python3/dist-packages/gpiozero/output_devices.py:1532: PWMSoftwareFallback: To reduce servo jitter, use the pigpio pin factory.See https://gpiozero.readthedocs.io/en/stab ... html#servo for more info
warnings.warn(PWMSoftwareFallback(
After i got this message the first time i changed the "pin_factory" variable on line 1528 of
/lib/python3/dist-packages/gpiozero/output_devices.py
to
PiGPIOFactory
, but it still responds with the same message.

line 1528 is currently:

Code:

            pin_factory=PiGPIOFactory
How do i fix this?

Statistics: Posted by wetmanux — Fri Dec 06, 2024 1:40 am



Viewing all articles
Browse latest Browse all 1234

Trending Articles