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.
Fork of LV1_Grupa4_Tim008_Zadatak4 by
main.cpp
- Committer:
- tim008
- Date:
- 2014-03-03
- Revision:
- 1:b6bb5d47580c
- Parent:
- 0:1011d2559d36
- Child:
- 2:c9ca07dab9f5
File content as of revision 1:b6bb5d47580c:
#include "mbed.h" DigitalOut myled(LED1); int main() { double t1 = 1, t2 = 1; while(1) { for(int i = 0; i < 30; i++) { myled = 0; wait(t1); myled = 1; wait(t2); t1 += 0.03; t2 -= 0.03; } for(int i = 0; i < 60; i++) { myled = 0; wait(t1); myled = 1; wait(t2); t1 -= 0.03; t2 += 0.03; } for(int i = 0; i < 30; i++) { myled = 0; wait(t1); myled = 1; wait(t2); t1 += 0.03; t2 -= 0.03; } } }