Skip to content

Instantly share code, notes, and snippets.

@proto-pic
Created November 22, 2016 12:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save proto-pic/52368632b35c1c5d3accd93b089b88a7 to your computer and use it in GitHub Desktop.
Save proto-pic/52368632b35c1c5d3accd93b089b88a7 to your computer and use it in GitHub Desktop.
#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