" />

gb.menu

DESCRIPTION


Displays a menu to select from a list of items.

SYNTAX


gb.menu(menu, MENULENGTH);

PARAMETERS


  • menu (char** PROGMEM): the items to select from, stored as a PROGMEM array of strings (see example below).
  • MENULENGTH (byte): the number of items in the menu.

RETURNS


The number of the item selected, or -1 if menu is left without selecting an item (char).

0