
man1234567 發表于 2023-11-9 08:49
一般來說,這種情況是不松手測長按和短接造成的,長按中包含短按。
通常,改成松手后察看本次按鍵按下時長 ...
卡姿蘭大眼睛 發表于 2023-11-9 15:44
加個接收時間長短判斷,接收時間大于2秒的,可視為長按,否則為短按
RDFGRSG 發表于 2023-11-9 16:13
程序里怎么改呢?
卡姿蘭大眼睛 發表于 2023-11-9 15:44
加個接收時間長短判斷,接收時間大于2秒的,可視為長按,否則為短按
RDFGRSG 發表于 2023-11-9 19:06
那部分不完整
RDFGRSG 發表于 2023-11-9 19:15
理論我也能想到,怎么實現呢?
RDFGRSG 發表于 2023-11-9 22:57
#include
#include "Delay.h"
#include "LCD1602.h"
luking 發表于 2023-11-29 16:09
char Scanf_Key(void) { static unsigned char sta = 0; static unsigned int cnt = 0; switch(sta) { ...
| 歡迎光臨 (http://www.raoushi.com/bbs/) | Powered by Discuz! X3.1 |