You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#include"mbed.h"
DigitalOut led1(LED1);
InterruptIn irq_data(P2_14);
// main() runs in its own thread in the OS// (note the calls to wait below for delays)intmain() {
while (true) {
led1 = !led1;
wait(0.5);
}
}
This will prevent the LED from blinking. This pin is listed as an acceptable GPIO IRQ pin here. It does not print the warning "pinmap not found for peripheral" that would indicate that the pin is not supported for this operation.