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 myled1(LED1); 00004 DigitalOut myled2(LED2); 00005 DigitalOut myled3(LED3); 00006 DigitalOut myled4(LED4); 00007 00008 int main() { 00009 while(1) { 00010 myled1 = 1; 00011 myled2 = 1; 00012 myled3 = 1; 00013 myled4 = 1; 00014 wait(5); 00015 00016 myled1 = 0; 00017 wait(0.1); 00018 myled1 = 1; 00019 wait(0.2); 00020 myled1 = 0; 00021 wait(0.1); 00022 myled1 = 1; 00023 wait(0.2); 00024 myled1 = 0; 00025 wait(0.1); 00026 myled1 = 1; 00027 00028 wait(0.5); 00029 myled1 = 0; 00030 wait(1); 00031 myled1 = 1; 00032 wait(0.2); 00033 myled1 = 0; 00034 wait(1); 00035 myled1 = 1; 00036 wait(0.2); 00037 myled1 = 0; 00038 wait(1); 00039 myled1 = 1; 00040 00041 wait(0.5); 00042 myled1 = 0; 00043 wait(0.1); 00044 myled1 = 1; 00045 wait(0.2); 00046 myled1 = 0; 00047 wait(0.1); 00048 myled1 = 1; 00049 wait(0.2); 00050 myled1 = 0; 00051 wait(0.1); 00052 myled1 = 1; 00053 00054 } 00055 }
Generated on Thu Jul 28 2022 15:09:02 by
1.7.2