I'm struggling to get some sample code working with asyncio in CircuitPython for either my QT Py RP2040 or Metro M7. I've tried CP 7.3.3 and 8.1.0. My hope is to establish robust serial data communication with an outside device over UART or Serial.
After adding the asyncio library to the board, the call
Code: Select all
import asyncio
If I look at the requirements folder, the library adafruit_ticks seems to depend on Blinka. But I'm trying to run on-device with CircuitPython, and I am confused. Do I need to install Blinka on the micro? (Thought that was for the PC.) The closest thing I can find for help so far is this tutorial on how to run CircuitPython libraries on MicroPython.code.py output:
Traceback (most recent call last):
File "code.py", line 1, in <module>
File "asyncio/__init__.py", line 14, in <module>
File "asyncio/core.py", line 18, in <module>
ImportError: no module named 'adafruit_ticks'
This tutorial seems to imply that asyncio should work out of the box on CircuitPython. What am I doing wrong or incompletely?
Thanks!
David