TAMCTec / gt911-arduino

Arduino library for GT911
Apache License 2.0
40 stars 12 forks source link

New To Allow 2nd I2C Bus #2

Open TryingToGITthis opened 2 years ago

TryingToGITthis commented 2 years ago

Need a modification where a 2nd I2C bus can be used and not just the default Wire.

wBrhy2 commented 1 year ago

Isn't this enabled by the fact that you have to declare what the pin mapping is?

TAMCTec commented 1 year ago

Need a modification where a 2nd I2C bus can be used and not just the default Wire.

Try just use another SDA and SCL pin

OlliHenri commented 3 months ago

As I understand, it is not enough just to use other SDA and SCL pins. To use the two I2C bus interfaces of the ESP32, you need to create two TwoWire instances. There are CYD display boards with GT911 that need to declare 2 i2c busses to use. So it would be good like ADAFRUIT does it in many libs, to offer a way to hand a dedicated i2c instance to the GT911 library.