from machine import Pin, I2C, ADC
import time
import gfx
from ssd1306 import SSD1306_I2C
No1adc = ADC(Pin(26))
i2cbus= I2C(1, scl=Pin(7), sda=Pin(6))
oled = SSD1306_I2C(128, 64, i2cbus)
graphics = gfx.GFX(128, 64, oled.pixel)
while True:
oled.fill(0)
value = No1adc.read_u16()
r = value / 65536 * 32
print(value)
graphics.circle(64, 32, int(r), 1)
oled.show()
time.sleep(0.01)