Created
November 22, 2016 12:36
-
-
Save proto-pic/52368632b35c1c5d3accd93b089b88a7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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