mbed.h with MCUxpresso?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

mbed.h with MCUxpresso?

1,388 Views
eflament
Contributor II

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?

Tags (2)
0 Kudos
Reply
1 Reply

1,069 Views
miduo
NXP Employee
NXP Employee

Hello,

Yes, it is the DigitalOut interface used by Mbed to configure and control a digital output pin. See detail here:

DigitalOut - Handbook | Mbed 

0 Kudos
Reply