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.
Dependencies: mbed
main.cpp@0:ea607cf8589c, 2020-12-07 (annotated)
- Committer:
- KINU
- Date:
- Mon Dec 07 06:25:36 2020 +0000
- Revision:
- 0:ea607cf8589c
- Child:
- 1:2cebb75d319e
a
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| KINU | 0:ea607cf8589c | 1 | #include "mbed.h" |
| KINU | 0:ea607cf8589c | 2 | Serial pc(USBTX, USBRX, 9600); |
| KINU | 0:ea607cf8589c | 3 | |
| KINU | 0:ea607cf8589c | 4 | |
| KINU | 0:ea607cf8589c | 5 | //DigitalOut dir(D4); |
| KINU | 0:ea607cf8589c | 6 | |
| KINU | 0:ea607cf8589c | 7 | int main() |
| KINU | 0:ea607cf8589c | 8 | { |
| KINU | 0:ea607cf8589c | 9 | while(1) { |
| KINU | 0:ea607cf8589c | 10 | |
| KINU | 0:ea607cf8589c | 11 | while(pc.readable()){ |
| KINU | 0:ea607cf8589c | 12 | pc.putc(pc.getc()); |
| KINU | 0:ea607cf8589c | 13 | } |
| KINU | 0:ea607cf8589c | 14 | |
| KINU | 0:ea607cf8589c | 15 | |
| KINU | 0:ea607cf8589c | 16 | } |
| KINU | 0:ea607cf8589c | 17 | } |