ArduinoMenu icon indicating copy to clipboard operation
ArduinoMenu copied to clipboard

Display the integer or char string

Open arslan437 opened this issue 2 years ago • 1 comments

I want to display an integer in the menu maybe with FIELD. But I don't want to make it editable. Let say if there is a process that shows its status with percentage complete(i.e 80%, 90%). How can I do that ?

arslan437 avatar Feb 03 '23 06:02 arslan437

Define your FIELD as usual, and just disable it in your setup() function.

void setup()
{
...
  // use index of your FIELD menu entry
  // e.g. in this case, the FIELD menu entry is at 4th position in the menu, so you must use index 3
  mainMenu[3].disable();

}   

keldonin avatar Mar 23 '23 13:03 keldonin