JINXIN WEI
/
mbed_blinky
LED hello world
main.cpp
- Committer:
- jw17594
- Date:
- 2018-01-18
- Revision:
- 1:96f0f4bee3bb
- Parent:
- 0:b3df5f84d2b8
File content as of revision 1:96f0f4bee3bb:
#include "mbed.h" DigitalOut myled(LED1); DigitalOut myled2(LED2); int main() { while(1) { myled = 1; myled2 = 0; wait(0.5); myled = 0; myled2 = 1; wait(0.5); } }