How do I use Threading / Uasyncio Pyboard D

The official PYBD running MicroPython, and its accessories.
Target audience: Users with a PYBD
Post Reply
MrRobot
Posts: 2
Joined: Mon May 11, 2020 11:30 am

How do I use Threading / Uasyncio Pyboard D

Post by MrRobot » Wed May 20, 2020 2:54 pm

Hi I currently have a Pyboard D SF6W with the latest firmware 1.12

When I try " import _thread" or "import uasyncio" I get a message saying "module not found"

Can someone talk me through how to install these modules for my pyboard D?

User avatar
tve
Posts: 184
Joined: Wed Jan 01, 2020 10:12 pm
Location: Santa Barbara, CA
Contact:

Re: How do I use Threading / Uasyncio Pyboard D

Post by tve » Wed May 20, 2020 4:24 pm

I can't tell you about threads, but for asyncio you need to use firmware _post_ 1.12, i.e. a daily build.

User avatar
pythoncoder
Posts: 4149
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: How do I use Threading / Uasyncio Pyboard D

Post by pythoncoder » Thu May 21, 2020 6:37 am

@tve is right about uasyncio.

Re threading, there does seem to be an issue with the downloads page on micropython.org. Firmware for Pyboard 1.x is available with threading enabled. It is not there for the Pyboard D. I'm sure this is an oversight: I will report it.

FWIW I strongly recommend usayncio for reasons which may be found here.
Peter Hinch

MrRobot
Posts: 2
Joined: Mon May 11, 2020 11:30 am

Re: How do I use Threading / Uasyncio Pyboard D

Post by MrRobot » Thu May 21, 2020 9:24 am

tve wrote:
Wed May 20, 2020 4:24 pm
I can't tell you about threads, but for asyncio you need to use firmware _post_ 1.12, i.e. a daily build.
Thanks, I'll try use a daily build for uasyncio

Post Reply