tests/driver/lpsxxx: update with support for lps22hb
This commit is contained in:
parent
7c285eb186
commit
0916126941
@ -1,7 +1,7 @@
|
|||||||
# About
|
# About
|
||||||
|
|
||||||
This is a manual test application for the LPSXXX family of pressure sensors
|
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
|
Default driver is `lps331ap`. To use the LPS25HB driver, set the `DRIVER` when
|
||||||
building the application:
|
building the application:
|
||||||
@ -10,10 +10,8 @@ building the application:
|
|||||||
|
|
||||||
# Usage
|
# Usage
|
||||||
|
|
||||||
This test application will initialize the pressure sensor with the following
|
This test application will initialize the pressure sensor with a sampling rate
|
||||||
parameters:
|
of 7Hz (25Hz with lps22hb).
|
||||||
|
|
||||||
- Sampling Rate: 7Hz
|
|
||||||
|
|
||||||
After initialization, the sensor reads the pressure and temperature values
|
After initialization, the sensor reads the pressure and temperature values
|
||||||
every 250ms and prints them to the STDOUT.
|
every 250ms and prints them to the STDOUT.
|
||||||
|
|||||||
@ -12,7 +12,7 @@
|
|||||||
* @{
|
* @{
|
||||||
*
|
*
|
||||||
* @file
|
* @file
|
||||||
* @brief Test application for the LPS331AP/LPS25HB pressure sensor
|
* @brief Test application for the LPS331AP/LPS25HB/LPS22HB pressure sensor
|
||||||
*
|
*
|
||||||
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
|
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
|
||||||
* @author Alexandre Abadie <alexandre.abadie@inria.fr>
|
* @author Alexandre Abadie <alexandre.abadie@inria.fr>
|
||||||
@ -30,7 +30,7 @@ int main(void)
|
|||||||
{
|
{
|
||||||
lpsxxx_t dev;
|
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);
|
printf("Initializing %s sensor\n", LPSXXX_SAUL_NAME);
|
||||||
if (lpsxxx_init(&dev, &lpsxxx_params[0]) != LPSXXX_OK) {
|
if (lpsxxx_init(&dev, &lpsxxx_params[0]) != LPSXXX_OK) {
|
||||||
puts("Initialization failed");
|
puts("Initialization failed");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user