Main Content
readTouch
Read touch sensor value
Add-On Required: This feature requires the MATLAB Support Package for LEGO MINDSTORMS EV3 Hardware add-on.
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.