From d44de216a97cfe79e1bcfec3db67298eabc84d93 Mon Sep 17 00:00:00 2001 From: Alex Voinea Date: Mon, 12 Jul 2021 17:43:06 +0300 Subject: [PATCH] Fix ADC channels --- src/config/config.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config/config.h b/src/config/config.h index 44b661d..00b2d77 100644 --- a/src/config/config.h +++ b/src/config/config.h @@ -17,13 +17,13 @@ static constexpr const uint16_t fsensorDebounceMs = 10; // FINDA setup 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 // 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 uint8_t buttonsADCIndex = 0; ///< ADC index of buttons input +static constexpr const uint8_t buttonsADCIndex = 5; ///< ADC index of buttons input } // namespace config