Matrix Keypad icon Matrix Keypad

Library: Input/Output

Behavior

Models a 4-by-4 matrix keypad. Pressing a key connects its row input to its column output, allowing a circuit to scan the keypad in the same way as a physical row-column keypad. Releasing the mouse button releases the key.

The Operating mode attribute selects one of two electrical behaviors.

Raw Matrix
While the keys are not pressed, the outputs (rows) are in a high-impedance state (Z). Pressing a key passes the signal from the corresponding input (column) to the corresponding output (row).
Pmod KYPD (Internal Pull-Up)
By default, the outputs (rows) are held at logic 1. Pressing a key passes the signal from the corresponding input (column) to the corresponding output (row). This mode uses the fixed Pmod KYPD layout (with symbols 0, F, E, and D on the bottom row).

Pins

Four 1-bit inputs (columns) are located along the bottom edge, and four 1-bit outputs (rows) are located along the right edge. While pressed, each key connects the intersecting input and output at its position.

Attributes

Operating mode
Selects Raw Matrix or Pmod KYPD behavior as described above.
Display size
Selects the normal or large keypad appearance.
Key 'A', 'B', 'C', 'D', '*', and '#' Symbol
Customizes the displayed symbols for these six keys in Raw Matrix mode. Pmod KYPD mode uses fixed labels and hides these attributes.
Label
The text associated with the component.
Label Location
The location of the label relative to the component.
Label Font
The font used to draw the label.
Label Color
The color used to draw the label.
Label Visible
Controls whether the label is displayed.

Poke Tool Behavior

Press and hold a key to connect the corresponding input (column) to the output (row). The key remains pressed until the mouse button is released.

Text Tool Behavior

Allows the label associated with the component to be edited.

Back to Library Reference