Want Suggestions/Tips on code of LCD Menu system

This is my take on a LCD menu system that I am going to use for my school project.

Hopefully, I’ll have the chance to do more Arduino related projects in the future, thus I would like to know how I can improve as to not make the same mistakes in the future.

I researched a fair amount on LCD menu systems, however almost all of them I see mainly uses Arrays. Which I do not understand well, therefore I tried to avoid using it. This is also the case for the “while” statement.

This current code works, but it did take me quite a lot of time, along with numerous trials and errors.

A few things that I would like to know is:

  • Making the code easily “manipulable”? (Example: Adding more menus and stuff easily.)
  • Disadvantage of mainly If/Else and Switch.
  • Advantage of using Arrays, While and any other statement that I do not know of.

As the code is separated by tabs and total character would exceed the limit of 9000, I don’t think I can use the Code tag. Instead, I’ll attach all my files in this post.

_00_buttonLayout.ino (1.9 KB)

_01_mainMenuPage.ino (2.58 KB)

_02_initTest.ino (499 Bytes)

_03_menuSwitch.ino (410 Bytes)

_04_manualMenu.ino (200 Bytes)

_05_settingMenu.ino (3.12 KB)

_06_goHome.ino (145 Bytes)

_07_dosingPump.ino (638 Bytes)

menu_final.ino (1.6 KB)