在线时间6 小时
UID412972
ST金币0
蝴蝶豆0
注册时间2013-1-16
初级会员
- 最后登录
- 2019-9-3
|
发表于 2013-6-19 09:14:40
|
显示全部楼层
a0a.1 0b0c
回复:STM8S触摸键长按该怎么处理
#define S2_DETECTED (sSCKeyInfo[0].Setting.b.DETECTED)
#define S6_DETECTED (sSCKeyInfo[1].Setting.b.DETECTED)
#define S3_DETECTED (sSCKeyInfo[2].Setting.b.DETECTED)
#define S1_DETECTED (sSCKeyInfo[3].Setting.b.DETECTED)
#define S4_DETECTED (sSCKeyInfo[4].Setting.b.DETECTED)
#define S5_DETECTED (sSCKeyInfo[5].Setting.b.DETECTED)
if( S1_DETECTED && S5_DETECTED
{
WWDG->CR = 0XfF;
GPIOC->ODR=0XFF;
single_key_en=0;
}
单键和长按短按键 都可以稳定 就这组合键不稳定,有时候 S1 S5 两键 直接被屏蔽掉~~~~
求大神 解答 |
|