A minor modification of https://github.com/khenderick/micropython-drivers/blob/master/ssd1306/ssd1306.py for the ssd1106
This works for I2C, but on my SPI LCD panel, it doesn't work. Might be a code problem, might be a hardware problem.