Description
4x4 Membrane matrix keypad with 4 rows and 4 columns. Self-adhesive by means of a sticker on the back.
– Keypad dimensions: 69 x 76.5mm.
– Flat cable length: 71.5 mm.
– Connector: 8 pin.
– Weight: 10g.
€1,45
Matrix keypad with 4 rows and 4 columns.
16 in stock
4x4 Membrane matrix keypad with 4 rows and 4 columns. Self-adhesive by means of a sticker on the back.
– Keypad dimensions: 69 x 76.5mm.
– Flat cable length: 71.5 mm.
– Connector: 8 pin.
– Weight: 10g.
#include <Keypad.h>
const byte ROWS = 4;
const byte COLS = 4;
char keys[ROWS][COLS] = {
{'1','2','3','A'},
{'4','5','6','B'},
{'7','8','9','C'},
{'*','0','#','D'}
};
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.
Peter (verified owner) -
Good keypad. Doesn't make too much noise when pressing and feels good.
very handy that there is an adhesive strip on it. I have not yet been able to test the quality of this