Skip to content

NXT Touch Sensor

Non-Visible component
Category Requires Version
LEGO® MINDSTORMS® > NXT API 19, Android 4.4 - 4.4.4 KitKat 1

Overview

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

Events

Pressed

Touch sensor has been pressed.

Released

Touch sensor has been released.

Methods

Is Pressed

Returns: Boolean

Returns true if the touch sensor is pressed.

Properties

Bluetooth Client

Component ➖ Write - Designer

The BluetoothClient component that should be used for communication.

Pressed Event Enabled

Boolean Default: False ➖ Read Write - Designer Blocks

Whether the Pressed event should fire when the touch sensor is pressed.

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: January 27, 2020