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
Diff: main.cpp
- Revision:
- 2:6b5d2029ec07
- Parent:
- 1:8aecb799ae5e
- Child:
- 3:23f3f69678be
--- a/main.cpp Sat Nov 09 13:16:32 2013 +0000 +++ b/main.cpp Sat Nov 09 13:30:11 2013 +0000 @@ -10,7 +10,7 @@ while(1) { // repeat (period 1sec) myled = 0; // LED on wait(0.5); - uart.putc(c++); if (c > '9') c = '0'; // put character & rotate 0,1,2,... 9 + uart.putc(c++); if (c > '9') c = '0'; // Put Character & rotate 0,1,2,... 9 myled = 1; // LED off wait(0.5); uart.puts(" Hello world.\n\r"); // Put String "Hello..."