I am trying to get the key that i pressed(the value of the key) , but I get an error: "local variable 'Key' referenced before assignment " I am using from pad4pi import rpi_gpio,
keypadcode.txt
i want to get the Key from the printKey function and use it in the main function , how can i do this
I am trying to get the key that i pressed(the value of the key) , but I get an error: "local variable 'Key' referenced before assignment " I am using from pad4pi import rpi_gpio, keypadcode.txt i want to get the Key from the printKey function and use it in the main function , how can i do this