LightMeter Class

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

Definition

Namespace: RoboTx.Api
Assembly: Robo-Tx.Api (in Robo-Tx.Api.dll) Version: 2.0.0+58b061ffe902bd370f7f9a4c58103d8e1f566889
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.

Methods

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

Operators

(LightMeter to Single) Implicit float cast operator.

See Also