2 Answers
Best Answer
Hi.
You can do as follows:
import Touchpad from the machine module:
from machine import TouchPad
define a touchpin, for example
touchpin = TouchPad(Pin(4))
read the value on that pin:
touchpin.read()
I hope this helps.
Regards,
Sara