asd

Dependencies:   mbed

Fork of Serial_HelloWorld_Mbed by mbed official

Committer:
umairaftab
Date:
Wed Dec 03 20:07:29 2014 +0000
Revision:
2:4824df3bdaf9
Parent:
0:879aa9d0247b
working

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_official 0:879aa9d0247b 1 #include "mbed.h"
mbed_official 0:879aa9d0247b 2
umairaftab 2:4824df3bdaf9 3 Serial pc(PTA2, PTA1); // tx, rx
mbed_official 0:879aa9d0247b 4
mbed_official 0:879aa9d0247b 5 int main() {
umairaftab 2:4824df3bdaf9 6 pc.baud(115200);
umairaftab 2:4824df3bdaf9 7
mbed_official 0:879aa9d0247b 8 pc.printf("Hello World!\n");
mbed_official 0:879aa9d0247b 9 while(1) {
mbed_official 0:879aa9d0247b 10 pc.putc(pc.getc() + 1);
mbed_official 0:879aa9d0247b 11 }
mbed_official 0:879aa9d0247b 12 }