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