Created Thu, 21 Nov 2013 22:20:01 +0000 by kaaasap
Thu, 21 Nov 2013 22:20:01 +0000
Does anyone have an idea why a 3x3 keypad would work on pins 34-39 and none of pins 26-33?
const byte ROWS = 4; //defines number of rows on keypad const byte COLS = 3; //defines number of columns on keypad char keys[ROWS][COLS] = { // defines names of keys at specific row/column alignments {'9','8','7'}, {'6','5','4'}, {'3','2','1'}, };
////not working at 26-31, but change out to 34-39 and it does
byte rowPins[ROWS] = {28,27,26}; //pins rows from keypad are connected to byte colPins[COLS] = {31,30,29}; // pins columns from keypad are connected to
Keypad keypad = Keypad( makeKeymap(keys), rowPins, colPins, ROWS, COLS );
Thu, 21 Nov 2013 22:25:40 +0000
My guess is that it relies on the internal pullup resistors of the IO ports that aren't available on all ports, only some ports (the change notification pins).