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:01a332b879d2, 2011-08-26 (annotated)
- Committer:
- jksoft
- Date:
- Fri Aug 26 15:25:31 2011 +0000
- Revision:
- 0:01a332b879d2
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| jksoft | 0:01a332b879d2 | 1 | #include "mbed.h" |
| jksoft | 0:01a332b879d2 | 2 | |
| jksoft | 0:01a332b879d2 | 3 | Serial pc(USBTX, USBRX); // tx, rx |
| jksoft | 0:01a332b879d2 | 4 | |
| jksoft | 0:01a332b879d2 | 5 | int main() { |
| jksoft | 0:01a332b879d2 | 6 | pc.printf("Hello World!\r\n"); |
| jksoft | 0:01a332b879d2 | 7 | while(1) { |
| jksoft | 0:01a332b879d2 | 8 | pc.putc(pc.getc() + 1); |
| jksoft | 0:01a332b879d2 | 9 | } |
| jksoft | 0:01a332b879d2 | 10 | } |