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