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@1:2cebb75d319e, 2020-12-07 (annotated)
- Committer:
- ryouheitakamoto
- Date:
- Mon Dec 07 07:01:06 2020 +0000
- Revision:
- 1:2cebb75d319e
- Parent:
- 0:ea607cf8589c
calsat_pc; ;
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); |
| ryouheitakamoto | 1:2cebb75d319e | 3 | Serial device(PA_9,PA_10); |
| 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()){ |
| ryouheitakamoto | 1:2cebb75d319e | 12 | char a = device.getc(); |
| ryouheitakamoto | 1:2cebb75d319e | 13 | pc.putc(a); |
| KINU | 0:ea607cf8589c | 14 | } |
| KINU | 0:ea607cf8589c | 15 | |
| KINU | 0:ea607cf8589c | 16 | |
| KINU | 0:ea607cf8589c | 17 | } |
| KINU | 0:ea607cf8589c | 18 | } |