Oppgave 5.1 d original

Dependencies:   mbed

Fork of Oppgav51d by Sølibatgutt

main.cpp

Committer:
Smashftw
Date:
2017-09-26
Revision:
0:b34cb9ed7646
Child:
1:e06a4eff4a74

File content as of revision 0:b34cb9ed7646:

#include "mbed.h"

DigitalOut myled(LED1);
int blink3;
int main() 
     {
        int n = 30;
        while(n>0) {
        blink3(5, 0.67);
        n--;
    }return 0;
}

void blink3(float F, fload d){
    myled=1;
    wait(d/F);
    myled=0;
    wait((1-d)/F);
    }