tim007 tim007
/
LV1_G1_Tim007_Zad3c
Enil Pajić Aida Pločo
Fork of LV1_G1_Tim007_Zad2 by
main.cpp
- Committer:
- tim007
- Date:
- 2014-03-03
- Revision:
- 1:febbb2498efa
- Parent:
- 0:5fd44252399a
File content as of revision 1:febbb2498efa:
#include "mbed.h" DigitalOut myled(LED2); int main() { while(1) { const double e = 1; //Ne radi kako treba :( int f = 5 + e; int h = 5 - e; for (int a = 0; a < 5; ++a) { myled = 0; wait_ms (f); f += e; myled = 1; wait_ms (h); h -= e; } } }