mbed.h with MCUxpresso?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

mbed.h with MCUxpresso?

1,928件の閲覧回数
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,609件の閲覧回数
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 件の賞賛
返信