I'm using phi_prompt as a menu for a sketch with a LCD.
This is an extract from the document on phi_prompt.
- int yn_dialog(char msg[]);
Parameters:
This renders a YES/NO dialog so the user can choose YES or NO.
Return values:
1 for YES and 0 for NO so the program can decide what to do in case of YES and NO. The dialog auto scales to occupy the entire display so you don?t have to specify you have a 20X4 display or 16*2 display. See fig. 6-3 below.
Eg. int choice=yn_dialog(“Engage death ray now?”);
(a)
(b)
Figure 6-3. YES/NO dialog auto scales on 16X2 and 20X4 displays. (a) 16X2 display. (b) 20X4 display. Intended message was “Engage death ray now?”. The text is automatically wrapped to occupy multiple lines. The message will be clipped if it doesn?t fit on a smaller display.
Steve...