Re: Rotary encoder with blue pill
Posted: Sat Mar 04, 2023 4:14 pm
ok thanks... well I do my own rotary lib long ago...
https://drive.google.com/file/d/1iWFBES ... share_link
... and this is the way u setup it...
#include <RotaryEncoder.h>
float maxMark = 12.0;
float minMark = 0.0;
float incMark = 0.25;
#define Enc_CLK PB8
#define Enc_DT PB9
RotaryEncoder EncoderPulse (Enc_CLK,Enc_DT,incMark,minMark,maxMark,4);
(4 is for the number of latches the encoder is using... cuadrature etc)
thats all I think anybody needs to do using that library, the min, the max and the specific increment u want to use... all in a easy to use 1 line setup
this soft version works good for me, I'm just looking for a good hardware based alternative with the same easy of use... so Im looking for a solution that does not need to use digitalRead in order to work.
https://drive.google.com/file/d/1iWFBES ... share_link
... and this is the way u setup it...
#include <RotaryEncoder.h>
float maxMark = 12.0;
float minMark = 0.0;
float incMark = 0.25;
#define Enc_CLK PB8
#define Enc_DT PB9
RotaryEncoder EncoderPulse (Enc_CLK,Enc_DT,incMark,minMark,maxMark,4);
(4 is for the number of latches the encoder is using... cuadrature etc)
thats all I think anybody needs to do using that library, the min, the max and the specific increment u want to use... all in a easy to use 1 line setup
this soft version works good for me, I'm just looking for a good hardware based alternative with the same easy of use... so Im looking for a solution that does not need to use digitalRead in order to work.