kEY SELECTION ISSUE:

Dear all,
I have below key configuration.
key selection

RIGHT-> MENU SELECTION /OK
LEFT-> EXIT
UP->INCREMENT
DOWN ->DECREMENT
SELECT-> RESET

LCD_CALL IS MY FUNCTION

MENU_OPTION 1: DISPLAY PARAMETER
MENU_OPTION 2: SET PARAMETER
MENU_OPTION 3: EXIT

KEY USED:
RIGHT KEY : CHANGE THE MENU

DISPLAY PARAMETER

1- DATE & TIME
2- COORDINATE
3-WINDSPEED
4-DESIRED ANGLE
5-EXIT
KEY USED:
[b]UP: INCREMENT DISPLAY SCREEN
DOWN: DECREMENT DISPLAY SCREEN
RIGHT : BACK  TO MENU

 [/b]

When i enter case 2: i couldn’t able to exit.like in Display function.let me know how to solve this issue
SET_PARAMETER

1-  SET DATE & TIME
2- SET COORDINATE
3-SET START TIME
4-SET STOP TIME
5-EXIT
KEY USED :
[b]UP:INCREMENT
DOWN:DECREMENT
RIGHT: OK
LEFT:EXIT
[/b]

circuit diagram available here:

www.freetronics.com/pages/16x2-lcd-shield-quickstart-guide#.UxBSvs7peg

code is pasted here

  1. code: http://paste.ubuntu.com/7009386/
  2. set perameter functions :http://paste.ubuntu.com/7009428/

LCD.rar (5.25 KB)