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.
Dependencies: mbed
main.cpp
00001 #include "mbed.h" 00002 00003 DigitalOut myleds[] = {LED1,LED2,LED3,LED4}; 00004 00005 void funcmyleds(bool arg0, bool arg1, bool arg2, bool arg3){ 00006 myleds[0] = arg0; 00007 myleds[1] = arg1; 00008 myleds[2] = arg2; 00009 myleds[3] = arg3; 00010 } 00011 int main() { 00012 for(int i=15;i>0;i--){ 00013 funcmyleds(i&8,i&4,i&2,i&1); 00014 wait(1.0); 00015 } 00016 for(bool on=false;;on=!on ){ 00017 funcmyleds(on,on,on,on); 00018 wait(0.2); 00019 } 00020 }
Generated on Wed Aug 17 2022 06:41:56 by
1.7.2