Tune debounce timeout of buttons

pull/179/head
D.R.racer 2022-06-08 07:48:54 +02:00 committed by DRracer
parent fbb46e5951
commit 750e83c5e9
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ static constexpr const uint16_t findaDebounceMs = 100;
// Buttons setup // Buttons setup
static constexpr const uint8_t buttonCount = 3; ///< number of buttons currently supported 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 buttonADCLimits[buttonCount][2] = { { 0, 50 }, { 80, 100 }, { 160, 180 } };
static constexpr const uint16_t buttonADCMaxValue = 1023; ///< used in unit tests static constexpr const uint16_t buttonADCMaxValue = 1023; ///< used in unit tests
static constexpr const uint8_t buttonsADCIndex = 5; ///< ADC index of buttons input static constexpr const uint8_t buttonsADCIndex = 5; ///< ADC index of buttons input