summaryrefslogtreecommitdiff
path: root/shared-bindings/pwmio
AgeCommit message (Collapse)Author
2021-03-19Fix PWMOut non-error handling and never resetDan Halbert
2021-03-18merge from upstreamDan Halbert
2021-03-15run code formatting scriptmicroDev
2021-03-11use return values in STM PWMOut constructor, not exceptionsDan Halbert
2021-02-12Enable protomatter on RP2040 buildsJeff Epler
Also found a race condition between timer_disable and redraw, which would happen if I debugger-paused inside common_hal_rgbmatrix_timer_disable or put a delay or print inside it. That's what pausing inside reconstruct fixes. So that the "right timer" can be chosen, `timer_allocate` now gets the `self` pointer. It's guaranteed at this point that the pin information is accurate, so you can e.g., find a PWM unit related to the pins themselves. This required touching each port to add the parameter even though it's unused everywhere but raspberrypi.
2020-08-18Split pulseio.PWMOut into pwmioScott Shawcroft
This gives us better granularity when implementing new ports because PWMOut is commonly implemented before PulseIn and PulseOut. Fixes #3211