import machine
import utime
from machine import I2C
import ssd1306
i2c = I2C(0, scl=machine.Pin(21), sda=machine.Pin(22), freq=100000)
oled = ssd1306.SSD1306_I2C(128, 64, i2c)
adc = machine.ADC(machine.Pin(2))
while True:
reading = adc.read()
oled.fill(0)
oled.text(str(reading), 10, 10)
oled.show()
utime.sleep_ms(100)