I finally managed to get an OLED1306 128×64 working on an STM8 using my bare metal library.
The code is a mess and certainly needs cleaning up. But it’s certainly a start.
Code here:
https://github.com/blippy/rpi/tree/master/stm8s103f3p6/bare8/13-ssd1306