from machine import Pin, SoftI2C
from time import sleep
import sh1107
# Init Soft i2c interface
i2c= SoftI2C(sda=Pin(1), scl=Pin(6), freq= 400000)
# Init SH1107 unstance
oled= sh1107.SH1107_I2C(128, 128, i2c)
#small delay to allow the OLED to initialize
sleep(1)
#display a test message
oled.fill(0) #clear the screen
oled.text("Hello", 10, 0)
oled.text("World", 10, 10)
oled.show()