Pin names
Row
Row 1 (top row)
Row
Row 2
Row
Row 3
Row
Row 4 (bottom row)
Column
Column 1 (left)
Column
Column 2
Column
Column 3
Column
Column 4 (right)
Attributes
string
default:"4"
Number of columns: “3” or “4”
array
Labels for the keys
Arduino code example
The example below uses the Keypad library for Arduino. The key names set in thekeys array
define the values that keypad.getKey() returns. They don’t have to match the actual key labels
(but it can be confusing if they don’t), and they must contain exactly one ASCII character.