#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"
函数 | |
int | tq_set_backlight (char *devname, unsigned int duty) |
设置屏幕的背光 更多... | |
int | tq_get_backlight (char *devname) |
获取屏幕的背光 更多... | |
Date | Version | Author | Description |
---|---|---|---|
2021-09-26 | 1.0 | zhengchuangyong | 第一次发布,对屏幕背光的基本操作进行封装,如设置和获取屏幕背光的百分比 |
int tq_get_backlight | ( | char * | devname | ) |
获取屏幕的背光
devname | 设备名称(pwm/lcd是rgb接口的背光,lvds是lvds接口的背光) |
int tq_set_backlight | ( | char * | devname, |
unsigned int | duty | ||
) |
设置屏幕的背光
devname | 设备名称(pwm/lcd是rgb接口的背光,lvds是lvds接口的背光) |
duty | 百分比 0-100 |