# SSD1306_DEMO.py
from machine import Pin, I2C
from ssd1306 import SSD1306_I2C
i2c=I2C(0,sda=Pin(0),scl=Pin(1),freq=400000)
oled = SSD1306_I2C(128, 64, i2c)
lin_hight = 9
col_width = 8
def text_write(text,lin, col):
oled.text(text,col*col_width,lin*lin_hight)
oled.fill(0)
text_write("MicroPython", 1, 2)
text_write("for", 3, 6)
text_write("STI2D Sin", 5, 3)
oled.rect(5, 5, 116, 52, 1)
oled.show()