From 0916126941d2fb8ca6fe38c18495ebc44f8ffd08 Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Wed, 2 Jan 2019 17:00:20 +0100 Subject: [PATCH] tests/driver/lpsxxx: update with support for lps22hb --- tests/driver_lpsxxx/README.md | 8 +++----- tests/driver_lpsxxx/main.c | 4 ++-- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/tests/driver_lpsxxx/README.md b/tests/driver_lpsxxx/README.md index b1339aa26a..0a73aaf2c6 100644 --- a/tests/driver_lpsxxx/README.md +++ b/tests/driver_lpsxxx/README.md @@ -1,7 +1,7 @@ # About This is a manual test application for the LPSXXX family of pressure sensors -driver. This driver can be used with LPS331AP and LPS25HB. +driver. This driver can be used with LPS331AP, LPS25HB and LPS22HB. Default driver is `lps331ap`. To use the LPS25HB driver, set the `DRIVER` when building the application: @@ -10,10 +10,8 @@ building the application: # Usage -This test application will initialize the pressure sensor with the following -parameters: - - - Sampling Rate: 7Hz +This test application will initialize the pressure sensor with a sampling rate +of 7Hz (25Hz with lps22hb). After initialization, the sensor reads the pressure and temperature values every 250ms and prints them to the STDOUT. diff --git a/tests/driver_lpsxxx/main.c b/tests/driver_lpsxxx/main.c index c54c625b15..e251ccc727 100644 --- a/tests/driver_lpsxxx/main.c +++ b/tests/driver_lpsxxx/main.c @@ -12,7 +12,7 @@ * @{ * * @file - * @brief Test application for the LPS331AP/LPS25HB pressure sensor + * @brief Test application for the LPS331AP/LPS25HB/LPS22HB pressure sensor * * @author Hauke Petersen * @author Alexandre Abadie @@ -30,7 +30,7 @@ int main(void) { lpsxxx_t dev; - puts("Test application for %s pressure sensor\n\n", LPSXXX_SAUL_NAME); + printf("Test application for %s pressure sensor\n\n", LPSXXX_SAUL_NAME); printf("Initializing %s sensor\n", LPSXXX_SAUL_NAME); if (lpsxxx_init(&dev, &lpsxxx_params[0]) != LPSXXX_OK) { puts("Initialization failed");