@@ -17,7 +17,7 @@ import uasyncio as asyncio
17
17
# Contents
18
18
19
19
0 . [ Introduction] ( ./TUTORIAL.md#0-introduction )
20
- 0.1 [ Installing asyncio] ( ./TUTORIAL.md#01-installing-asyncio ) Also the optional extensions .
20
+ 0.1 [ Installing asyncio primitives ] ( ./TUTORIAL.md#01-installing-asyncio-primitives ) Extensions used in the demos .
21
21
1 . [ Cooperative scheduling] ( ./TUTORIAL.md#1-cooperative-scheduling )
22
22
1.1 [ Modules] ( ./TUTORIAL.md#11-modules )
23
23
  ;  ;  ;  ;  ; 1.1.1 [ Primitives] ( ./TUTORIAL.md#111-primitives )
@@ -122,9 +122,8 @@ under MicroPython and CPython 3.8.
122
122
This tutorial aims to present a consistent programming style compatible with
123
123
CPython V3.8 and above.
124
124
125
- ## 0.1 Installing asyncio
125
+ ## 0.1 Installing asyncio primitives
126
126
127
- The latest release build of firmware or a newer nightly build is recommended.
128
127
This repository has optional unofficial primitives and extensions. To install
129
128
these, connect the target hardware to WiFi and issue:
130
129
``` python
@@ -151,11 +150,17 @@ pitfalls associated with truly asynchronous threads of execution.
151
150
152
151
The directory ` primitives ` contains a Python package containing the following:
153
152
* Synchronisation primitives: "micro" versions of CPython's classes.
154
- * Additional Python primitives including an ISR-compatible version of ` Event `
155
- and a software retriggerable delay class .
153
+ * Additional Python primitives including a software retriggerable delay class
154
+ and a MicroPython optimised ` ringbuf_queue ` .
156
155
* Primitives for interfacing hardware. These comprise classes for debouncing
157
- switches and pushbuttons and an asynchronous ADC class. These are documented
158
- [ here] ( ./DRIVERS.md ) .
156
+ switches and pushbuttons, an ` Encoder ` class and an asynchronous ADC class.
157
+ These are documented [ here] ( ./DRIVERS.md ) .
158
+ * Primitives for event-based coding which aims to reduce the use of callbacks
159
+ and is discussed [ here] ( ./EVENTS.md ) .
160
+
161
+ The directory ` threadsafe ` includes primitives designed to interface ` asyncio `
162
+ tasks to code running on other threads. These are documented
163
+ [ here] ( ./THREADING.md ) .
159
164
160
165
See above for installation.
161
166
0 commit comments