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 int main() { 00006 float dT=0.01,wdT; 00007 while(1) { 00008 wdT=0.00001; 00009 for(int i=0;i<100;i++){ 00010 myleds[0] = 1; 00011 myleds[1] = 1; 00012 myleds[2] = 1; 00013 myleds[3] = 1; 00014 wait(wdT); 00015 myleds[0] = 0; 00016 myleds[1] = 0; 00017 myleds[2] = 0; 00018 myleds[3] = 0; 00019 wait(dT-wdT); 00020 wdT=wdT+0.00001; 00021 } 00022 } 00023 }
Generated on Sun Aug 7 2022 04:14:00 by
1.7.2