brettmclean / pad4pi

Interrupt-based matrix keypad library for Raspberry Pi
GNU Lesser General Public License v3.0
51 stars 19 forks source link

save keypad number input #15

Closed shomary closed 4 years ago

shomary commented 4 years ago

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