I need to read the button pressed on a 4x4 keypad, connected to Port E on the MCU. This is for user to enter frequency, so several "presses" need to be stored in an array. My confusion is how I actually get this number. Apparently if PortE is pressed, it is a logic 0. I've done some reading an understand the idea of making a table of rows and columns associated with keys, just don't know how to load the ascii code pressed into a variable. Don't think I can just do newnumber=PTE;
Any advice would be great.