Skip to content

Commit cbe0474

Browse files
authored
Merge pull request #4 from kattni/update-example
Added pin setup for 3x4 matrix to simpletest
2 parents 87710e7 + 0de6a39 commit cbe0474

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

examples/matrixkeypad_simpletest.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,13 @@
33
import board
44
import adafruit_matrixkeypad
55

6-
# Classic 3x4 matrix keypad
6+
# Membrane 3x4 matrix keypad - https://www.adafruit.com/product/419
77
cols = [digitalio.DigitalInOut(x) for x in (board.D9, board.D6, board.D5)]
88
rows = [digitalio.DigitalInOut(x) for x in (board.D13, board.D12, board.D11, board.D10)]
9+
# 3x4 matrix keypad - Rows and columns are mixed up for https://www.adafruit.com/product/3845
10+
# Use the same wiring as in the guide with the following setup lines:
11+
# cols = [digitalio.DigitalInOut(x) for x in (board.D11, board.D13, board.D9)]
12+
# rows = [digitalio.DigitalInOut(x) for x in (board.D12, board.D5, board.D6, board.D10)]
913
keys = ((1, 2, 3),
1014
(4, 5, 6),
1115
(7, 8, 9),

0 commit comments

Comments
 (0)