Connection to touch sensor
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.
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)
readTouch | Read touch sensor value |