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.
lib_SHT25.h File Reference
Go to the source code of this file.
Data Structures | |
| class | SHT25 |
| SHT25 class. More... | |
Detailed Description
SHT25 class.
library for SHT25 humidity and temperature sensor
Use to get temperature and humidity
https://www.sensirion.com/products/humidity-sensor/
Example:
#include "lib_SHT25.h" SHT25 sensor(I2C_SDA, I2C_SCL); int main() { while(1) { sensor.waitSafeHeat(); float temperature = sensor.getTemperature(), humidity = sensor.getHumidity(); printf("\r\ntemperature = %6.2f%cC -|- humidity = %6.2f%%RH", temperature, 248, humidity); sensor.waitSafeHeat(); sensor.getData(&temperature, &humidity); printf("\r\ntemperature = %6.2f%cC -|- humidity = %6.2f%%RH", temperature, 248, humidity); } }
- Date:
- Jun 2018
Definition in file lib_SHT25.h.
Generated on Thu Jul 14 2022 22:23:55 by
1.7.2