from machine import Pin,ADC
from utime import sleep
import segment7

sleep(0.1)
pot=ADC(Pin(26))
while 1:
    val=pot.read_u16()
    valnorm=val/65535*99
    segment7.number=int(valnorm)
    sleep(0.2)

BOOTSELLED1239USBRaspberryPiPico©2020RP2-8020/21P64M15.00TTT