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.
Fork of mbed_blinky by
main.cpp
- Committer:
- hovig
- Date:
- 2015-01-14
- Revision:
- 7:3ea491238112
- Parent:
- 4:81cea7a352b0
File content as of revision 7:3ea491238112:
#include "mbed.h" DigitalOut myled1(LED1); DigitalOut myled2(LED2); DigitalOut myled3(LED3); int main() { while(1) { myled2 = 7; //turn myled on printf("LED OFF! \n\r"); wait(0.8); myled1 = 7; wait(0.8); myled3 = 7; wait(0.8); myled1 = 0; wait(0.8); myled2 = 0; //turn myled off printf("LED ON! \n\r"); wait(0.8); myled3 = 0; wait(0.8); } }