Skip to content

SGTL5000 control: support for multiple I²C busses - #439

Open
h4yn0nnym0u5e wants to merge 5 commits into
PaulStoffregen:masterfrom
h4yn0nnym0u5e:feature/multi-SGTL5000
Open

h4yn0nnym0u5e wants to merge 5 commits into
PaulStoffregen:masterfrom
h4yn0nnym0u5e:feature/multi-SGTL5000

Conversation

@h4yn0nnym0u5e

Copy link
Copy Markdown
Contributor

This PR adds a setWire() function to the AudioControlSGTL5000 class, allowing any available I²C bus to be selected to control an SGTL5000 audio shield. Either a reference to an existing TwoWire object or integer index based selection is supported; if the latter is used, then 0-3 map to Wire, Wire1, Wire2 and Wire3.

The GUI design tool documentation and keywords.txt have also been updated.

@MartijnBraam

Copy link
Copy Markdown

This patch works great for me. It's needed now only the 20-pin version of the SGTL5000 is in stock since that one can't change its i2c address.

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.

2 participants