https://github.com/stm32duino/stts22h
Arduino library to support the STTS22H digital temperature sensor
https://github.com/stm32duino/stts22h
Last synced: 4 months ago
JSON representation
Arduino library to support the STTS22H digital temperature sensor
- Host: GitHub
- URL: https://github.com/stm32duino/stts22h
- Owner: stm32duino
- Created: 2020-01-13T11:03:57.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2023-11-28T09:54:34.000Z (about 2 years ago)
- Last Synced: 2025-04-19T13:38:09.483Z (9 months ago)
- Language: C
- Size: 21.5 KB
- Stars: 1
- Watchers: 4
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# STTS22H
Arduino library to support the STTS22H digital temperature sensor
## API
This sensor uses I2C to communicate.
For I2C it is then required to create a TwoWire interface before accessing to the sensors:
TwoWire dev_i2c(I2C_SDA, I2C_SCL);
dev_i2c.begin();
An instance can be created and enabled when the I2C bus is used following the procedure below:
STTS22HSensor Temp(&dev_i2c);
Temp.begin();
Temp.Enable();
The access to the sensor values is done as explained below:
Read temperature.
float temperature;
Temp.GetTemperature(&temperature);
## Documentation
You can find the source files at
https://github.com/stm32duino/STTS22H
The STTS22H datasheet is available at
https://www.st.com/content/st_com/en/products/mems-and-sensors/temperature-sensors/stts22h.html