mbed_example
/
RawSerial_ex_1
RawSerial Example
main.cpp@0:c68431f372b4, 2017-10-09 (annotated)
- Committer:
- kgilbert
- Date:
- Mon Oct 09 20:03:26 2017 +0000
- Revision:
- 0:c68431f372b4
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 | } |