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 myled(LED1); 00004 DigitalOut myled1(PC_8); 00005 DigitalOut myled2(PC_9); 00006 00007 int main() { 00008 while(1) { 00009 myled1 = 1; // LED is ON 00010 myled2 = 0; 00011 wait(0.2); // 200 ms 00012 myled1 = 0; // LED is OFF 00013 myled2 = 1; 00014 wait(3); // 1 sec 00015 00016 myled2 = 1; // LED is ON 00017 wait(0.2); // 200 ms 00018 myled2 = 0; // LED is OFF 00019 wait(0.2); // 1 sec 00020 } 00021 }
Generated on Wed Jul 20 2022 17:14:09 by
1.7.2