mt2523 [keypad]How to configure the
0赞mt2523 [keypad]How to configure the customization parameters about long press...
[keypad]How to configure the customization parameters about long press and repeat time?
You can modify the file driver\board\mt25x3_HDK\keypad\inc\keypad_custom_config.h
/*Set the keypad detection debounce time, the maximum value is 4095, the unit is millisecond.*/
#define HAL_KEYPAD_DEBOUNCE_TIME 16
/*Set normal keypad longpress time, the unit is millisecond.*/
#define HAL_KEYPAD_LONGPRESS_TIME 2000
/*Set normal keypad repeat time, the unit is millisecond.*/
#define HAL_KEYPAD_REPEAT_TIME 1000
/*Set powerkey longpress time, the unit is millisecond.*/
#define HAL_POWERKEY_LONGPRESS_TIME 2000
/*Set powerkey repeat time, the unit is millisecond.*/
#define HAL_POWERKEY_REPEAT_TIME 1000
You can modify the time asyou want. The unit is millisecond.