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
Diff: main.cpp
- Revision:
- 3:b2fc5d582f69
- Parent:
- 2:63b2a561690e
- Child:
- 4:09965b74dfaf
--- a/main.cpp Sat Aug 22 09:59:29 2015 +0000 +++ b/main.cpp Sat Aug 22 10:16:23 2015 +0000 @@ -38,8 +38,7 @@ while(true) { //入力:センサーなどから入力値を読み取る analogInValue = analogInModule; - //pc.printf("analogInValue='%f' :", analogInValue); - pc.printf("%f,", analogInValue); + pc.printf("analogInValue='%f' :", analogInValue); //analogValue小さい時はスピーカーをオフにする。 if(analogInValue < 0.05f) { speaker.write(SP_OFF); @@ -52,7 +51,7 @@ speaker.period(interval); speaker.write(SP_ON); //確認用:PCへ現在の各変数の値を送信 - //pc.printf("ON tunedValue= '%f' interval= '%f' \n\r", tunedValue, interval); + pc.printf("ON tunedValue= '%f' interval= '%f' \n\r", tunedValue, interval); } wait(0.1); }