Command system.backlight

The command system.backlight defines the device's backlight intensity level.

This command is often used when the device is connected to the battery power as there is a considerable consumption of battery when the backlight is set to 100%.

Parameters

  1. level [integer]
    Backlight level percentage.
  2. variablereturn [integer]
    Variable that will store the return code, where:
    • -1: Error when defining the new value
    • 0: OK

Example


In the example above, the command system.backlight is used to modify the backlight intensity level to 50%.

Since the return of the command is an integervariable, the command inttostring is used to convert and display the variable using the command display.