Kyle Zampaglione
/
SlotSensorsTest
Code for Slot Sensor readout. Prints to text file on mbed.
Diff: main.cpp
- Revision:
- 4:9ea938dc72f8
- Parent:
- 3:a93f3494e6c1
- Child:
- 5:7e1dcb3904dd
diff -r a93f3494e6c1 -r 9ea938dc72f8 main.cpp --- a/main.cpp Wed Jul 03 16:48:21 2013 +0000 +++ b/main.cpp Thu Jul 04 00:35:19 2013 +0000 @@ -3,8 +3,8 @@ Serial pc(USBTX, USBRX); // tx, rx -DigitalIn sensor1(p11); -DigitalIn sensor2(p12); +DigitalIn sensor1(p5); +DigitalIn sensor2(p6); LocalFileSystem local("local"); Timer t; @@ -32,7 +32,7 @@ t.stop(); pc.printf("End. Time taken was %f seconds \n \r", t.read()); change = 0; - fprintf(fp, "%f \n \r", t.read()); + fprintf(fp, "%f \n", t.read()); count++; } if (count==endcount) {