Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4804

MicroPython • Re: Traffic_Lights.py example error

$
0
0
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 4804

Trending Articles