PyCom uasyncio installation
Seeing multiple questions on how to install micropython-uasyncio
on PyCom hardware, I decided to document the process on firmware v1.19.0.b4.
After flashing your PyCom hardware with v1.19.0.b4, you will need to get your device online. Here is a boot.py
script that will get you connected.
We will use the upip
package manager to download uasyncio
to our device. Download a copy of the micropython-lib
from https://github.com/micropython/micropython-lib. Upload upip.py
and upip_utarfile.py
to your device’s /flash/lib
folder.
Now you can use upip
to install uasyncio
packages from PyPi [eg. upip.install(‘micropython-asyncio’,’lib’)
]. Some of the packages are mentioned here.
After you are done, you can try the samples from micropython-async
tutorials.