First test on using mbed library with naked LPC1114 chip on breadboard. Blink LED pin 28, append UART test, procedure putc(), puts(), PWM beep 1kHz on pin 1.
Fork of lpc1114test by
main.cpp@0:15ea674d67d9, 2013-10-31 (annotated)
- Committer:
- sdizdarevic
- Date:
- Thu Oct 31 18:48:11 2013 +0000
- Revision:
- 0:15ea674d67d9
- Child:
- 1:8aecb799ae5e
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 | } |