uasyncio
Posted: Sun Jan 01, 2017 5:02 pm
In recent weeks this has been radically improved. In particular it now offers millisecond level scheduling making it usable for asynchronous (non-blocking) device drivers. I've spent some time coding with it and documenting its use.
This is the outcome https://github.com/peterhinch/micropython-async.git.
It provides the following:
Any comments, especially corrections of factual errors, welcome
This is the outcome https://github.com/peterhinch/micropython-async.git.
It provides the following:
- A brief description of the subset of asyncio currently available.
- Debounced device drivers for switches and pushbuttons. The latter supports long-press and double-click events.
- Several demo programs.
- A set of simple synchronisation primitives: Lock, Event, Barrier and Semaphore classes.
- A tutorial on using the uasyncio subset to interface hardware.
Any comments, especially corrections of factual errors, welcome