Skip to content

Allow multiple instances of RotaryEncoder to work at the same time#7

Open
spikeon wants to merge 1 commit intoTTitanUA:mainfrom
spikeon:main
Open

Allow multiple instances of RotaryEncoder to work at the same time#7
spikeon wants to merge 1 commit intoTTitanUA:mainfrom
spikeon:main

Conversation

@spikeon
Copy link

@spikeon spikeon commented Dec 29, 2025

Use Case:

I have a volume knob (Vol Up, Vol Down, and Mute) and a control knob (Left, Right, Perform Action) knob.

The issue

The current version of the code stores all variables on the CLASS and not on the INSTANCE, so all of these variables are shared between all of the instances.

Changes:

  • Moved all CLASS variables to be INSTANCE variables instead
  • Added example file for multiple encoders.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant