# from machine import PWM,Pin
# import utime
# load=PWM(Pin(0))
# load.freq(50)
# min_ton=int(0.05*65535)
# max_ton=int(0.10*65535)
# for i in range(min_ton,max_ton+1,10):
# load.duty_u16(i)
# utime.sleep(0.02)
# for i in range(max_ton,min_ton-1,-10):
# load.duty_u16(i)
# utime.sleep(0.02)
# from machine import Pin
# import time
# segments = [Pin(i, Pin.OUT) for i in range(7)]
# numbers = [
# [1,1,1,1,1,1,0], # 0
# [0,1,1,0,0,0,0], # 1
# [1,1,0,1,1,0,1], # 2
# [1,1,1,1,0,0,1], # 3
# [0,1,1,0,0,1,1], # 4
# [1,0,1,1,0,1,1], # 5
# [1,0,1,1,1,1,1], # 6
# [1,1,1,0,0,0,0], # 7
# [1,1,1,1,1,1,1], # 8
# [1,1,1,1,0,1,1] # 9
# ]
# def display_number(num):
# """Display a number on the 7-segment display."""
# for i in range(7):
# segments[i].value(1-numbers[num][i])
# while True:
# for num in range(10):
# display_number(num)
# time.sleep(1)