displayBacklight (Function)

Top  Previous  Next

Architecture:

NX32L

Device support:

NX-400, LX4

Firmware version:

1.00.00


This function is used to control the backlight intensity of the LCD.

Note: the backlight intensity is retained across power down.

Note: LX4 only has a single intensity, so intensity 1-100 will give the same result.

 

Input:

intensity : INT (0..100)

The wanted backlight intensity, as an percentage of the full intensity. The intensity will be mapped to the supported backlight intensity levels on the device.

 

Returns:

None.

 

Declaration:

FUNCTION displayBacklight;
VAR_INPUT
  intensity : INT;
END_VAR;

 

 

Example:

INCLUDE rtcu.inc
 
PROGRAM test;
 
BEGIN
  ...
  // Set backlight to 50%
  displayBacklight(intensity := 50);
  ...
END;
 
END_PROGRAM;