SAMPLE SERIAL PROJECT

Dependencies:   mbed

Fork of Serial_HelloWorld_Mbed by mbed official

main.cpp

Committer:
citolin
Date:
14 months ago
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);
    }
}