Skip to content

When using multiple rotary encoders (hw) at the same board, all events will fire for all rotary encoders #1

@M463

Description

@M463

Repro steps

  1. Connect multiple rotary encoders to a single Raspberry Pi Pico board, using dedicated GPIO pins for each encoder.
  2. Set up RotaryEncoderRP2 objects for the correct pins for each connected rotary encoder.
  3. Subscribe to different events via RotaryEncoderRP2.on() for each connected rotary encoder.
  4. Run the program on the Raspberry Pi Pico.

Actual result

When operating one rotary encoder, all events of the same type will trigger for all connected rotary encoders.
E.g. when using three encoders and turning encoder 1 to the left, the .TURN_LEFT event type will be triggered for encoder 2 and 3 as well.

Expected result

Operating a single rotary encoder shall only call it's own listeners when it triggers an event.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions