Ex 1

Dependencies:   mbed

main.cpp

Committer:
pdstewart
Date:
2016-09-22
Revision:
0:579045175873

File content as of revision 0:579045175873:

#include "mbed.h"

DigitalOut myled(LED1);  // use onboard LED #1

int main() {
    while(1) {          // repeat indefinitely 
        myled = 1;      // turn on LED #1
        wait(0.250);    // wait 250ms 
        myled = 0;      // turn off LED #1
        wait(0.250);    // wait 250ms 
    }
}