from keypad import*
from lcdi2c import*
from utime import sleep

print("start")

lcd_start()

while 1:
    val=keyread()
    
    if val=='A':
        
        cmd_wrt(0x80+4)
        string_write("embedded")
        sleep(0.5)

    elif val=='B':
        
        cmd_wrt(0x80+4)
        string_write("subject ")
        sleep(0.5)

    elif val=='C':
        cmd_wrt(0x01) #clear lcd
        sleep(0.5)
    
    elif val!=0:
        cmd_wrt(0x01) #clear lcd
        cmd_wrt(0xc0+8)
        string_write(str(val))
        sleep(0.2)

        
BOOTSELLED1239USBRaspberryPiPico©2020RP2-8020/21P64M15.00TTT