Skip to content

How to implement volume control? #371

Answered by pschatzmann
Efesdekjian asked this question in Q&A
Discussion options

You must be logged in to vote

I think people would usually link avrc command with buttons, so I suggest that you Google how to use and debounce buttons or use buttons with interrupts.

But first test your button code with the help of Serial.print() before you move to the next step.

E.g To use the increase volume button you would just do something like a2dp.setVolume(a2dp.getVolume()+const_offset); where const_offset is a numeric constant that defines how much the volume should increase with each press.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Efesdekjian
Comment options

Answer selected by pschatzmann
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants