You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Resume doesn't change the state of the pulses.paused boolean, even though it does resume.
Additional information
I am trying to test out PWM reading with pulsesio.pulsein. I have generated a PWM signal, and can read it. However as I started to try and use time.monotonic_ns instead of sleeps commands, I started having issues with the paused boolean. I switched to a global boolean and I manually set it each time I pause or resume, and this works fine. I believe the pause and resume are functional since I bumped up my maxlen to 100, and I don't fill it up during a pause after each read of .5 seconds.
I am brand new to both circuitpython as well as this board. As best I understand it, the print for "paused state" after the resume on line 29 should read False, but it is always True (even though it does resume).
The text was updated successfully, but these errors were encountered:
This was fixed on the 8.0.0 development line in #6450 and perhaps should have been backported to 7.3.x. Try with the 8.0.0-beta.1 release, and I think it will work for you. There are a number of other PulseIn improvements in #6450.
CircuitPython version
Code/REPL
Behavior
Description
Additional information
I am trying to test out PWM reading with pulsesio.pulsein. I have generated a PWM signal, and can read it. However as I started to try and use time.monotonic_ns instead of sleeps commands, I started having issues with the paused boolean. I switched to a global boolean and I manually set it each time I pause or resume, and this works fine. I believe the pause and resume are functional since I bumped up my maxlen to 100, and I don't fill it up during a pause after each read of .5 seconds.
I am brand new to both circuitpython as well as this board. As best I understand it, the print for "paused state" after the resume on line 29 should read False, but it is always True (even though it does resume).
The text was updated successfully, but these errors were encountered: