README
1Intersil ISL29034 ambient light sensor device driver for Google nanohub.
2
3- Supported features:
4
5A. Report ambient light data
6B. Data rates: 10 Hz
7C. I2C protocol
8
9The device doesn't have an interrupt line, so a timer callback is used to
10read 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 ISL29034_I2C_BUS_ID /* specify I2C Bus ID */
18 ISL29034_I2C_SPEED /* specify I2C Bus speed in Hz */
19
20If these macros are not defined in the current variant the driver forces a
21compile-time error.
22
23An optional macro is available to specify the I2C address of ISL29034 device.
24If the macro is not defined, the default value 0x44 would be used.
25
26 ISL29034_I2C_ADDR /* specify device I2C address */
27
28An optional macro is available to enable debug information:
29
30 ISL29034_DBG_ENABLED /* Enable debug messages */
31
32Example:
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