Migration Guide
Migrating to LcdMenu v4
This guide details the changes and how to change your code to migrate to LcdMenu v4. See the full changelog for version v4.0.0
New imports
The biggest change from this version is the separation of the menu drawing logic from the menu control logic.
The first change you'll need to make is to add the import for your desired display interface, seen all the available interfaces
Construct the display adapter interface
Finally, initialise the menu
The menu is now initialised differently and is easier than before, replace menu.setupLcdWithMenu(
0x27
, mainMenu)
with
Other
Cursor icon, edit cursor icon and display timeout are now updated using
Lcd instantiation changes
Note that the lcd instance now resides in the adapter so if you need to perform custom printing or any other function of LiquidCrystal
like turning on/off backlight, you now need to reference it from the lcdAdapter
not the menu.
Public functions moved from LcdMenu to the adapter (interface)
menu.isInEditMode()
->lcdAdapter.getEditModeEnabled()
menu.isAtTheStart()
->lcdAdapter.isAtTheStart()
menu.isAtTheEnd([position])
->lcdAdapter.isAtTheEnd([position])
Last updated