DistanceSensor ============== .. image:: images/45604_prod_TECHNIC_Distance_Sensor_01_200.png :width: 200 :alt: The LEGO Distance Sensor |location_link| .. |location_link| raw:: html LEGO Distance Sensor 45604 |location_link2| .. |location_link2| raw:: html BrickLink item The LEGO® Education SPIKE™ Distance Sensor behaves like a conventional ultrasonic range finder but also has four LEDs that can be used to create the "eyes" of a robot. Each LED can be controlled individually. .. autoclass:: buildhat.DistanceSensor :members: :inherited-members: Example ------- .. literalinclude:: distance.py