Skip to content

Add module for non-blocking timer class #644

@mikepschneider

Description

@mikepschneider

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions