Description
4x3 Membrane matrix keypad with 4 rows and 3 columns. Self-adhesive by means of a sticker on the back.
4×3 Membrane matrix keypad specifications:
– Flat cable length: 71.5 mm.
– Connector: 7 pin.
– Weight: 8g.
€1,95
Matrix keypad with 4 rows and 3 columns.
11 in stock
4x3 Membrane matrix keypad with 4 rows and 3 columns. Self-adhesive by means of a sticker on the back.
4×3 Membrane matrix keypad specifications:
– Flat cable length: 71.5 mm.
– Connector: 7 pin.
– Weight: 8g.
#include <Keypad.h>
const byte ROWS = 4;
const byte COLS = 3;
char keys[ROWS][COLS] = {
{'1','2','3'},
{'4','5','6'},
{'7','8','9'},
{'*','0','#'}
};
byte rowPins[ROWS] = {2,3,4,5}; //connect to row pinouts
byte colPins[COLS] = {6,7,8,9}; //connect to column pinouts
Keypad keypad = Keypad( makeKeymap(keys), rowPins, colPins, ROWS, COLS );
void setup(){
Serial.begin(9600);
}
void loop(){
char key = keypad.getKey();
if (key != NO_KEY){
Serial.println(key);
}
} Only logged in customers who have purchased this product may leave a review.
Reviews
There are no reviews yet.