Repro steps
- Connect multiple rotary encoders to a single Raspberry Pi Pico board, using dedicated GPIO pins for each encoder.
- Set up RotaryEncoderRP2 objects for the correct pins for each connected rotary encoder.
- Subscribe to different events via RotaryEncoderRP2.on() for each connected rotary encoder.
- 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.