From f084e56795549a401b8107ddc75e18b14c56df2b Mon Sep 17 00:00:00 2001 From: e2002 Date: Tue, 24 May 2022 16:36:29 +0300 Subject: [PATCH] v0.6.263 --- README.md | 3 +++ yoRadio/options.h | 2 +- yoRadio/src/yoEncoder/yoEncoder.cpp | 4 ++-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9cb8202..0b15adf 100644 --- a/README.md +++ b/README.md @@ -291,6 +291,9 @@ Work is in progress... --- ## Version history +#### v0.6.263 +- fixed encoder internal pullup + #### v0.6.262 - change encoder library to [ai-esp32-rotary-encoder](https://github.com/igorantolic/ai-esp32-rotary-encoder) (injected to project) - added new option VOL_ACCELERATION - volume adjustment acceleration by encoder (see [myoptions.h](exsamples/myoptions.h) for exsample) diff --git a/yoRadio/options.h b/yoRadio/options.h index 6a80a79..7aa14b5 100644 --- a/yoRadio/options.h +++ b/yoRadio/options.h @@ -1,7 +1,7 @@ #ifndef options_h #define options_h -#define VERSION "0.6.262" +#define VERSION "0.6.263" /******************************************************* DO NOT EDIT THIS FILE. diff --git a/yoRadio/src/yoEncoder/yoEncoder.cpp b/yoRadio/src/yoEncoder/yoEncoder.cpp index d3f0e0c..a88c786 100644 --- a/yoRadio/src/yoEncoder/yoEncoder.cpp +++ b/yoRadio/src/yoEncoder/yoEncoder.cpp @@ -87,8 +87,8 @@ yoEncoder::yoEncoder(uint8_t encoder_APin, uint8_t encoder_BPin, uint8_t encoder this->encoderBPin = encoder_BPin; this->encoderSteps = encoderSteps; - pinMode(this->encoderAPin, internalPullup?INPUT_PULLUP:INPUT_PULLDOWN); - pinMode(this->encoderBPin, internalPullup?INPUT_PULLUP:INPUT_PULLDOWN); + pinMode(this->encoderAPin, internalPullup?INPUT_PULLUP:INPUT); + pinMode(this->encoderBPin, internalPullup?INPUT_PULLUP:INPUT); } void yoEncoder::setBoundaries(long minEncoderValue, long maxEncoderValue, bool circleValues)