LEGO 【MINDSTORMS】EV3
Touch Block
Touch Block - Overview -
The Touch Sensor block gets data from the Touch Sensor. You can test whether the Touch Sensor is Pressed, Released, or Bumped, and get a Logic (True or False) output.
*The Touch Sensor block outputs data with a Data Wire.
Use the Port Selector on the top of the block to make sure that the sensor port number (1, 2, 3, or 4) matches the port on the EV3 Brick that the Touch Sensor is connected to.
Use the Mode Selector to select the mode for the block. The Inputs and Outputs available will change depending on the mode.