Fish147

Results 2 comments of Fish147

因为你while(1)中判断event 是否发生了变化, if (btn1_event_val != get_button_event(&button1)) 实际一直都是 长按连发

// According to your need to modify the constants. #define TICKS_INTERVAL 10 // 每次 tick 的时间 ms #define DEBOUNCE_TICKS 2 // 消抖的 tick 数 MAX 7 (0 ~ 7) #define...