1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/driver_sdp3x
2021-01-21 11:24:31 +01:00
..
app.config.test tests/driver_s*: add Kconfig configuration files 2021-01-21 11:24:31 +01:00
main.c drivers/sdp3x: Driver for sensirion sdp3x sensor 2020-06-29 20:50:41 +02:00
Makefile driver/sdp3x: Resolved irq pin code used even if irq pin not connected 2020-07-30 16:35:35 +02:00
Makefile.ci tests/drivers_sdp3x: Exclude stk3200 from linking 2021-01-19 10:11:40 +01:00
README.md driver/sdp3x: Resolved irq pin code used even if irq pin not connected 2020-07-30 16:35:35 +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/driver_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.