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

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 
00003 // mapping to LPCXpresso_1769 board led
00004 #define XLED P0_22 
00005 
00006 DigitalOut myled(XLED);
00007 
00008 int main() {
00009     while(1) {
00010         myled = 1;
00011         wait(0.2);
00012         myled = 0;
00013         wait(0.2);
00014     }
00015 }