FYI - I made a version of a library for SSD1306 displays with I2C interface to use with STM32 LibMaple Core:
https://github.com/i998/SSD1306_i2c_STM32
It uses a pointer to I2C object ( I use hardware I2C on Maple Mini) in order to reduce potential problems with redefining Wire etc.
Hope that helps.
Library for SSD1306 displays with I2C interface
Re: Library for SSD1306 displays with I2C interface
Thanks for sharing.