public sealed class ColourSensor : ContinuousSensorPublic NotInheritable Class ColourSensor
Inherits ContinuousSensor[<SealedAttribute>]
type ColourSensor =
class
inherit ContinuousSensor
end| 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) |
| Disable |
Stops the colour sensor reporting colour values.
(Overrides ContinuousSensorDisable) |
| Enable |
Enables the colour sensor to report colour values, using integration time 50ms and gain of x4.
See overloaded method for specifying different integration time and gain values.
(Overrides ContinuousSensorEnable) |
| Enable(Int32, Int32) | Enables the colour sensor to report colour values using specified integration time and gain. |
| GetHSL | Gets the colour as H, S and L values reported by the colour sensor once it has been enabled. How long it takes for colour values to start being reported, and the subsequent reporting interval will depend in the integration time specified in the Enable method. |
| GetRGBC | Gets the red, green, blue and clear values reported by the colour sensor once it has been enabled. How long it takes for colour values to start being reported, and the subsequent reporting interval will depend in the integration time specified in the Enable method. |