Overview

Driver for an Intersil ISL29023 ambient light sensor.

Resources

All correct at time of writing, but as always, manufacturers love to move things around on their website.

Web page

http://www.intersil.com/en/products/optoelectronics/ambient-light-sensors/light-to-digital-sensors/ISL29023.html

Datasheet

Intersil require you to register and request a full datasheet.

Note

This implementation assumes a 499kOhm Rext resistor. See http://www.intersil.com/data/fn/fn6691.pdf

Test hardware

This code has been tested using a SolderCore CoreLight module:

http://soldercore.com/products/sensecore/corelight/

This was plugged into a SenseCore:

http://soldercore.com/products/sensecore/

And finally installed on a SolderCore:

http://soldercore.com/products/soldercore/

Specification
Parameter Supported settings
Range (lux) 1000, 4000, 16000, 64000 (default)
Resolution (bits) 4, 8, 12, 16 (default)
Communication up to 400 kHz (I2C)

API Summary

Macros
ISL29023_I2C_ADDR ISL29023 8-bit I2C address
Types
ISL29023_DRIVER_t ISL29023 light sensor
Functions
isl29023_initialize_i2c Initialize sensor on I2C bus
isl29023_set_range Set sensor range
isl29023_set_resolution_bits Set sensor resolution