Files
pybricks-api/pybricks/nxtdevices.py
T

24 lines
504 B
Python

"""Use LEGO® MINDSTORMS® NXT motors and sensors with the EV3 brick."""
class TouchSensor():
"""LEGO® MINDSTORMS® NXT Touch Sensor."""
def __init__(self, port):
"""
Arguments:
port (Port): Port to which the sensor is connected.
"""
pass
def pressed(self):
"""Check if the sensor is pressed.
Returns:
bool: ``True`` if the sensor is pressed, ``False`` if it is
not pressed.
"""
pass