Scanning BackLight Features

class scanningBackLight.ScanningBackLight[source]

Bases: object

Implements the Scanning Back Light methods for a VIEWPixx.

getBacklightIntensity()[source]

Returns the level of the VIEWPixx back light intensity.

Returns:

An integer between 0 and 255.

Example:

>>> print my_device.getBacklightIntensity()
255
isScanningBackLightEnabled()[source]

Gets the scanning back light state.

Returns:

True if scanning back light is enabled, False otherwise.

Return type:

bool

setBacklightIntensity(intensity)[source]

Sets the display current back light intensity.

Parameters:

intensity (int) – Set to 0 for the lowest intensity level, 255 for the highest, or any value in between.

Example:

>>> my_device.setBacklightIntensity(42)
>>> my_device.updateRegisterCache()
>>> print my_device.getBacklightIntensity()
42
setScanningBackLight(enable)[source]

Sets the scanning back light mode.

This method allows the user to turn the scanning back light on or off. When the scanning back light is enabled, the screen will look dimmer. When scanning back light is disabled, the screen will look brighter.

Parameters:

enable (bool) – Scanning back light mode.