I am trying to build a type of Thermostat Using a PIC16f877 I have all of the hardware fiqured out and most of the software. I am using two LM34CAZ to read the temperature and displaying it on a LCD and Out the serial port. I am using PicBasic Pro

What I would like to do is use a few switches and/or a serial port to change the setting of the thermostat ie. Mode Summer/Winter, High Set Point, Low Setpoint and cant seem to find any code samples.

How do you store settings in a PIC and use a switch input to change those settings.

Thanks in advance for any help.