readTouch
Read touch sensor value
Description
reads whether an object is pressing the front of the touch sensor, and returns the
status as a logical value:pressed
= readTouch(mytouchsensor
)
0
means not pressed.1
means pressed.