伪代码:
uint8_t getKey(){
return GPIO;
}
vuint32 timeCounter = 0;
void timerISR(){
timeCounter++;
if(timeCounter >= LED_DELAY_COUNT * 2){
timeCounter = 0;
}
}
uint8_t lastKey 上一篇:平阳印象小程序开发商
下一篇:LED灯的多种使用方法
伪代码:
uint8_t getKey(){
return GPIO;
}
vuint32 timeCounter = 0;
void timerISR(){
timeCounter++;
if(timeCounter >= LED_DELAY_COUNT * 2){
timeCounter = 0;
}
}
uint8_t lastKey 上一篇:平阳印象小程序开发商
下一篇:LED灯的多种使用方法