README
1 Intersil ISL29034 ambient light sensor device driver for Google nanohub.
2
3 - Supported features:
4
5 A. Report ambient light data
6 B. Data rates: 10 Hz
7 C. I2C protocol
8
9 The device doesn't have an interrupt line, so a timer callback is used to
10 read the data.
11
12 - Platform/variant porting:
13
14 The driver requires that following macros are defined in the variant.h
15 file of the specific variant:
16
17 ISL29034_I2C_BUS_ID /* specify I2C Bus ID */
18 ISL29034_I2C_SPEED /* specify I2C Bus speed in Hz */
19
20 If these macros are not defined in the current variant the driver forces a
21 compile-time error.
22
23 An optional macro is available to specify the I2C address of ISL29034 device.
24 If the macro is not defined, the default value 0x44 would be used.
25
26 ISL29034_I2C_ADDR /* specify device I2C address */
27
28 An optional macro is available to enable debug information:
29
30 ISL29034_DBG_ENABLED /* Enable debug messages */
31
32 Example:
33
34 /*
35 * Define platform/variant dependent ISL29034 device macros
36 */
37
38 #define ISL29034_I2C_BUS_ID 0
39 #define ISL29034_I2C_SPEED 400000
40 #define ISL29034_I2C_ADDR 0x44
41