NXT Ultrasonic Sensor
-
class UltrasonicSensor(port)
LEGO® MINDSTORMS® NXT Ultrasonic Sensor.
- Parameters:
port (Port) – Port to which the sensor is connected.
-
await distance() → int: mm
Measures the distance between the sensor and an object using
ultrasonic sound waves.
- Returns:
Measured distance.