import machine
from machine import ADC,Pin
horizontal = ADC(Pin(2))
vertical = ADC(Pin(4))
while True:
valHor = horizontal.read()
valVer = vertical.read()
print("H:"+str(valHor)+" V:"+str(valVer))
import machine
from machine import ADC,Pin
horizontal = ADC(Pin(2))
vertical = ADC(Pin(4))
while True:
valHor = horizontal.read()
valVer = vertical.read()
print("H:"+str(valHor)+" V:"+str(valVer))