Use LCD keypad shield to set an input and change back to original LCD display

I am designing a PID controller that uses the pushbuttons to input a SP. I have this code working. The LCD is currently being used to display the temperature....

I want to be able when the keypad is used to change the SP of the system, the LCD change from the temperature display to the setpoint display. How is this possible?

Hi spence, and welcome.

I have been playing around with a LCD keypad shield (from DX) and built a little sketch that lets me lookup character codes (in decimal), but also enters a menu when pushing the select key.
The menu allows to change the language (with some poor translations), to enable or disable backlight flashing upon keypresses, dim the backlight and to exit the menu to come back to the normal display.
It has a cursor/pointer that can be navigated by the up / down buttons, and items can be changed by the left / right buttons.
The last item (Exit) will be selected by pressing the select key if the pointer is at that item.
I have attached that sketch for you to study and see if you can use a similar approach.
I had fun building it (and learn a lot while doing that), hope you will enjoy it too.
Because it was a bit of a practice to me, i put lots of comments in it.

If you have any questions about his, don't hesitate to ask.

LcdKeyShieldDX_Menu_Dim_Lang_Flash.ino (11.4 KB)

Hi Spence, Im trying to create the PID, can you post the code or email it to me. Help will be appreciated