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 #define WAIT_TIME 0.09 00004 00005 DigitalOut led1(LED1); 00006 DigitalOut led2(LED2); 00007 DigitalOut led3(LED3); 00008 DigitalOut led4(LED4); 00009 00010 int main() { 00011 while(1) { 00012 led1 = 1; 00013 wait(WAIT_TIME); 00014 led2 = led1; 00015 wait(WAIT_TIME); 00016 led3 = led1; 00017 wait(WAIT_TIME); 00018 led4 = led1; 00019 wait(WAIT_TIME); 00020 led1 = 0; 00021 wait(WAIT_TIME); 00022 led2 = led1; 00023 wait(WAIT_TIME); 00024 led3 = led1; 00025 wait(WAIT_TIME); 00026 led4 = led1; 00027 wait(WAIT_TIME); 00028 } 00029 }
Generated on Fri Jul 22 2022 01:36:36 by
1.7.2