Distance
distance :: wedo
Category LEGO Education WeDo 2.0
Type Reporter
Introduced in 3.0
Not to be confused with Distance to () (block).

The Distance block is a LEGO Education WeDo 2.0 block and a reporter block. The block reports the distance sensor value of the robot.

This block can only be used with a LEGO Education WeDo Robotics Kit.

Example Uses

  • Detecting motion
wait until <(distance::wedo) < (5)>
say [Intruder!]

History

In Scratch 1.4, the distance value was accessed in the () Sensor Value block.

See Also