from time import sleep
from lcd4bit import*
from keypad import*
lcd_start()
while 1:
val=keyread()
if val =='A':
cmd_wrt(0x01)
cmd_wrt(0xc0)
string_write("Welcome")
sleep(0.5)
elif val=='B':
cmd_wrt(0x01)
cmd_wrt(0xc0)
string_write("Thank You")
sleep(0.5)
elif val=='C':
cmd_wrt(0x01)
cmd_wrt(0xc0)
string_write("Please")
sleep(0.5)
elif val=='D':
cmd_wrt(0x01)
cmd_wrt(0xc0)
string_write('Come Again')
sleep(0.5)
elif val=='#':
cmd_wrt(0x01)
cmd_wrt(0xc0)
string_write('Later')
sleep(0.5)
elif val=='*':
cmd_wrt(0x01)
sleep(0.5)
elif val!=0:
cmd_wrt(0x80+7)
string_write(val)
sleep(0.2)