Screen backlight operation

  • Required header files
    #include "utils/BrightnessHelper.h"


  • Adjust the backlight brightness
    The brightness range is 0 ~ 100 (Note: 0 does not mean turning off the screen)

    //Adjust the screen brightness to 80
  • Get the current brightness value

Switch screen backlight

  • Turn off the screen
  • Open screen

Memory brightness

When the system is turned on, the default is to memorize the last adjusted brightness value. If you want to modify it to not remember the brightness or set a fixed brightness value, you can open the properties of the project to modify:

powered by Gitbooklast modified: 2021-05-28 12:00:31

results matching ""

    No results matching ""