AnsweredAssumed Answered

mbed.h with MCUxpresso?

Question asked by E F on Nov 29, 2018
Latest reply on Dec 4, 2018 by Fang Li

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?

Outcomes