From 750e83c5e941d98b62bdcd75139e3190336392fc Mon Sep 17 00:00:00 2001 From: "D.R.racer" Date: Wed, 8 Jun 2022 07:48:54 +0200 Subject: [PATCH] Tune debounce timeout of buttons --- src/config/config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config/config.h b/src/config/config.h index 2556424..baeffe1 100644 --- a/src/config/config.h +++ b/src/config/config.h @@ -37,7 +37,7 @@ static constexpr const uint16_t findaDebounceMs = 100; // Buttons setup static constexpr const uint8_t buttonCount = 3; ///< number of buttons currently supported -static constexpr const uint16_t buttonsDebounceMs = 100; +static constexpr const uint16_t buttonsDebounceMs = 20; ///< tuned with a pack of highly trained monkeys :) static constexpr const uint16_t buttonADCLimits[buttonCount][2] = { { 0, 50 }, { 80, 100 }, { 160, 180 } }; static constexpr const uint16_t buttonADCMaxValue = 1023; ///< used in unit tests static constexpr const uint8_t buttonsADCIndex = 5; ///< ADC index of buttons input