mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
tests/driver/lpsxxx: update with support for lps22hb
This commit is contained in:
parent
7c285eb186
commit
0916126941
@ -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.
|
||||
|
@ -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 <hauke.petersen@fu-berlin.de>
|
||||
* @author Alexandre Abadie <alexandre.abadie@inria.fr>
|
||||
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user