1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/drivers/sdp3x
2024-03-26 14:53:35 +01: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 tests: add nucleo-c031c6 to Makefile.ci 2024-01-31 13:11:05 +01:00
README.md treewide: replace occurrences of tests/driver_ with new path 2023-05-06 15:38:21 +02:00

About

This is a test application for the SDP3x temperature and differential pressure sensor.

Usage

This test application will initialize the SDP3x sensor and print TEST_ITERATIONS number of following values first in continuous mode and then triggered mode every second:

  • Temperature
  • Differential pressure

The user can specify the number of iterations by setting the variable TEST_ITERATIONS (default value is 10) from commandline as follows:

make BOARD=... TEST_ITERATIONS=... -C tests/drivers/sdp3x

##Features The sensor has an IRQn pin which indicates data ready on the sensor. This pin can be connected on the GPIO ports and configured in the variable SDP3X_PARAM_IRQ_PIN. This helps getting measurements as soon as they are ready instead of the 46ms wait (which is the maximum time the sensor might take the get the measurement ready).

When not using irq pin, instead of USEMODULE = sdp3x_irq, use USEMODULE = sdp3x.