Ilma Kurtović Adnan Kičin

Dependencies:   mbed

Fork of LV1-Grupa3-tim003-Zadatak1 by tim003 tim003

main.cpp

Committer:
tim003
Date:
2014-03-03
Revision:
2:f68f6c45b79c
Parent:
1:b56d4f08aa46

File content as of revision 2:f68f6c45b79c:

#include "mbed.h"

DigitalOut myled(LED2);


int main(){
    while(1) {
        float i=1;
        while(i<=1.9){
            myled=0;
            wait(i+0.03);
            myled=1;
            wait(2-i);
            }
            while(i>=0.1){
            myled=1;
            wait(i-0.0105);
            myled=0;
            wait(2-i);
            }
            while(i<=1.9){
            myled=0;
            wait(i+0.0105);
            myled=1;
            wait(2-i);
            }
}
}