include mbed DigitalOut led PC_12 int main for led led wait

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
#include "mbed.h"
DigitalOut led(PC_12);
int main() {
for(;;) {
led = !led;
wait(0.5);
}
}