Control volume from iPhone and rotary encoder #459
-
I have a rotary encoder connected to my ESP32 and when I call the change volume function I can't change the volume anymore from the device that's playing the music. How would I make it so that both device can control volume at the same time? |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments
-
There is a good reason why I am asking for version info! Please also provide the missing details of your current logic. In a nutshell: either you use a wrong Arduino ESP32 version or your encoder logic is wrong! |
Beta Was this translation helpful? Give feedback.
-
The version I am using is 2.0.11. And here is my current code:
|
Beta Was this translation helpful? Give feedback.
-
So it's your logic then: |
Beta Was this translation helpful? Give feedback.
-
I don't think I understand what you mean... |
Beta Was this translation helpful? Give feedback.
-
Do you have an example of this in the repository? Thanks so much for your help! |
Beta Was this translation helpful? Give feedback.
-
No, I dont have any examples. But the logic seems quite obvious to me. E.g To increment the volume you would call set_volume(get_volume()+inc); or to decrement set_volume(get_volume()-inc); |
Beta Was this translation helpful? Give feedback.
-
Ohhhh, now I get what you mean! Thanks so much for the help! |
Beta Was this translation helpful? Give feedback.
No, I dont have any examples. But the logic seems quite obvious to me. E.g To increment the volume you would call set_volume(get_volume()+inc); or to decrement set_volume(get_volume()-inc);