Use Uart

Dependencies:   mbed

Fork of Serial_HelloWorld_Mbed by eunkyoung kim

Committer:
eunkyoungkim
Date:
Mon Jun 29 01:40:30 2015 +0000
Revision:
1:5f5162adee9f
Parent:
0:879aa9d0247b
Child:
2:ab03b0b5012c
Hellow world;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_official 0:879aa9d0247b 1 #include "mbed.h"
mbed_official 0:879aa9d0247b 2
eunkyoungkim 1:5f5162adee9f 3 Serial pc(PC_2, PC_3); // tx, rx
mbed_official 0:879aa9d0247b 4
mbed_official 0:879aa9d0247b 5 int main() {
mbed_official 0:879aa9d0247b 6 pc.printf("Hello World!\n");
mbed_official 0:879aa9d0247b 7 while(1) {
mbed_official 0:879aa9d0247b 8 pc.putc(pc.getc() + 1);
mbed_official 0:879aa9d0247b 9 }
mbed_official 0:879aa9d0247b 10 }