This implementation is based in the post found here
This library require two gpios with high or very high speed enabled in the CubeMX.

The library doesn't implement HAL functions to make the switch in logic levels, so you need to change the definitions of SDA and SCL in the IIC.h file to meet your hardware structure.
You need to check the IDR, ODR and MODER registers to set the correct bits.