Note | The examples in this chapter are always based on the latest released CWT application |
On during purchase
examples shows STN Backlight always turned on (80%) and External light turned on during purchase (70%) otherwise turned off (10%).
<CORE>
<STNBacklight mode="AlwaysOn" brightnessMax="80"/>
<externalLight mode="TurnedOnDuringPurchase" brightnessMax="70"
brightnessMin = "10"/>
- - -
</CORE>
Time controlled
Example: shows STN Backlight always turned on (80%) and External light set to 20% 08:00-17:59 and 100% 18:00-07:59.
<CORE>
<STNBacklight mode="AlwaysOn" brightnessMax="80"/>
<externalLight mode="TimeControlled">
<set brightness="20" time="08.00"/>
<set brightness="100" time="18.00"/>
</externalLight>
- - -
</CORE>
Changed during darkness
Darker, then less brightness – threshold
<CORE>
<STNBacklight mode="ChangedDuringDarkness" darknessMode="Threshold" darkerThenLessBrightness="true"
brightnessMax="80" brightnessMin="10"/>
<ambientLightSensor threshold="756" hysteresis="5" samplingPeriod="3"/>
- - -
</CORE>
When the ambient light is ambientLightSensor - hysteresis% below ambientLightSensor- threshold then the light is set to STNBacklight - brightnessMin%.
When the ambient light is ambientLightSensor - hysteresis% above ambientLightSensor - threshold then the light is set to STNBacklight - brightnessMax%.
Darker, then less brightness – Linear from threshold
<CORE>
<STNBacklight mode="ChangedDuringDarkness" darknessMode="LinearFromThreshold" darkerThenLessBrightness="true"
brightnessMax="80" brightnessMin="10"/>
<ambientLightSensor threshold="756" hysteresis="5" samplingPeriod="3"/>
- - -
</CORE>
When the ambient light is below ambientLightSensor - threshold then the light is set to STNBacklight - BrightnessMin%.
When the ambient light is above ambientLightSensor - threshold then the light linearly follows the ambient light. Measured ambient light equals ambientLightSensor - threshold corresponds to STNBacklight - brightnessMin. Measured ambient light equals sensor maximum corresponds to STNBacklight - brightnessMax.
Darker, then more brightness – Linear from threshold
<CORE -="" -="" -="">
<STNBacklight mode="ChangedDuringDarkness" darknessMode="LinearFromThreshold" darkerThenLessBrightness="false"
brightnessMax="80" brightnessMin="10"/>
<ambientLightSensor threshold="756" hysteresis="5" samplingPeriod="3"/>
- - -
</CORE>
When the ambient light is below ambientLightSensor - threshold then the light linearly follows the ambient light. Measured ambient light equals ambientLightSensor - threshold corresponds to STNBacklight - brightnessMin. Measured ambient light equals sensor minimum corresponds to STNBacklight - brightnessMax.
When the ambient light is above ambientLightSensor - threshold then the light is set to STNBacklight - brightnessMin%.
External light on during sleep at night
<CORE powerSaveMode="Solar" …>
<TFTBacklight mode="AlwaysOn" brightnessMax="80"/>
<externalLight mode="ChangedDuringDarkness" darkerThenLessBrightness="false"
brightnessMax="40" brightnessMin = "0" brightnessSleep = "1"/>
<ambientLightSensor threshold="20" hysteresis="5" samplingPeriod="3"/>
- - -
</CORE>
When powerSaveMode="Solar", then the external light will normally turn off, but not if brightnessSleep is set to something other than zero.
In this Example: the external light will be off when in sleep mode during the day. During the night the brightness will be 1% during sleep mode.
Related functions
Power Save attributes can override STN Backlight and External Light settings. See “Power Save”.