Tune debounce timeout of buttons
parent
fbb46e5951
commit
750e83c5e9
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue