ports\stm32\boards\ZT_L476RG\mpconfigboard.h
//THREAD
#define MICROPY_PY_THREAD (1)
#define MICROPY_PY_THREAD_GIL (1)
import _thread
import time
def testThread():
while True:
print("Hello from thread")
time.sleep(2)
_thread.start_new_thread(testThread, ())
while True:
pass
micropython多线程
最新推荐文章于 2023-10-24 09:29:13 发布