touchSensor
Connection to touch sensor
Add-On Required: This feature requires the MATLAB Support Package for LEGO MINDSTORMS EV3 Hardware add-on.
Description
This object represents a connection to an EV3 Touch Sensor (item number 45507). To
check whether an item is pressing the front of the sensor, use this object with the readTouch
function.
Creation
Description
creates a connection to a touch sensor.mytouchsensor
= touchSensor(myev3
)
If multiple touch sensors are attached to the EV3 brick, this function chooses the sensor that is attached to the EV3 input port with the lowest number.
creates a connection to a touch sensor that uses a specific EV3 input port defined by the
InputPort
property.mytouchsensor
= touchSensor(myev3
,inputport)
Input Arguments
Output Arguments
Properties
Object Functions
readTouch | Read touch sensor value |