const byte LINHAS = 4;
const byte COLUNAS = 4;
char MAPA_TECLAS[LINHAS][COLUNAS] =
{
{'1', '2', '3', 'A'},
{'4', '5', '6', 'B'},
{'7', '8', '9', 'C'},
{'*', '0', '#', 'D'}
};
byte PINOS_LINHAS[LINHAS] = {9, 8, 7, 6};
byte PINOS_COLUNAS[COLUNAS] = {5, 4, 3, 2};
Keypad teclado = Keypad(makeKeymap(MAPA_TECLAS), PINOS_LINHAS, PINOS_COLUNAS, LINHAS, COLUNAS);
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}