Interrupting while someone is talking is rude for humans, but smart for computers. [Ivan Voras] shows how to use interrupts to service the ESP32 analog to digital converters when sampling sound.
to set an interrupt on both rising and falling edges. In this case finding out which event caused the interrupt is difficult. Notice that MicroPython for the ESP32 doesn’t support level interrupts, ...
Implementing an ISR is a step into the complex world of asynchronous programs and if this is something of interest see Programmer’s Python: Async,ISBN:978-1871962765. The biggest new problem that ...