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.
Diff: main.cpp
- Revision:
- 0:4d41a054fcc2
- Child:
- 1:69d42f6c6e3a
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Mon Nov 11 18:36:15 2013 +0000 @@ -0,0 +1,15 @@ +#include "mbed.h" + +// mapping to LCXpresso 1769 board led +#define XLED P0_22 + +DigitalOut myled(XLED); + +int main() { + while(1) { + myled = 1; + wait(0.2); + myled = 0; + wait(0.2); + } +}