Additional Serial Example

Committer:
sarahmarshy
Date:
Fri Jun 23 15:56:30 2017 -0500
Revision:
1:40997137fc4d
Parent:
0:7376f17bb36e
"Update mbed-os"

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mab5449 0:7376f17bb36e 1 #include "mbed.h"
mab5449 0:7376f17bb36e 2
mab5449 0:7376f17bb36e 3 Serial device(USBTX, USBRX); // tx, rx
mab5449 0:7376f17bb36e 4
mab5449 0:7376f17bb36e 5 int main() {
mab5449 0:7376f17bb36e 6 device.baud(19200);
mab5449 0:7376f17bb36e 7 device.printf("Hello World\n");
mab5449 0:7376f17bb36e 8 }