device: Bring up ambient light sensor on LTR-559
- Support enabling the ambient light sensor and reading samples.
- Convert samples from ADC values to lux, based on a formula provided by
the manufacturer.
- Implement generic AmbientLightSensor interface and
FakeAmbientLightSensor.
- Add an AmbientLightSensor to sense::system.
Change-Id: I0925183105714aae5a49d3d63edd1cfc510de504
Reviewed-on: https://pigweed-internal-review.git.corp.google.com/c/pigweed/showcase/rp2/+/72793
Reviewed-by: Alexei Frolov <frolv@google.com>
Commit-Queue: Wyatt Hepler <hepler@google.com>
Pigweed-Auto-Submit: Wyatt Hepler <hepler@google.com>
14 files changed