Code: Select all
from machine import Pin, ADC
x = ADC(Pin(36))
y = ADC(Pin(39))
x.atten(machine.ADC.ATTN_11DB)
y.atten(machine.ADC.ATTN_11DB)
while True:
print(x.read(), y.read())
time.sleep(1)
not move 2691 2726
move left 0 2722
move up 2721 0
move right 4095 4095
move down 4095 4095
I got wrong value when move right and move down do I miss something ?
Thank You