Audio icon indicating copy to clipboard operation
Audio copied to clipboard

SGTL5000 control: support for multiple I²C busses

Open h4yn0nnym0u5e opened this issue 3 years ago • 1 comments

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.

h4yn0nnym0u5e avatar Jun 11 '22 13:06 h4yn0nnym0u5e

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.

MartijnBraam avatar Feb 27 '24 11:02 MartijnBraam