Rotary encoder menu system

What would that code be, and why are you not using it? Your problem is that you wrote all that application code, without making sure that the encoder is working properly.