Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of USBSerial_HelloWorld by
main.cpp@10:46bb58eff6d5, 2014-07-17 (annotated)
- Committer:
- alpesh
- Date:
- Thu Jul 17 14:42:12 2014 +0000
- Revision:
- 10:46bb58eff6d5
- Parent:
- 9:d88699a0905a
Serial communication with the encoders
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| samux | 7:5e693654d5b4 | 1 | #include "mbed.h" |
| samux | 7:5e693654d5b4 | 2 | #include "USBSerial.h" |
| samux | 7:5e693654d5b4 | 3 | |
| samux | 7:5e693654d5b4 | 4 | //Virtual serial port over USB |
| samux | 7:5e693654d5b4 | 5 | USBSerial serial; |
| samux | 7:5e693654d5b4 | 6 | |
| samux | 7:5e693654d5b4 | 7 | int main(void) { |
| samux | 9:d88699a0905a | 8 | |
| samux | 7:5e693654d5b4 | 9 | while(1) |
| samux | 7:5e693654d5b4 | 10 | { |
| alpesh | 10:46bb58eff6d5 | 11 | serial.printf("Hello From Serial Port\r\n"); |
| alpesh | 10:46bb58eff6d5 | 12 | // wait(1); We dont need it to wait |
| samux | 7:5e693654d5b4 | 13 | } |
| samux | 7:5e693654d5b4 | 14 | } |
