SignalK / SensESP

Universal Signal K sensor framework for the ESP32 platform
https://signalk.org/SensESP/
Apache License 2.0
151 stars 81 forks source link

Add debounce counter v1 #511

Closed smr547 closed 2 years ago

smr547 commented 2 years ago

This change is similar to https://github.com/SignalK/SensESP/pull/510, just back-ported to the V1 API. I've tested this one and it works quite nicely.

smr547 commented 2 years ago

@mairas I've updated this to be similar to the v2-dev debounce counter and also to use elapsedMillis. I've tested both DigitalInputCounter and DigitalInputDebounce counter on actual hardware and both still work nicely.

mairas commented 2 years ago

I'll take your word for it!