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:
- 4:0ae9bda1e421
- Parent:
- 3:23f3f69678be
- Child:
- 5:051be37cfef7
diff -r 23f3f69678be -r 0ae9bda1e421 main.cpp --- a/main.cpp Sat Nov 09 15:53:14 2013 +0000 +++ b/main.cpp Sat Nov 09 16:00:56 2013 +0000 @@ -2,7 +2,7 @@ // naked LPC1114 on breadboard DigitalOut myled(dp28); // LED connect to P0_7 (pin 28) Serial uart(dp16, dp15); // UART connect to P1_7: TX (pin 16), P1_6: RX (pin 15) -PwmOut pwm(dp1); // PWM connect to P0_8: CT16B0_MAT0 (pin1) provisional, blocking SPI! (MISO) +PwmOut pwm(dp18); // PWM connect to P1_9: CT16B1_MAT0 (pin18) int main() { char c = '0';