Interface for reading illuminance from ambient light hardware. More...
Public Member Functions | |
| None | start (self) |
| Initialize the sensor and prepare it for use. | |
| None | stop (self) |
| Release resources owned by the sensor. | |
| bool | is_started (self) |
| Return whether the sensor has been initialized. | |
| float | get_illuminance_lux (self) |
| Read ambient illuminance. | |
Interface for reading illuminance from ambient light hardware.
| float hardware_io.environmental.ambient_light_sensor_if.AmbientLightSensorIf.get_illuminance_lux | ( | self | ) |
Read ambient illuminance.
Reimplemented in environmental.buffered_ambient_light_sensor.BufferedAmbientLightSensor, and hardware_io.android.ambient_light.AndroidAmbientLight.
| bool hardware_io.environmental.ambient_light_sensor_if.AmbientLightSensorIf.is_started | ( | self | ) |
Return whether the sensor has been initialized.
| True | The sensor is initialized and readable. |
| False | The sensor has not been started. |
Reimplemented in environmental.buffered_ambient_light_sensor.BufferedAmbientLightSensor, and hardware_io.android.ambient_light.AndroidAmbientLight.