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.
main_serial.cpp@3:45c2b2d465c4, 2016-01-18 (annotated)
- Committer:
- va009039
- Date:
- Mon Jan 18 10:51:25 2016 +0000
- Revision:
- 3:45c2b2d465c4
- Parent:
- 2:c0c2a61188a9
use NUCLEO-F042K6 USBDevice
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| va009039 | 0:3395699bd0df | 1 | #if 0 |
| va009039 | 0:3395699bd0df | 2 | // https://developer.mbed.org/handbook/USBSerial |
| va009039 | 0:3395699bd0df | 3 | #include "mbed.h" |
| va009039 | 0:3395699bd0df | 4 | #include "USBSerial.h" |
| va009039 | 0:3395699bd0df | 5 | |
| va009039 | 0:3395699bd0df | 6 | int main() { |
| va009039 | 0:3395699bd0df | 7 | USBSerial serial; |
| va009039 | 0:3395699bd0df | 8 | |
| va009039 | 2:c0c2a61188a9 | 9 | for(int n = 0;; n++) { |
| va009039 | 0:3395699bd0df | 10 | serial.printf("I am a virtual serial port\r\n"); |
| va009039 | 2:c0c2a61188a9 | 11 | serial.printf("%d\r\n", n); |
| va009039 | 0:3395699bd0df | 12 | wait_ms(1000); |
| va009039 | 0:3395699bd0df | 13 | } |
| va009039 | 0:3395699bd0df | 14 | } |
| va009039 | 0:3395699bd0df | 15 | #endif |