Driver for an Intersil ISL29023 ambient light sensor.
All correct at time of writing, but as always, manufacturers love to move things around on their website.
Intersil require you to register and request a full datasheet.
This implementation assumes a 499kOhm Rext resistor. See http://www.intersil.com/data/fn/fn6691.pdf
This code has been tested using a SolderCore CoreLight module:
This was plugged into a SenseCore:
And finally installed on a SolderCore:
|Range (lux)||1000, 4000, 16000, 64000 (default)|
|Resolution (bits)||4, 8, 12, 16 (default)|
|Communication||up to 400 kHz (I2C)|
|ISL29023_I2C_ADDR||ISL29023 8-bit I2C address|
|ISL29023_DRIVER_t||ISL29023 light sensor|
|isl29023_initialize_i2c||Initialize sensor on I2C bus|
|isl29023_set_range||Set sensor range|
|isl29023_set_resolution_bits||Set sensor resolution|