
Serial.print("y1: ") Serial.print(y1) Serial.print(" ") Serial.print("X1: ") Serial.print(x1) Serial.print(" ") I am not able to figure out where the problem lies. While I try for the other I2c port I do not get values for ADXLs. I get values only for the first multiplexer with default GPIO 21(SDA) and GPIO 22(SCL). I am trying to use two TCA9548 multiplexers for 11 ADXL on esp32 in two I2c ports. begin( SDA2, SCL2, 400000) // SDA pin 5, SCL pin 4 builtin OLED begin( SDA1, SCL1, 400000) // SDA pin 21, SCL pin 22 TTGO TQ I2Ctwo.

println( "Scanning I2C Addresses Channel 2") println( "Scanning I2C Addresses Channel 1") * I2C slave Address Scanner for 5V bus * Connect a 4.7k resistor between SDA and Vcc * Connect a 4.7k resistor between SCL and Vcc for 3.3V bus * Connect a 2.4k resistor between SDA and Vcc * Connect a 2.4k resistor between SCL and Vcc Kutscher07: Modified for TTGO TQ board with builtin OLED */ #include #include //for esp32 #define SDA1 21 Reply to this email directly, view it on GitHub, or mute the thread. You are receiving this because you are subscribed to this thread. I2Ctwo.begin(16,17,400000) // SDA pin 16, SCL pin 17, 400kHz frequencyĬode is not tested, but that is how I would approach it. You might define two Wire ports, and then access them as needed by their name.

Subject: Re: Simultaneously use the two I2C bus of the ESP32.
