This example shows how to use InterruptIn to trigger a function call when a certain event happens. The example demonstrates calling a function on the rising edge of a button press. You can observe this through LED4 blinking as the program runs. LED1 only changes when the button is pressed.
MIRRORED FROM MASTER EXAMPLE SNIPPETS REPOSITORY: mbed-os-examples-docs_only. ANY CHANGES MADE DIRECTLY TO THIS REPOSITORY WILL BE AUTOMATICALLY OVERWRITTEN.