Thanks for your help, I will work on this tomorrow. I have to finish this soon, I have customers waiting.
Code:
if (button3 == HIGH)
{
tick1++; //wait 3 seconds then enter setup.
if(tick1 == 35000)
{
digitalWrite(backLightPin, LOW); //flash screen two times.
delay(300);
digitalWrite(backLightPin, HIGH);
delay(300);
digitalWrite(backLightPin, LOW);
delay(300);
digitalWrite(backLightPin, HIGH);
delay(300);
tick1 = 0; //reset timer
hset = EEPROM.read(10); //read and display last setup value
lcd.print(hset, DEC);
while(button4 == HIGH)
{
delay(300);
hset--; //decrement high value, write.
EEPROM.write(11, hset);
lcd.print(hset, DEC);
}
while(button3 == HIGH)
{
delay(300);
hset++; //increment high value, write.
EEPROM.write(11, hset);
lcd.print(hset, DEC);
}
//exit setup
}
}
}