Fix ADC channels

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

View File

@ -17,13 +17,13 @@ static constexpr const uint16_t fsensorDebounceMs = 10;
// FINDA setup // FINDA setup
static constexpr const uint16_t findaDebounceMs = 100; static constexpr const uint16_t findaDebounceMs = 100;
static constexpr const uint8_t findaADCIndex = 1; ///< ADC index of FINDA input static constexpr const uint8_t findaADCIndex = 6; ///< ADC index of FINDA input
static constexpr const uint16_t findaADCDecisionLevel = 512; ///< ADC decision level when a FINDA is considered pressed/not pressed static constexpr const uint16_t findaADCDecisionLevel = 512; ///< ADC decision level when a FINDA is considered pressed/not pressed
// 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 = 100;
static constexpr const uint16_t buttonADCLimits[buttonCount][2] = { { 0, 10 }, { 320, 360 }, { 500, 530 } }; static constexpr const uint16_t buttonADCLimits[buttonCount][2] = { { 0, 10 }, { 320, 360 }, { 500, 530 } };
static constexpr const uint8_t buttonsADCIndex = 0; ///< ADC index of buttons input static constexpr const uint8_t buttonsADCIndex = 5; ///< ADC index of buttons input
} // namespace config } // namespace config