微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 手机设计讨论 > MTK手机平台交流 > mt2503 mt6260 keypad level 调整

mt2503 mt6260 keypad level 调整

时间:10-02 整理:3721RD 点击:
MT6260 keypad LED只保留了2个level可以调整
可以看到PWM2_LEVEL_INFO中第二组INFO开始频率和占空比参数都是一样的
PWM2_LEVEL_INFO[PWM_MAX_LEVEL][2]
{
{200,50},
{200,100},
{200,100},
{200,100},
{200,100}
}
所以上层API传入level只要大于2,都是100%亮度
控制背光的API一样是
custom_cfg_GPIO_set_level(kal_uint8 gpio_dev_type, kal_uint8 gpio_dev_level )
{
case GPIO_DEV_LED_KEY:
level.pwm_level = gpio_dev_level;
pwm_handle= DclPWM_Open(DCL_LED_KP, MOD_UEM);
DclPWM_Control(pwm_handle, PWM_CMD_SET_LEVEL,(DCL_CTRL_DATA_T*)&level);
DclPWM_Close(pwm_handle);
}
调用模式为
custom_cfg_gpio_set_level(GPIO_DEV_LED_KEY, LED_LIGHT_LEVEL0);//turn off
custom_cfg_gpio_set_level(GPIO_DEV_LED_KEY, LED_LIGHT_LEVEL1);//50%
custom_cfg_gpio_set_level(GPIO_DEV_LED_KEY, LED_LIGHT_LEVEL2);//100%

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top