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 counter; 00009 00010 int main() { 00011 while (1) { 00012 00013 for (counter = 1; counter < 16; ++counter) { 00014 myled1 = (counter & 1); 00015 myled2 = (counter & 2); 00016 myled3 = (counter & 4); 00017 myled4 = (counter & 8); 00018 wait(2); 00019 } 00020 } 00021 } 00022
Generated on Mon Jul 18 2022 11:36:51 by
1.7.2