Additional Serial Example

Committer:
mab5449
Date:
Thu Jan 19 14:23:15 2017 -0600
Revision:
0:7376f17bb36e
Initial commit. Ported code snippets to mbed OS 5 projects

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 }