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 LD19(P1_18); 00004 DigitalOut LD20(P1_20); 00005 DigitalOut LD21(P1_21); 00006 DigitalOut LD22(P1_23); 00007 00008 00009 00010 int main(void) { 00011 int dur = 1; 00012 LD19 = 0; 00013 LD20 = 0; 00014 LD21 = 0; 00015 LD22 = 0; 00016 00017 while (1) { 00018 LD19 = 1; 00019 wait(dur); 00020 LD19 = 0; 00021 00022 LD20 = 1; 00023 wait(dur); 00024 LD20 = 0; 00025 00026 LD21 = 1; 00027 wait(dur); 00028 LD21 = 0; 00029 00030 LD22 = 1; 00031 wait(dur); 00032 LD22 = 0; 00033 } 00034 }
Generated on Wed Jul 13 2022 23:04:27 by
1.7.2