the keypad library is great and all but it seems build exclusively for matrix keypads, rather than single dimensional keypads
specifically, all the examples have this instantiation
#include <Keypad.h>
const byte ROWS = 4; //four rows
const byte COLS = 3; //three columns
char keys[ROWS][COLS] = {
{'1','2','3'},
{'4','5','6'},
{'7','8','9'},
{'*','0','#'}
};
byte rowPins[ROWS] = {5, 4, 3, 2}; //connect to the row pinouts of the keypad
byte colPins[COLS] = {8, 7, 6}; //connect to the column pinouts of the keypad
Keypad keypad = Keypad( makeKeymap(keys), rowPins, colPins, ROWS, COLS );
i tried dropping the const rows to 1 and cols to 4 and changing the char to be {'1','2','3','4'}, thinking it's just a matter of making the matrix 1D but that doesn't seem to have any effect, pressing keys doesn't output anything to the serial monitor
is this library just not suited to this and i've be better off doing some input pullup in a loop?