tft.fill_rectangle(0, 0, tft.width, tft.height, BACKGROUND)
v = 0
for i in range(7):
    v += 0.5
    tft.set_pos(0, 198 - 32 * i)
    tft.print(str(v))

tft.set_pos(0, 0)
tft.set_font(tt14)
# tft.print('hola bola')
scope = Scope(tft, gfx)
# gfx.line(0, 0, 319, 239, color565(255, 0, 0))
# gfx.circle(60, 120, 50, color565(255, 255, 0))
# draw_circle(180, 120, 50, color565(0, 255, 0))
scope.draw_axis()
# for i in range(50):
#     gfx.line(
#         urandom.randint(0, 320),
#         urandom.randint(0, 240),
#         urandom.randint(0, 320),
#         urandom.randint(0, 240),
#         color565(255, 255, 0)
#     )

# utime.sleep(2)
# power.value(0)
led.value(0)

volt = adc.read_u16() * k
y = int(230 - volt / 3.3 * 230)