Page tree
Skip to end of metadata
Go to start of metadata


PanGuk开发板提供的LCD接口上使用PWM信号控制液晶的亮度,设置不同级别亮度会有明暗变化。PanGu开发板的Linux系统中提供了7个亮度级别的控制。

查看当前背光亮度和系统支持的亮度级别:

root@stm32mp1:~# cd /sys/class/backlight/panel-backlight/
root@stm32mp1:/sys/class/backlight/panel-backlight# ls
actual_brightness  bl_power  brightness  device  max_brightness  power	subsystem  type  uevent
root@stm32mp1:/sys/class/backlight/panel-backlight# cat brightness
6
root@stm32mp1:/sys/class/backlight/panel-backlight# cat max_brightness
7

设置背光亮度为5:

root@stm32mp1:/sys/class/backlight/panel-backlight# echo 5 > brightness
  • No labels