Skip to content

keypad.KeyMatrix() not detecting any events if row_pins are more than nine pins #6601

@rgbpcb

Description

@rgbpcb

CircuitPython version

Adafruit CircuitPython 8.0.0-alpha.1-31-gc1b00442a on 2022-07-02; stm32f411ce-blackpill with STM32F411CE

Edit: I'm using a slightly different board than the BlackPill, namely one without a low-speed crystal at pins C14 and C15.

Code/REPL

import board, keypad

key_matrix = keypad.KeyMatrix(
    row_pins=(board.A0, board.A1, board.A2, board.A5, board.A7, board.A8, board.B8, board.B9, board.C13, board.C14, board.C15, ),
    column_pins=(board.B14, board.B12, board.B10, board.B1, board.B0, board.A4, board.A3, ),
)

while True:
    event = key_matrix.events.get()
    if event:
        print(event)

Behavior

Nothing gets printed when keys are pressed.

Description

No response

Additional information

Removing a few pins from row_pins such that nine or fewer of them remain fixes the issue.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions