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-os-example-mbed5-blinky by
main.cpp
00001 #include "mbed.h" 00002 00003 DigitalOut led1(LED1); 00004 DigitalOut led2(LED2); 00005 DigitalOut led3(LED3); 00006 00007 // main() runs in its own thread in the OS 00008 int main() { 00009 while (true) { 00010 led1.write(1); 00011 led2.write(0); 00012 led3.write(0); 00013 wait(0.5); 00014 00015 led1.write(0); 00016 led2.write(1); 00017 led3.write(0); 00018 wait(0.5); 00019 00020 led1.write(0); 00021 led2.write(0); 00022 led3.write(1); 00023 wait(0.5); 00024 } 00025 } 00026
Generated on Sun Jul 17 2022 10:23:05 by
1.7.2
