The mbed online compiler is really fantastic and writing code with MCUxpresso is really not. But MCUxpresso gives you access to the debugger probes. So is there a way to run this code in MCUxpresso:
#include "mbed.h"
DigitalOut myled(LED1);
int main() {
while(1) {
myled = 1;
wait(0.2);
myled = 0;
wait(0.5);
}
}
I have a FRDM-K66F board. Does a cpp file containing mbed.h essential mean that I am utilizing the mbed OS?
Hello,
Yes, it is the DigitalOut interface used by Mbed to configure and control a digital output pin. See detail here: