|
Name |
|
Date |
Size |
#Lines |
LOC |
| .. | | - | - |
| README | D | 23-Mar-2024 | 912 | 35 | 23 |
| hts221.c | D | 23-Mar-2024 | 13.8 KiB | 520 | 383 |
README
1HTS221 environmental sensor device driver for Google nanohub.
2
3- Supported features:
4
5A. Report Humidity data
6B. Different data rates: 1/7/12.5 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
13- Platform/variant porting:
14
15The driver requires that following macros are defined in the variant.h
16file of the specific variant:
17
18 HTS221_I2C_BUS_ID /* specify I2C Bus ID */
19 HTS221_I2C_SPEED /* specify I2C Bus speed in hz */
20 HTS221_I2C_ADDR /* specify device I2C address */
21
22Example:
23
24 /*
25 * Define platform/variant dependent HTS221 device macros
26 */
27
28 /* I2C defs to be used when device is plugged on U4 slot */
29 #define HTS221_I2C_BUS_ID 0
30 #define HTS221_I2C_SPEED 400000
31 #define HTS221_I2C_ADDR 0x5F
32
33If these macros are not defined in the current variant the driver forces a compilation
34error.
35