Menu system using Rotary encoder (with LCD 16X2)

I’m trying to making menu system with rotary encoder.
But, it’s super long and complicated :frowning:
I have no idea how to make it short…

This is condition : No use any library except this one <LiquidCrystal_I2C.h>.
Do you guys have any idea how to shorten this source code?

190604.ino (17.5 KB)

You could do a site search using 'menu'. There's probably something in there you could adapt/learn from.

I implemented exactly that but then created a library. Here it is in case you can use it to learn: