Hello World for DigitalOut
mbed 2 and mbed OS 5
This is an mbed 2 example. For an mbed-os example, please see:
Import programDigitalOut_HelloWorld
Hello World for DigitalOut
main.cpp
- Committer:
- mbed_official
- Date:
- 2013-02-21
- Revision:
- 1:b66c5cfa5d8f
- Parent:
- 0:b5a9e0614efd
File content as of revision 1:b66c5cfa5d8f:
#include "mbed.h" DigitalOut myled(LED1); int main() { while(1) { myled = 1; wait(0.2); myled = 0; wait(0.2); } }