BD1020HFV Temperature sensor test code
Dependencies: mbed
Diff: main.cpp
- Revision:
- 1:ba7e525074f9
- Parent:
- 0:ee7b9cc966d7
- Child:
- 2:913fc12a42a7
--- a/main.cpp Wed Jan 06 01:16:14 2016 +0000 +++ b/main.cpp Thu Sep 08 11:13:51 2016 +0000 @@ -8,7 +8,7 @@ pc.printf("\nBD1020HFV Temperature sensor test program.\n"); while(1) { temparature = -(1000 * (sensor * 3.3f) - 1546) / 8.2; - pc.printf("Temperature=%5.3f\n", temparature); + pc.printf("Temperature=%5.3f\r\n", temparature); wait(0.4); } }