Fun with Rotary Encoders

Ohh, that makes sense. I've done as you've suggested and I must be close now. There are no error messages other than there being a RXTX Version mismatch.

However now it simply does not work. It opens the first image as it is asked to do in Setup, but twisting the encoder gets no response.

Here's my new arduino code:

#include <QuadEncoder.h>

int qe1Move=0;
QuadEncoder qe(8,9);

byte count = 0;

void setup() {
    Serial.begin(9600);
}

void loop() {
  qe1Move=qe.hb();
  if (qe1Move=='>')
  {
  count = count + 1;
  Serial.write(count);
  if (count>46)
  {
    count = 0;
  }
  }
  if (qe1Move=='<')
  {
  count = count - 1;
  Serial.write(count);
  if (count<2)
  {
    count = 48;
  }
  }
    //Serial.print(char(qe1Move));
  //else if (qe1Move=='<')
    
    //Serial.print(char(qe1Move));
    //delay(100);
}