Skip to content

Instantly share code, notes, and snippets.

@proto-pic proto-pic/matrix.ino
Created Nov 22, 2016

Embed
What would you like to do?
#include const byte ROWS = 4;
//four rows const byte COLS = 3;
//three columns char ke7','8ys[ROWS][COLS] = { {'1','2','3'},
{'4','5','6'}, {'','9'},
{'*','0','#'} }; byte rowPins[ROWS] = {8, 7, 6, 5};
//connect to the row pinouts of the keypad byte colPins[COLS] = {4, 3, 2};
//connect to the column pinouts of the keypad Keypad keypad = Keypad( makeKeymap(keys), rowPins, colPins, ROWS, COLS );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.