I build a Timer in the Arduino using a 16x2 LCD and keypad 4x4. I need to change the time on and off using the keypad. I'm in trouble, can anyone help me?
sample code where I try to change the variable "ON Time" display.
case 5:
switch (key){
case '*':
lcd.clear(); Hora_OFF=kpd.waitForKey();
lcd.setCursor(0,0);
lcd.print ("---Hora OFF---");
lcd.setCursor(5,1);
lcd.print (Hora_OFF);
break;
case 'D':
lcd.clear(); Set_state(4);
break;
case 'B':
lcd.clear(); Set_state(6);
break;
default:
Set_state(5);
}
break;