from machine import Pin, I2C
import ssd1306
import time
i2c = I2C(scl=Pin(22), sda=Pin(21))
oled_width = 128
oled_height = 64
oled = ssd1306.SSD1306_I2C(oled_width, oled_height, i2c)
cont = 0
while cont < 5:
oled.fill(0)
oled.text("Cont:"+str(cont), 30, 28)
oled.show()
time.sleep_ms(1000)
cont = cont + 1