Setting Perameter display

Dear all,

I need small opnion over here.I have LCd sheild with keypad.

The Interface code working fine.I need small coding help here

.if left key is pressed Display date. continue showing updated time and date

if right key is pressed Display desired angle and show continued angle.

if up key pressed Display wind speed
if down key pressed display longitude.
if select key pressed choose menu option for modify value.
Problem here i am making is if button pressed left only it update value. is there any way if i pressed any one of key show display current reading continuous manner.
example if time set and if left key is pressed then it should continuously display change in time

void lcd_call()
{
  int button;
   button = read_LCD_buttons();
  if (button == btnLEFT)
    {
     
		digitalClockDisplay();  
    }else if (button == btnRIGHT)
  {
    Display_angle();
  }else if(button ==btnUP)
  {
    Display_Wind();
  }else if (button ==btnDOWN)
  {
   Display_latitude(); 
  }else if (button==btnSELECT)
  {
    button_loop();
  }
}

AMPS - you know better than to post a snippet of your code.

I wanted to know is it possible to do. If yes How can we do that.

I know algorithm
if previous key pressed is Left Previous buttonstatus continue reading

OK, so don't post your code. You say that you know the algorithm, so implement it. When you read a keypress save it in a variable so that you can refer to it again the next time that you read a keypress, and compare the two.

Problem i am facing here is When i press left the value of date is changing. But i wanted to do only once. If left key is pressed time should run continously. The code syntax i pasted it changes time whenever left key being pressed

To quote myself from a previous reply

When you read a keypress save it in a variable so that you can refer to it again the next time that you read a keypress, and compare the two.

So, if the previous keypress was the left button and the new, or continued keypress is the left button, do something (or nothing). You decide.