Overview

Driver for an LTR-501ALS 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://optoelectronics.liteon.com/en-global/Led/LED-Component/Detail/519

Datasheet

http://optoelectronics.liteon.com/upload/download/DS86-2012-0006/P_100_LTR-501ALS-01_PrelimDS_ver1.1.pdf

Test hardware

This code has been tested using an Olimex MOD-LTR501-ALS:

http://www.olimex.com/Products/Modules/Sensors/MOD-LTR-501ALS

This is plugged into a custom CoreProto rivet and plugged into a SenseCore:

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

And finally installed on a SolderCore:

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

API Summary

Constants
LTR501ALS_I2C_ADDR LTR-501ALS I2C address
Functions
ltr501als_initialize_i2c Initialize sensor on I2C bus