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.

Dependencies:   mbed

Fork of lpc1114test by Saudin Dizdarevic

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?

UserRevisionLine numberNew 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 }