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 //LocalFileSystem local("local"); 00009 00010 long i = 0; 00011 00012 int main() 00013 { 00014 00015 00016 while (1) 00017 { 00018 //FILE *fp = fopen("/local/test.txt", "a"); 00019 myled1 = 1; 00020 wait(0.05); 00021 myled1 = 0; 00022 myled2 = 1; 00023 wait(0.05); 00024 myled2 = 0; 00025 myled3 = 1; 00026 wait(0.05); 00027 myled3 = 0; 00028 myled4 = 1; 00029 wait(0.2); 00030 myled4 = 0; 00031 myled3 = 1; 00032 wait(0.05); 00033 myled3 = 0; 00034 myled2 = 1; 00035 wait(0.05); 00036 myled2 = 0; 00037 myled1 = 1; 00038 wait(0.05); 00039 myled1 = 0; 00040 wait(0.5); 00041 printf("nightrider loop %i\n\r", i); 00042 i++; 00043 //fclose(fp); 00044 //wait(5); 00045 00046 } 00047 }
Generated on Wed Jul 13 2022 02:35:06 by
1.7.2