Page 1 of 1

How do I use Threading / Uasyncio Pyboard D

Posted: Wed May 20, 2020 2:54 pm
by MrRobot
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?

Re: How do I use Threading / Uasyncio Pyboard D

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

Re: How do I use Threading / Uasyncio Pyboard D

Posted: Thu May 21, 2020 6:37 am
by pythoncoder
@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.

Re: How do I use Threading / Uasyncio Pyboard D

Posted: Thu May 21, 2020 9:24 am
by MrRobot
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