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
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.2); 00014 00015 led1.write(1); 00016 led2.write(1); 00017 led3.write(0); 00018 wait(0.2); 00019 00020 led1.write(1); 00021 led2.write(1); 00022 led3.write(1); 00023 wait(0.2); 00024 00025 led1.write(0); 00026 led2.write(0); 00027 led3.write(0); 00028 wait(0.2); 00029 } 00030 } 00031
Generated on Wed Jul 13 2022 02:53:31 by
1.7.2