hue

Dependencies:   mbed

Committer:
fshade057
Date:
Wed May 04 23:31:34 2016 +0000
Revision:
0:d4386e9356d5
Jason pls

Who changed what in which revision?

UserRevisionLine numberNew contents of line
fshade057 0:d4386e9356d5 1
fshade057 0:d4386e9356d5 2 #include "mbed.h"
fshade057 0:d4386e9356d5 3
fshade057 0:d4386e9356d5 4 Serial pc(p9, p10); // Use UART3 on LPC4088 Quickstart board
fshade057 0:d4386e9356d5 5 Serial pc2(USBTX, USBRX);
fshade057 0:d4386e9356d5 6
fshade057 0:d4386e9356d5 7 int count = 0;
fshade057 0:d4386e9356d5 8
fshade057 0:d4386e9356d5 9 int main() {
fshade057 0:d4386e9356d5 10 pc.baud(19200);
fshade057 0:d4386e9356d5 11 pc2.baud(19200);
fshade057 0:d4386e9356d5 12
fshade057 0:d4386e9356d5 13 pc2.printf("Testing UART Communication\n\r");
fshade057 0:d4386e9356d5 14 while(1) {
fshade057 0:d4386e9356d5 15 pc.putc(count);
fshade057 0:d4386e9356d5 16 pc2.printf("Sending: %i\n\r", count);
fshade057 0:d4386e9356d5 17 wait(1);
fshade057 0:d4386e9356d5 18 count = count + 1;
fshade057 0:d4386e9356d5 19 }
fshade057 0:d4386e9356d5 20 }