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.
main.cpp@1:69d42f6c6e3a, 2013-11-11 (annotated)
- Committer:
- biank88
- Date:
- Mon Nov 11 19:09:21 2013 +0000
- Revision:
- 1:69d42f6c6e3a
- Parent:
- 0:4d41a054fcc2
edit comment
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
biank88 | 0:4d41a054fcc2 | 1 | #include "mbed.h" |
biank88 | 0:4d41a054fcc2 | 2 | |
biank88 | 1:69d42f6c6e3a | 3 | // mapping to LPCXpresso_1769 board led |
biank88 | 0:4d41a054fcc2 | 4 | #define XLED P0_22 |
biank88 | 0:4d41a054fcc2 | 5 | |
biank88 | 0:4d41a054fcc2 | 6 | DigitalOut myled(XLED); |
biank88 | 0:4d41a054fcc2 | 7 | |
biank88 | 0:4d41a054fcc2 | 8 | int main() { |
biank88 | 0:4d41a054fcc2 | 9 | while(1) { |
biank88 | 0:4d41a054fcc2 | 10 | myled = 1; |
biank88 | 0:4d41a054fcc2 | 11 | wait(0.2); |
biank88 | 0:4d41a054fcc2 | 12 | myled = 0; |
biank88 | 0:4d41a054fcc2 | 13 | wait(0.2); |
biank88 | 0:4d41a054fcc2 | 14 | } |
biank88 | 0:4d41a054fcc2 | 15 | } |