
Čilić Zlatan Đenašević Emir
main.cpp
- Committer:
- tim004
- Date:
- 2014-03-03
- Revision:
- 0:c5225f137c6e
File content as of revision 0:c5225f137c6e:
#include "mbed.h" DigitalOut myled(LED2); int main() { float turnOn=1.0, turnOff=1.0, koeficijent=0.06; while(1) { while(turnOn < 1.9) { myled = 0; wait (turnOn); myled = 1; wait (turnOff); turnOn += koeficijent; turnOff -= koeficijent; } while(turnOn > 0.1) { myled = 0; wait (turnOn); myled = 1; wait (turnOff); turnOn -= koeficijent; turnOff += koeficijent; } } }