RawSerial Example

main.cpp

Committer:
kgilbert
Date:
2017-10-09
Revision:
1:6a0d9cb21969
Parent:
0:c68431f372b4

File content as of revision 1:6a0d9cb21969:

#include "mbed.h"
 
RawSerial device(USBTX, USBRX);  // tx, rx
 
int main() {
    device.baud(19200);
    device.printf("Hello World\n");
}