-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
I was testing pibrella test example with RPi.GPIO2. It prints annoying warning:
/usr/local/lib/python3.9/site-packages/RPi/core.py:530: UserWarning: invalid call to pwm_start(). Did you call PWM.__init__() on this channel?
warn("invalid call to pwm_start(). Did you call PWM.__init__() on this channel?")
I thought it was pibrella error, but it would work with original RPi.GPIO. pibrella uses PWM.start() multiple times when playing notes. Printed warning is highly misleading, because it DID construct PWM() object. It just uses start() method multiple times without stop(). I would suggest PWM class checking for started flag in start(), because it would know object were initialized.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels