Oppgave 5.1a

Dependencies:   mbed

main.cpp

Committer:
Smashftw
Date:
2017-10-03
Revision:
1:37a4f8f93b05
Parent:
0:bf2a26f06012

File content as of revision 1:37a4f8f93b05:

#include "mbed.h"

DigitalOut myled(LED1);
void blink1(void);

int main()
{
    int n = 20;
    while(n>0) {
        blink1();
        n--;
    }
    return 0;
}
void blink1(void)
{
    myled =1;
    wait(0.2);
    myled =0;
    wait(0.3);
}