Fix Buttons ADC range

pull/58/head
Alex Voinea 2021-07-12 17:43:21 +03:00 committed by DRracer
parent d44de216a9
commit edf0804fd8
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ static constexpr const uint16_t findaADCDecisionLevel = 512; ///< ADC decision l
// 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 buttonADCLimits[buttonCount][2] = { { 0, 10 }, { 320, 360 }, { 500, 530 } };
static constexpr const uint16_t buttonADCLimits[buttonCount][2] = { { 0, 50 }, { 80, 100 }, { 160, 180 } };
static constexpr const uint8_t buttonsADCIndex = 5; ///< ADC index of buttons input
} // namespace config