I had tried that with no results. I did find a solution
from another forum. It involved modifying the library.
I inserted this in the public area of the library.
void reset() {
noInterrupts();
ct = 0;
old_ct = 0;
out_val = 0...
The reason I posted on this forum is because of the author of the library.
I'm not using Teensy.
I'm seeking information on how to reset the encoder count using Paul's
library.
Thanks for any help!
olf20 / Bob
Attached is a simple sketch that uses
Quadrature.h that illustrates my problem of
not being able to reset the encoder values.
I've included several solutions offered to resolve
to no avail. I added the I2C lcd as I had it already
setup.
Thanks...
Should I post the whole sketch?
I'm using Encoder.h as my encoder library.
Everything works as it should but I can't reset
the encoder value as needed in my sketch.
Thanks for your reply / help!
olf20 / Bob
I'm using Encoder.h in a sketch and have a need to reset
the Encoder count. I've tried various suggestions and none
have compiled.
The value has to be in the library as if I shut the power off to
the encoder the value still remains in the sketch...