ESP32 + MAX30100 + MPU6050

Hello all

I have an ESP32 board, MAX30100 pulse sensor and an MPU6050 accelerometer. I'm trying to get data from both these sensors simultaneously. Problem is, they both use I2C and my ESP32 has only 2 dedicated pins (D21 and D22). Now I know I can setup more pins for I2C connectivity, but the libraries for these sensors both use the default Wire pins (D21 and D22). I've tried to change the MAX30100 library so that it will connect to the bus i've made with TwoWire, but it fails to compile.

I could use some advice regarding this matter. If it can be done