MicroPython Thread Problem?

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
Jackli
Posts: 80
Joined: Thu Apr 29, 2021 9:11 am

MicroPython Thread Problem?

Post by Jackli » Tue Jun 15, 2021 5:56 am

I want to use the thread function and the system throws an error

Code: Select all

MicroPython v1.9.4-775-gf350b640a on 2019-02-18; PYBv1.1-YD407VG with STM32F407VG
Type "help()" for more information.
>>> import _thread
Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
ImportError: no module named '_thread'
>>>
>>>
Does anyone know how to fix it?

stijn
Posts: 735
Joined: Thu Apr 24, 2014 9:13 am

Re: MicroPython Thread Problem?

Post by stijn » Tue Jun 15, 2021 6:08 am


Jackli
Posts: 80
Joined: Thu Apr 29, 2021 9:11 am

Re: MicroPython Thread Problem?

Post by Jackli » Tue Jun 15, 2021 7:45 am

stijn wrote:
Tue Jun 15, 2021 6:08 am
Which port? Have you seen e.g. viewtopic.php?f=16&t=8900&p=50268&hilit ... ing#p50268?
Thank you so much for your reply, I haven't read this post yet and I think this might solve my problem, thanks a lot!

Post Reply