Oppgave 5.1c

Dependencies:   mbed

main.cpp

Committer:
Smashftw
Date:
2017-09-26
Revision:
0:577d9598d207

File content as of revision 0:577d9598d207:

#include "mbed.h"

DigitalOut myled(LED1);
int blink2;
int main() 
     {
        int n = 30;
        while(n>0) {
        
        blink2(0.133, 0.067);
        n--;
    }return 0;
}
    
void blink2(float Tp, float Ta){
    myled=1;
    wait(Tp);
    myled=0;
    wait(Ta);
    }