Additional Serial Example

main.cpp

Committer:
sarahmarshy
Date:
2017-06-23
Revision:
1:40997137fc4d
Parent:
0:7376f17bb36e

File content as of revision 1:40997137fc4d:

#include "mbed.h"

Serial device(USBTX, USBRX);  // tx, rx

int main() {
    device.baud(19200);
    device.printf("Hello World\n");
}