![](/media/cache/group/mbed-logo-square-512_3.png.50x50_q85.png)
RawSerial Helloworld example
Fork of RawSerial_ex_1 by
main.cpp@0:c68431f372b4, 2017-10-09 (annotated)
- Committer:
- kgilbert
- Date:
- Mon Oct 09 20:03:26 2017 +0000
- Revision:
- 0:c68431f372b4
- Child:
- 1:f21d95cb733d
Add source for example
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
kgilbert | 0:c68431f372b4 | 1 | #include "mbed.h" |
kgilbert | 0:c68431f372b4 | 2 | |
kgilbert | 0:c68431f372b4 | 3 | RawSerial device(USBTX, USBRX); // tx, rx |
kgilbert | 0:c68431f372b4 | 4 | |
kgilbert | 0:c68431f372b4 | 5 | int main() { |
kgilbert | 0:c68431f372b4 | 6 | device.baud(19200); |
kgilbert | 0:c68431f372b4 | 7 | device.printf("Hello World\n"); |
kgilbert | 0:c68431f372b4 | 8 | } |