天嵌二次封装库使用手册  V1.0
tq_backlight.h 文件参考
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <dirent.h>
#include "tq_common.h"
tq_backlight.h 的引用(Include)关系图:

浏览源代码.

函数

int tq_set_backlight (char *devname, unsigned int duty)
 设置屏幕的背光 更多...
 
int tq_get_backlight (char *devname)
 获取屏幕的背光 更多...
 

详细描述

作者
zhengchuangyong (zheng.nosp@m.chua.nosp@m.ngyon.nosp@m.g@em.nosp@m.bedsk.nosp@m.y.ne.nosp@m.t)
版本
1.0
日期
2021-09-26
修改日志:
Date Version Author Description
2021-09-26 1.0 zhengchuangyong 第一次发布,对屏幕背光的基本操作进行封装,如设置和获取屏幕背光的百分比

函数说明

int tq_get_backlight ( char *  devname)

获取屏幕的背光

参数
devname设备名称(pwm/lcd是rgb接口的背光,lvds是lvds接口的背光)
返回
int int 成功返回背光亮度百分比,背光亮度读取失败返回-1
int tq_set_backlight ( char *  devname,
unsigned int  duty 
)

设置屏幕的背光

参数
devname设备名称(pwm/lcd是rgb接口的背光,lvds是lvds接口的背光)
duty百分比 0-100
返回
int int 背光设置成功返回0,设置失败返回-1