Skip to main content

Module sim

Module sim 

Source
Expand description

An OPT3001 that is not there.

part answers the way an OPT3001 reading 380 lux does, and reporting at any light level. Its configuration register keeps the flags the part sets for itself, the overflow, conversion-ready, high, and low flags, whatever a driver writes there, with the conversion-ready flag set, so every conversion reads as finished.

Constants§

LUX
The illuminance part reports.

Functions§

part
An OPT3001 answering at an address, reading LUX.
reporting
An OPT3001 that reads what it is asked to.