Click or drag to resize

MpBBaseLightSensorValue Property

Property to report the ambient light level detected by the internal photo sensor.

The LightSensorChange event will trigger with UShort and LightSensorValue.

Use PercentToUshort(Single) to convert the percentage to a ushort value or UshortToPercent(UInt16) to convert the ushort value to percentage.

Namespace: Crestron.SimplSharpPro.Keypads
Assembly: Crestron.SimplSharpPro.Keypads (in Crestron.SimplSharpPro.Keypads.dll) Version: 2.21.121
Syntax
C#
public ushort LightSensorValue { get; }

Property Value

UInt16

Implements

IAmbientLightSensorLightSensorValue
Remarks
Reported values range from 0% (no light) to 100% (maximum light).

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also