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 myled(LED1); 00004 DigitalOut myled2(LED2); 00005 DigitalOut myled3(LED3); 00006 DigitalOut myled4(LED4); 00007 00008 int main() 00009 { 00010 while(1) 00011 { 00012 myled = 1; 00013 myled2 = 0; 00014 myled3 = 0; 00015 myled4 = 0; 00016 wait (2.5); 00017 00018 myled = 0; 00019 myled2 = 1; 00020 myled3 = 0; 00021 myled4 = 0; 00022 wait (2.5); 00023 00024 myled = 0; 00025 myled2 = 0; 00026 myled3 = 1; 00027 myled4 = 0; 00028 wait (2.5); 00029 00030 myled = 0; 00031 myled2 = 0; 00032 myled3 = 0; 00033 myled4 = 1; 00034 wait (2.5); 00035 00036 } 00037 00038 }
Generated on Fri Aug 19 2022 00:57:37 by
1.7.2