Go Down

Topic: Change in variable on LCD 16x2 (Read 94 times) previous topic - next topic

Neilon10

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;
 

OldSteve

#1
Sep 10, 2016, 01:57 pm Last Edit: Sep 10, 2016, 01:57 pm by OldSteve
Please don't cross-post. One thread per problem is enough.

Enter the time (variable or string) in LCD display

Please do not PM me for help. I am not a personal consultant.
And others will benefit as well if you post your question publicly on the forums.

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy