problema numeri sbagliati keypad

Controlla i collegamenti del tastierino così come sono descritti nel codice

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, A5, A4, A2}; //connect to the row pinouts of the keypad
byte colPins[COLS] = {A1, A0, A3}; //connect to the column pinouts of the keypad

... e facendo riferimento all'allegato.

Sempre che tu stia veramente usando quel tipo di tastierino e non un altro ...
... eventualmente metti il link al tastierino realmente utilizzato.

Guglielmo

Membrane_Kbd.pdf (648 KB)