SAMPLE SERIAL PROJECT

Dependencies:   mbed

Fork of Serial_HelloWorld_Mbed by mbed official

main.cpp

Committer:
citolin
Date:
2018-09-17
Revision:
1:32bbf443f54b
Parent:
0:879aa9d0247b

File content as of revision 1:32bbf443f54b:

#include "mbed.h"
 
Serial pc(USBTX, USBRX); // tx, rx
 
int main() {
    pc.printf("Hello World!\n");
    while(1) {
        pc.printf("a");
        //pc.putc(pc.getc() + 1);
    }
}