Difference between revisions of "Gb.menu"

From Gamebuino Wiki
Jump to: navigation, search
(Example: source from github)
m
Line 1: Line 1:
{{DISPLAYTITLE:gb.menu}}
+
{{lowercase}}
 
__NOTOC__
 
__NOTOC__
 
== Description ==
 
== Description ==

Revision as of 2014-05-20T21:04:27

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).

Example

See also