![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
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:
- 5:051be37cfef7
- Parent:
- 4:0ae9bda1e421
- Child:
- 6:01a61ae34a8a
--- a/main.cpp Sat Nov 09 16:00:56 2013 +0000 +++ b/main.cpp Sat Nov 09 16:25:45 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(dp18); // PWM connect to P1_9: CT16B1_MAT0 (pin18) +PwmOut pwm(dp1); // PWM connect to P0_8: CT16B0_MAT0 (pin1); sorry, blocking SPI! int main() { char c = '0';