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:9810842779bc, 2020-07-02 (annotated)
- Committer:
- MEXT1
- Date:
- Thu Jul 02 08:49:55 2020 +0000
- Revision:
- 0:9810842779bc
- Child:
- 1:79d5a36bd051
Lab1-03_serial_communication_signal
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| MEXT1 | 0:9810842779bc | 1 | #include "mbed.h" |
| MEXT1 | 0:9810842779bc | 2 | |
| MEXT1 | 0:9810842779bc | 3 | Serial pc(USBTX,USBRX); |
| MEXT1 | 0:9810842779bc | 4 | Serial sig(p13,p14); |
| MEXT1 | 0:9810842779bc | 5 | |
| MEXT1 | 0:9810842779bc | 6 | int main() { |
| MEXT1 | 0:9810842779bc | 7 | char c; |
| MEXT1 | 0:9810842779bc | 8 | while(1) { |
| MEXT1 | 0:9810842779bc | 9 | c = pc.getc(); |
| MEXT1 | 0:9810842779bc | 10 | pc.putc(c); |
| MEXT1 | 0:9810842779bc | 11 | sig.putc(c); |
| MEXT1 | 0:9810842779bc | 12 | } |
| MEXT1 | 0:9810842779bc | 13 | } |