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)
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)