from machine import Pin, I2C
from ssd1306 import SSD1306_I2C
WIDTH = 128
HEIGHT = 32
i2c = I2C(0, scl=Pin(9), sda=Pin(8), freq=200000)
print("I2C Address : "+hex(i2c.scan()[0]).upper())
print("I2C Configuration:" +str(i2c))
oled = SSD1306_I2C(WIDTH, HEIGHT, i2c)
oled.fill(0)
oled.text("this is a test",5,8)
oled.show()