Skip to content

EV3 Touch Sensor

Non-Visible component
Category Requires Version
LEGO® MINDSTORMS® > EV3 API 21, Android 5.0 Lollipop 1

Overview

A component that provides a high-level interface to a touch sensor on a LEGO MINDSTORMS EV3 robot.

Events

Pressed

Called when the touch sensor is pressed.

Released

Called when the touch sensor is pressed.

Methods

Is Pressed

Returns: Boolean

Returns true if the touch sensor is pressed.

Properties

Bluetooth Client

Component ➖ Read Write - Designer Blocks

The BluetoothClient component that should be used for communication.

Pressed Event Enabled

Boolean Default: False ➖ Read Write - Designer Blocks

Specifies whether the Pressed event should fire when the touch sensor ispressed.

Released Event Enabled

Boolean Default: False ➖ Read Write - Designer Blocks

Whether the Released event should fire when the touch sensor is released.

Sensor Port

Text Default: 1 ➖ Write - Designer

The sensor port that the sensor is connected to.


Last update: November 9, 2022