How to use the automatic backlight dimming

<< Click to Display Table of Contents >>

Navigation:  How To >

How to use the automatic backlight dimming

You want the device to change the backlight intensity automatically depending on the ambient light.

 

Set the variable @DispBacklightIntensity to a value outside of its normal value region 0 to 100, e.g. -1 or 101

To disable the automatic backlight mode, set the variable @DispBacklightIntensity back to a value between 0 and 100

The ambient brightness is readable in the variable @DispBacklightAmbient-LowPassed

The brightness at different ambient brightness levels can be set with the variables @DispBacklightIntensity0 to @DispBacklightIntensity100. You set e.g. @DispBacklightIntensity0 to 20, then the display brightness will be set to 20 when @DispBacklightAmbient-LowPassed has a value of 0 (%).  Set @DispBacklightIntensity10 to 30, then the display brightness will be set to 30 when @DispBacklightAmbient-LowPassed has a value of 10 (%). Values in-between will be interpolated linearly

The variable @DispBacklightAmbient-LowPassed will be calculated from @SensorAmbientLight using @DispBacklightFilterFactor. The formula is:
 
clip0006
 
In words, the lower @DispBacklightFilterFactor is, the faster changing ambient brightness values will influence the display brightness.
This formula will be calculated every @DispBacklightTimeConstant milliseconds.