(Redirected from Distance (Lego WeDo value))

Distance
distance::wedo
Category LEGO WeDo
Type Reporter
Introduced in 1.4

The Distance block is a LEGO WeDo 2.0 Extension 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