LightMeter Class

Reports LUX values from a BH1750 sensor. This feature is only available in the Education Edition of the RoboTx API.

Definition

Namespace: RoboTx.Api
Assembly: RoboTx.Api (in RoboTx.Api.dll) Version: 2.0.0
C#
public sealed class LightMeter : ContinuousSensor
Inheritance
Object    ContinuousSensor    LightMeter

Properties

IsEnabled Returns true if the sensor has been enabled.
(Inherited from ContinuousSensor)
IsReady Returns true if the sensor values are available for reading.
(Inherited from ContinuousSensor)
LuxValue Gets the LUX value reported by the light meter sensor. Negative values indicate a problem with the sensor.

Methods

Disable Stops the light meter sensor reporting LUX values.
(Overrides ContinuousSensorDisable)
Enable Enables the light meter sensor to report LUX values.
(Overrides ContinuousSensorEnable)

See Also