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.cpp@0:7f9b22ecb9f8, 2018-02-20 (annotated)
- Committer:
- ccameron07
- Date:
- Tue Feb 20 11:26:23 2018 +0000
- Revision:
- 0:7f9b22ecb9f8
Ready to publish
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| ccameron07 | 0:7f9b22ecb9f8 | 1 | # include "mbed.h" |
| ccameron07 | 0:7f9b22ecb9f8 | 2 | |
| ccameron07 | 0:7f9b22ecb9f8 | 3 | Serial usbcomm(USBTX, USBRX); |
| ccameron07 | 0:7f9b22ecb9f8 | 4 | Serial debugcomm(PA_2, PA_3); |
| ccameron07 | 0:7f9b22ecb9f8 | 5 | |
| ccameron07 | 0:7f9b22ecb9f8 | 6 | int main () { |
| ccameron07 | 0:7f9b22ecb9f8 | 7 | |
| ccameron07 | 0:7f9b22ecb9f8 | 8 | while (true) { |
| ccameron07 | 0:7f9b22ecb9f8 | 9 | wait(1); |
| ccameron07 | 0:7f9b22ecb9f8 | 10 | usbcomm.printf("Hello World\n\r"); |
| ccameron07 | 0:7f9b22ecb9f8 | 11 | debugcomm.printf("Debug World\n\r"); |
| ccameron07 | 0:7f9b22ecb9f8 | 12 | } |
| ccameron07 | 0:7f9b22ecb9f8 | 13 | return 0; |
| ccameron07 | 0:7f9b22ecb9f8 | 14 | } |