AdaEncoder: a library for use with simple quadrature encoders

Well, I tried using the 0.7beta. And changed the necessary lines in my code to match the new format of Adaencoder 0.7beta. Compiled successfully and all that.

But I can't get it to work properly. My program just crashes when I turn the encoder using the 0.7beta... as if somebody pressed the reset button. I'm going back to 0.5.


I do have a few questions on the sample MyEncoder in 0.7beta

On Line# 15, we have this code
AdaEncoder encoderA = AdaEncoder('a', ENCA_a, ENCA_b);

but nowhere else in the program is "encoderA" used. What's the purpose of line#15?

Then on line#30, I see this
AdaEncoder *thisEncoder=NULL;

*thisEncoder is used in the loop() program. But how does Arduino know how *thisEncoder is setup? We defined encoder pins 2 and 3 for "encoderA", not "thisEncoder".

I'm confused.