I trying to get an OLED display working with a Pico W:

micropython build: MicroPython v1.20.0-117-ged7a3b11d on 2023-05-24;

ssd1306 library: micropython-ssd1306 v .3

When I run:

from machine import Pin, I2C
from ssd1306 import SSD1306_I2C

i2c=machine.I2C(0,sda=sda, scl=scl, freq=200000)

print('Scan i2c bus...')
devices = i2c.scan()

oled = SSD1306_I2C(128, 64, i2c)

oled.text("WELCOME!", 0, 0)

for device in devices:
    print("Decimal address: ",device," | Hexa address: ",hex(device))

I get a snow screen: snowscreen

Any ideas?

  • Are you sure that is a ssd1306 display?
    – CoderMike
    May 30, 2023 at 7:16

1 Answer 1


I had this same problem and realized my OLED was using the SH1106 controller. Found this library which seems to be working nicely so far: https://github.com/robert-hh/SH1106

  • Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.
    – Community Bot
    Aug 2, 2023 at 8:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.