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 PwmOut myled2(LED2); 00005 DigitalOut myled4(LED4); 00006 DigitalOut myled3(LED3); 00007 00008 int main() { 00009 while(1) { 00010 myled4 = (myled4+1)%2; 00011 myled3 = (myled4+1)%2; 00012 myled = 1; 00013 wait(0.2); 00014 myled = 0; 00015 wait(0.2); 00016 for(float p = 0.0f; p < 1.0f; p += 0.1f) { 00017 myled2 = p; 00018 wait(0.1); 00019 } 00020 } 00021 }
Generated on Tue Jul 26 2022 16:55:48 by
1.7.2