import board
import pwmio
import time
import analogio
#I need a library
servo = pwmio.PWMOut(board.GP1, frequency = 50)
pot = analogio.AnalogIn(board.GP26)
while True:
var = pot.value
print(var)
servo.duty_cycle = var
time.sleep(0.1)