液晶背光功能
i2C-MP15X-B开发板提供的LCD接口上使用PWM信号控制液晶的亮度,设置不同级别亮度会有明暗变化。i2C-MP15X-B开发板的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
作者:SteveChen 创建时间:2024-09-18 16:37
最后编辑:SteveChen 更新时间:2024-09-18 16:37
最后编辑:SteveChen 更新时间:2024-09-18 16:37