Closed n-k closed 5 years ago
Is it possible to use interrupts to handle button events, instead of polling the buttons' state? It would be great if there was an example showing how to do that.
@n-k Indeed. The gpio_hal_printbuttons uses interrupts to detect button presses. Is that sufficient?
gpio_hal_printbuttons
That's perfect @therealprof , I should have read the examples more closely.
Is it possible to use interrupts to handle button events, instead of polling the buttons' state? It would be great if there was an example showing how to do that.