![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
1
Revision 1:e158a9e81a9a, committed 2014-11-14
- Comitter:
- 12f2039e
- Date:
- Fri Nov 14 09:37:10 2014 +0000
- Parent:
- 0:6dd7f7b13aa8
- Commit message:
- a
Changed in this revision
teraterm.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/teraterm.cpp Fri Nov 14 04:25:42 2014 +0000 +++ b/teraterm.cpp Fri Nov 14 09:37:10 2014 +0000 @@ -2,31 +2,31 @@ #include "USBSerial.h" DigitalIn sw(P0_1); -AnalogIn sensor1(P0_16); -AnalogIn sensor2(P0_13); -AnalogIn sensor3(P0_11); -AnalogIn sensor4(P0_12); -AnalogIn sensor5(P0_22); +AnalogIn sensor1(P0_14); +AnalogIn sensor2(P0_12); +AnalogIn sensor3(P0_22); +AnalogIn sensor4(P0_23); +//AnalogIn sensor5(P0_22); DigitalOut led(P1_28); USBSerial vcom; int main(){ - float hoge1, hoge2, hoge3, hoge4, hoge5; + float hoge1, hoge2, hoge3, hoge4/*, hoge5*/; while(1){ hoge1 = sensor1.read(); hoge2 = sensor2.read(); hoge3 = sensor3.read(); hoge4 = sensor4.read(); - hoge5 = sensor5.read(); + //hoge5 = sensor5.read(); if(sw==0){ vcom.printf("\033[%d;%dH", 0,0); vcom.printf("sensor1=%7.6f\n\r", hoge1); vcom.printf("sensor2=%7.6f\n\r", hoge2); vcom.printf("sensor3=%7.6f\n\r", hoge3); vcom.printf("sensor4=%7.6f\n\r", hoge4); - vcom.printf("sensor5=%7.6f\n\r", hoge5); + //vcom.printf("sensor5=%7.6f\n\r", hoge5); led = 1; } else{