1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/drivers/sht2x
Hugues Larrive 3c465836f2 examples and tests: add atmega8 to relevent Makefile.ci
using dist/tools/insufficient_memory/add_insufficient_memory_board.sh
2023-07-11 21:22:02 +02:00
..
app.config.test tests/drivers: move all driver tests into own folder 2023-05-04 12:45:07 +02:00
main.c tests/drivers: move all driver tests into own folder 2023-05-04 12:45:07 +02:00
Makefile tests/drivers: move all driver tests into own folder 2023-05-04 12:45:07 +02:00
Makefile.ci examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
README.md tests/drivers: move all driver tests into own folder 2023-05-04 12:45:07 +02:00

Sensirion SHT20/SHT21/SHT25 Humidity and Temperature Sensors

About

This is a test application for the SHT2x humidity/temperature sensor driver.

Usage

This test application will initialize the SHT2x sensor with the following parameters: - default device type: SHT21 - 14-bit temperature resolution - 12-bit humidity resolution

To change these parameters, you can override them by setting their corresponding defines in your build environment, e.g.

CFLAGS=-DSHT2X_PARAM_RESOLUTION=SHT2x_RES_8_12BIT make ...

See drivers/sht2x_params.h for the default configuration.

After initialization, the sensor reads the temperature and humidity values every one second and prints them to STDOUT. The chip-heater of the SHT2x will be turned on in the beginning, so the temperature should rise over time and the humidity should decrease.