![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
NTOUEE mbed sample code : blinky LED1 & printf
main.cpp
- Committer:
- rkuo2000
- Date:
- 2016-12-27
- Revision:
- 2:3ee7481c87be
- Parent:
- 0:548933a73419
File content as of revision 2:3ee7481c87be:
#include "mbed.h" DigitalOut led1(LED1); int main() { while (true) { led1 = !led1; Thread::wait(500); printf("LED1=%d\n\r", led1); // please set UART baud rate = 9600 } }