This simple program demonstates how its possible to run mbed code on LpcXpreso 1769 board. Step 1 - import the program from the library and set mbed LPC1768 as target device; Step 2 - Build the program and export the bin file to your computer; Step 3 - Open CodeRed suite on your computer and program your lpcXpresso with the previously downloaded bin file.

Dependencies:   mbed

main.cpp

Committer:
biank88
Date:
2013-11-11
Revision:
1:69d42f6c6e3a
Parent:
0:4d41a054fcc2

File content as of revision 1:69d42f6c6e3a:

#include "mbed.h"

// mapping to LPCXpresso_1769 board led
#define XLED P0_22 

DigitalOut myled(XLED);

int main() {
    while(1) {
        myled = 1;
        wait(0.2);
        myled = 0;
        wait(0.2);
    }
}