Y SI
/
lib_SHT25_example
example for SHT25 humidity and temperature sensor
Diff: main.cpp
- Revision:
- 2:3d0d54bad359
- Parent:
- 1:e13ad6081cb3
- Child:
- 3:d20d2edb61cb
--- a/main.cpp Tue Dec 11 13:10:27 2018 +0000 +++ b/main.cpp Wed May 29 13:37:26 2019 +0000 @@ -10,11 +10,11 @@ while(1) { temperature = sensor.getTemperature(); - humidity = sensor.getTemperature(); + humidity = sensor.getHumidity(); pc.printf("\r\ntemperature = %6.2f%cC -|- humidity = %6.2f%%RH", temperature, 248, humidity); sensor.waitSafeHeat(); sensor.getData(&temperature, &humidity); - pc.printf("\ntemperature = %6.2f%cC -|- humidity = %6.2f%%RH", temperature, 248, humidity); + pc.printf("\r\ntemperature = %6.2f%cC -|- humidity = %6.2f%%RH", temperature, 248, humidity); sensor.waitSafeHeat(); } } \ No newline at end of file