from machine import Pin, SoftI2C
import time
import ssd1306

i2c = SoftI2C(scl=Pin(6), sda=Pin(5))
# taille écran : 72x40
oled = ssd1306.SSD1306_I2C(72,40,i2c)

cnt = 0

while True:
    oled.fill(0)
    cnt = cnt + 1
    oled.text("valeur" + str(cnt),0,0)
    oled.show()
    time.sleep_ms(200)