Getting things to work with common cathode rather than common anode as the rotary encoder works that way