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.What alternatives are there to _thread?
There is also asyncio which can be appropriate in other cases.
Statistics: Posted by hippy — Tue Nov 12, 2024 10:54 am