README
1LPS22HB environmental sensor device driver for Google nanohub.
2
3- Supported features:
4
5A. Report Pressure and Temperature data
6B. Different data rates: 1/10/25/50/75 Hz
7C. I2C protocol
8
9This driver does not support the DRDy interrupt.
10Instead, a timer callback is used to read the data.
11
12- Platform/variant porting:
13
14The driver requires that following macros are defined in the variant.h
15file of the specific variant:
16
17 LPS22HB_I2C_BUS_ID /* specify I2C Bus ID */
18 LPS22HB_I2C_SPEED /* specify I2C Bus speed in hz */
19 LPS22HB_I2C_ADDR /* specify device I2C address */
20 LPS22HB_DBG_ENABLED /* Enable debug messages */
21
22Example:
23
24 /*
25 * Define platform/variant dependent LPS22HB device macros
26 */
27
28 #define LPS22HB_I2C_BUS_ID 0
29 #define LPS22HB_I2C_SPEED 400000
30 #define LPS22HB_I2C_ADDR 0x5C
31
32If these macros are not defined in the current variant the driver forces a compilation
33error.
34