Link Search Menu Expand Document

Button-interrupt

GPIO-input-interrupt

Configure an interrupt on a button press.

1 thread running continuously putting out “loop message” every second

on button press: print out “isr message”

Zephyr docs Example 1 Example 2

User button and LED aliases can be found in the devicetree file build/zephyr/zephyr.dts.

button-interrupt-alias

Expected output:

button-interrupt-output