STM23CubeMX and u8g2 work with STM32CubeMX and find a easy solution to implement u8g2. In this example i used a SSD1308 and OLED display with a resolution of 128x64. I didn't find any differences between SSD1308 and SSD1306. The interface is I2C.