• Stars
    star
    714
  • Rank 63,413 (Top 2 %)
  • Language
    Python
  • License
    MIT License
  • Created almost 8 years ago
  • Updated 5 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Application of uasyncio to hardware interfaces. Tutorial and code.

Asynchronous programming in MicroPython

CPython supports asynchronous programming via the asyncio library. MicroPython provides uasyncio which is a subset of this, optimised for small code size and high performance on bare metal targets. This repository provides documentation, tutorial material and code to aid in its effective use.

uasyncio version 3

Damien has completely rewritten uasyncio which was released as V3.0. See PR5332. This is now incorporated in release build V1.13 and subsequent daily builds.

Resources for V3 may be found in the v3 directory. These include a guide to porting applications from V2, an updated tutorial, synchronisation primitives and various applications and demos.

V2 should now be regarded as obsolete for almost all applications with the possible exception mentioned below.

Go to V3 docs

uasyncio version 2

The official version 2 is entirely superseded by V3, which improves on it in every respect.

I produced a modified fast_io variant of V2 which is in use for some specialist purposes. It enables I/O to be scheduled at high priority. Currently this schedules I/O significantly faster than V3; the maintainers plan to improve uasyncio I/O scheduling. When this is complete I intend to delete all V2 material.

All V2 resources are in the V2 subdirectory: see this README.

More Repositories

1

micropython-mqtt

A 'resilient' asynchronous MQTT driver. Recovers from WiFi and broker outages.
Python
555
star
2

micropython-nano-gui

A lightweight MicroPython GUI library for display drivers based on framebuf class
Python
459
star
3

micropython-samples

Assorted code ideas, unofficial MP FAQ, plus index to my other repositories.
Python
443
star
4

micropython-font-to-py

A Python 3 utility to convert fonts to Python source capable of being frozen as bytecode
Python
370
star
5

micropython_ir

Nonblocking device drivers to receive from IR remotes and for IR "blaster" apps.
Python
239
star
6

micropython-micro-gui

A lightweight MicroPython GUI library for display drivers based on framebuf, allows input via pushbuttons. See also micropython-touch.
Python
237
star
7

micropython-iot

An approach to designing IOT applications using ESP8266, ESP32 or Pyboard D endpoints
Python
86
star
8

micropython-tft-gui

Simple GUI for Pyboard and TFT touch panel displays
Python
85
star
9

micropython-fourier

Fast Fourier transform in MicroPython's inline ARM assembler.
Python
76
star
10

micropython_eeprom

MicroPython device drivers for memory chips (EEPROM, FRAM, Flash, SPIRAM)
Python
70
star
11

micropython-filters

Digital filters impemented in MicroPython's inline ARM Thumb assembler (e.g. Pyboard, RP2).
Python
64
star
12

micropython_remote

Capture and replay 433MHz remote control codes. Control remote switched power adaptors.
Python
64
star
13

micropython-epaper

Driver for 2.7 inch Adafruit and Embedded Artists e-paper displays
Python
60
star
14

micropython-radio

Simple way to use an nRF24L01 radio to exchange arbitrary Python objects between two Pyboards
Python
52
star
15

micropython-micropower

Support for building ultra low power systems based on the Pyboard (1.x and D series).
Python
44
star
16

micropython-lcd160cr-gui

Touch GUI for the official MicroPython LCD display
Python
28
star
17

micropython-monitor

Display the behaviour of a realtime program with a scope or logic analyser.
Python
28
star
18

micropython-msgpack

MessagePack serialisation library optimised for MicroPython
Python
26
star
19

micropython_data_to_py

A Python3 utility to convert an arbitrary binary file to Python source for storage in Flash
Python
26
star
20

micropython-vs1053

Synchronous and asynchronous drivers for VS1053b MP3/FLAC player
Python
25
star
21

micropython-touch

A GUI for touch panel displays.
Python
18
star
22

micropython-amg88xx

Driver for Grid-EYE thermal infra red array sensor (Adafruit 3538)
Python
18
star
23

micropython_ra8875

MicroPython device driver and nano-GUI for RA8875 based displays
Python
9
star