Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
main.cpp
- Committer:
- workingyifei
- Date:
- 2018-01-07
- Revision:
- 1:f0543338c25a
- Parent:
- 0:aacbb0060c5c
File content as of revision 1:f0543338c25a:
#include "mbed.h" DigitalOut led3(LED3); DigitalOut led2(LED2); DigitalOut led1(LED1); // main() runs in its own thread in the OS int main() { while (true) { led1 = !led1; wait(0.5); led2 = !led2; wait(0.5); led3 = !led3; } }