by Rob Toulson and Tim Wilmshurst from textbook "Fast and Effective Embedded Systems Design: Applying the ARM mbed"

Dependencies:   mbed

main.cpp

Committer:
robt
Date:
2012-08-31
Revision:
0:241d9ee41621

File content as of revision 0:241d9ee41621:

/* Program Example 2.1: Simple LED flashing
                                                      */
#include "mbed.h"
DigitalOut myled(LED1);
int main()
{
    while(1) {
        myled = 1;
        wait(0.2);
        myled = 0;
        wait(0.2);
    }
}