Wazzled:
for (int n = 0; n <= 3; n++)
should rather read
for (int n = 0; n < 3; n++)
OK, I thought an array was zero indexed, so I was indeed reading it 4 times.
SO i should change
//Define varaibles to hold data
//for direction of rotary encoder (+1 or -1)
int encoders1[3];
int OLDencoders1[3];
into
int encoders1[4];
int OLDencoders1[4];
So I should do the same for the lcd code:
lcd.setCursor(0, 0);
lcd.print(values1[0]);
into
lcd.setCursor(0, 0);
lcd.print(values1[1]);
PS the lcd is working, I get to see the values, that's when I got rid of the serial print...
Thanks!!
ToAd
EDIT:
OK. I tried it and it's looking much better. Still not working as expected but that is due to the calculations being wrong.
Still wondering about the lcd code though... the lcd.print(values1[0] shows something.
Cheers,
ToAd