from machine inport TouchPad, Pin
from time import sleep_ms
t = TouchPad(Pin(4))
led = Pin(21,Pin.OUT)
while True:
print(t.read())
if t.read() > 500:
led.on()
else:
led.off()
sleep_ms(50)from machine inport TouchPad, Pin
from time import sleep_ms
t = TouchPad(Pin(4))
led = Pin(21,Pin.OUT)
while True:
print(t.read())
if t.read() > 500:
led.on()
else:
led.off()
sleep_ms(50)