NXT Touch Sensor
-
class TouchSensor(port)
LEGO® MINDSTORMS® NXT Touch Sensor.
- Parameters:
port (Port) – Port to which the sensor is connected.
-
pressed() → bool
Checks if the sensor is pressed.
- Returns:
True if the sensor is pressed, False if it is
not pressed.