Quantcast
Viewing all articles
Browse latest Browse all 5359

MicroPython • Re: Traffic_Lights.py example error

What alternatives are there to _thread?
There are interrupt callbacks which can set flags and do things when a button is pushed - which is probably the best option for the code you have.

There is also asyncio which can be appropriate in other cases.

Statistics: Posted by hippy — Tue Nov 12, 2024 10:54 am



Viewing all articles
Browse latest Browse all 5359

Trending Articles