from keypad import*
from lcdi2c import*
from utime import sleep
password='1234'
tmp_pass=''
def check_pass(paswd):
if paswd==password:
return True
else:
return False
lcd_start()
print("start")
while 1:
val=keyread()
if val=='#':
result=check_pass(tmp_pass)
print('status:',result)
string_write(str('status:',result))
tmp_pass='' #clear memory
elif val!=0:
tmp_pass+=str(val)
print(tmp_pass)
sleep(0.5)