I want to test Micropython in practice on the ESP32. However, I have not had any contact with this language so far. Let's assume that there is a procedure called when an event occurs, e.g:
.
How in the main program to effectively wait for an event to occur?
Is the simplest solution, i.e. a while loop, a good one ?
Code: Python
How in the main program to effectively wait for an event to occur?
Is the simplest solution, i.e. a while loop, a good one ?
Code: Python