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 PwmOut myled(dp18); 00004 00005 int main() { 00006 while(1) { 00007 myled = 0.0; 00008 wait(0.2); 00009 myled = 0.1; 00010 wait(0.2); 00011 myled = 0.2; 00012 wait(0.2); 00013 myled = 0.3; 00014 wait(0.2); 00015 myled = 0.4; 00016 wait(0.2); 00017 myled = 0.5; 00018 wait(0.2); 00019 myled = 0.6; 00020 wait(0.2); 00021 myled = 0.7; 00022 wait(0.2); 00023 myled = 0.8; 00024 wait(0.2); 00025 myled = 0.9; 00026 wait(0.2); 00027 myled = 1.0; 00028 wait(0.2); 00029 } 00030 }
Generated on Fri Jul 15 2022 08:09:20 by
1.7.2