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
- Committer:
- tim003
- Date:
- 2014-03-06
- Revision:
- 0:cb0b8e748def
File content as of revision 0:cb0b8e748def:
#include "mbed.h" DigitalOut myled(LED3); int main() { float suma1=1,suma2=1; while(1) { for(int i=0;i<15;i++){ myled = 1; wait(suma2); myled = 0; wait(suma1); suma1+=0.06; suma2-=0.06; } for(int i=0;i<30;i++){ myled = 1; wait(suma2); myled = 0; wait(suma1); suma1-=0.06; suma2+=0.06; } for(int i=0;i<15;i++){ myled = 1; wait(suma2); myled = 0; wait(suma1); suma1+=0.06; suma2-=0.06; } } }