change debouce logic

This commit is contained in:
Siwat Sirichai 2024-06-21 16:35:26 +07:00
parent b62ef700ed
commit d0ce4bf391
2 changed files with 36 additions and 10 deletions

View file

@ -54,6 +54,7 @@ class DigitalInputCard : public ExpansionCard {
uint8_t previousInputBufferB;
uint32_t debounceTime[16];
uint32_t lastDebounceTime[16];
bool pinChanged[16];
// A map of the physical pin to the virtual pin
uint8_t pinMap[16];
// A map of the virtual pin to the physical pin