I am just trying to understand how the pieces fit together. If I look at the ESP32_i2c Dual Bus Example (pasted below), It is not clear where “Wire” gets initialized or created or where begin is called. I have searched the repository and cannot find any other references. Am I missing something?
Serial.begin(115200); _delay(750); Wire.setClock(400000); Wire1.setClock(400000); // Normally SimpleFOC will call begin for i2c but with esp32 begin() is the only way to set pins! // It seems safe to call begin multiple times Wire1.begin(19, 23, (uint32_t)400000); sensor0.init(); sensor1.init(&Wire1);