Saudin Dizdarevic
/
lpc1114test
First test on using mbed library with lpc1114 xpresso board.
main.cpp@0:15ea674d67d9, 2013-10-31 (annotated)
- Committer:
- sdizdarevic
- Date:
- Thu Oct 31 18:48:11 2013 +0000
- Revision:
- 0:15ea674d67d9
First test
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sdizdarevic | 0:15ea674d67d9 | 1 | #include "mbed.h" |
sdizdarevic | 0:15ea674d67d9 | 2 | |
sdizdarevic | 0:15ea674d67d9 | 3 | DigitalOut myled(dp28); |
sdizdarevic | 0:15ea674d67d9 | 4 | |
sdizdarevic | 0:15ea674d67d9 | 5 | int main() { |
sdizdarevic | 0:15ea674d67d9 | 6 | while(1) { |
sdizdarevic | 0:15ea674d67d9 | 7 | myled = 1; |
sdizdarevic | 0:15ea674d67d9 | 8 | wait(1); |
sdizdarevic | 0:15ea674d67d9 | 9 | myled = 0; |
sdizdarevic | 0:15ea674d67d9 | 10 | wait(1); |
sdizdarevic | 0:15ea674d67d9 | 11 | } |
sdizdarevic | 0:15ea674d67d9 | 12 | } |