You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rui Azevedo edited this page Oct 12, 2017
·
7 revisions
Menu structure objects
Menu structure objects are somehow complicated in great extent due to flash memory (PROGMEM) usage and the AVR architecture along with the bad combination of C++.
That said, you should take some caution when messing around with them, specially do not try to read pointers to flash, and there are some on menu structures, with regular reading memory functions like print or println or any other that read data from ram.
Anyway I will only present some basic aspects of the objects and its hierarchy.
Prompt (OP)
Prompts are the most basic menu structure it derives from an Action and associate it with a text.
They can be constructed by macro OP. (see menu definition)
Here is an example of initializing an option without macros for an non-AVR (PROGMEM) device.