yes, i need one after the other
code:
#include <Keypad.h>
const int LED_1 = 30;
const int LED_2 = 31;
const int LED_2 = 32;
const byte ROWS = 4; //four rows
const byte COLS = 4; //four columns
char hexaKeys[ROWS][COLS] = {
{'1','2','3','F1'}
{'4','5','6','F2'},
{'7','8','9','F3'},
{'mode','0','cancel','Enter'}
};
byte rowPins[ROWS] = {50, 48, 46, 44};
byte colPins[COLS] = {51, 49, 47, 45};
Keypad customKeypad = Keypad( makeKeymap(hexaKeys), rowPins, colPins, ROWS, COLS);
void setup()
{
pinMode(LED_1, OUTPUT);
pinMode(LED_2, OUTPUT);
pinMode(LED_3, OUTPUT);
}
void loop()
{
char customKey = customKeypad.getKey();
}