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
Revision 2:3224166c5b5e, committed 2019-08-26
- Comitter:
- GGU
- Date:
- Mon Aug 26 02:40:25 2019 +0000
- Parent:
- 1:419e4a7b47d0
- Commit message:
- test
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Mon Aug 05 10:04:30 2019 +0000 +++ b/main.cpp Mon Aug 26 02:40:25 2019 +0000 @@ -1,12 +1,12 @@ //シリアル通信を利用してad_dataの数値を表記する #include "mbed.h" -AnalogIn s1(D3); -AnalogIn s2(A6); -AnalogIn s3(A5); -AnalogIn s4(A4); -AnalogIn s5(A3); -AnalogIn s6(A2); -AnalogIn s7(A1); +AnalogIn s1(A1); +AnalogIn s2(D3); +AnalogIn s3(A6); +AnalogIn s4(A5); +AnalogIn s5(A4); +AnalogIn s6(A3); +AnalogIn s7(A2); AnalogIn s8(A0); Serial pc(USBTX,USBRX); //tx,rx @@ -22,9 +22,9 @@ s6_data=s6.read(); s7_data=s7.read(); s8_data=s8.read(); - pc.printf("s1:%.2f s2:%.2f s3:%.2f s4:%.2f s5:%.2f s6:%.2f s7:%.2f s8:%.2f \r\n" ,s1_data,s2_data,s3_data,s4_data,s5_data,s6_data,s7_data,s8_data); + wait(1); } }