forked from micropython/micropython
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Description
Hello,
I've created a simple non-blocking timer class for circuitpython using the time.monotonic() function. It was suggested on discord that the class might be a useful addition to the circuitpython library for others to use. If there's interest I'm happy to break out the class into a proper package.
Class is here:
https://github.com/mikepschneider/circuitpy_ms/blob/master/CIRCUITPY/nonblockingtimer.py
Example usages are here:
https://github.com/mikepschneider/circuitpy_ms/blob/master/CIRCUITPY/demos.py