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
This adds an initial specification of the machine.PWM class, to provide a
way to generate PWM output that is portable across the different ports.
Such functionality may already be available in one way or another (eg
through a Timer object), but because configuring PWM via a Timer is very
port-specific, and because it's a common thing to do, it's beneficial to
have a top-level construct for it.
The specification in this commit aims to provide core functionality in a
minimal way. It also somewhat matches most existing ad-hoc implementations
of machine.PWM.
See discussion in adafruit#2283 and adafruit#4237.
Signed-off-by: Damien George <damien@micropython.org>
On
Adafruit CircuitPython 6.2.0-beta.2-18-g2a467f137 on 2021-02-15
this code spits aRuntimeError: All state machines in use
Based on discussion in Adafruit Forums: Can RP2040 PIO PULL be used in CircuitPython? this should work either due to code sharing or packing code into shared memory.
The text was updated successfully, but these errors were encountered: