mbed.h with MCUxpresso?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

mbed.h with MCUxpresso?

1,933 次查看
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?

标记 (2)
0 项奖励
回复
1 回复

1,614 次查看
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 项奖励
回复