Turn () On
turn (motor v) on
Category LEGO Education WeDo 2.0
Type Stack
Introduced in 1.4

The turn () on block is a stack block and a LEGO Education WeDo 2.0 block. It activates a LEGO WeDo motor indefinitely, until it is manually turned off with the turn () off block or until a timer is added with the turn () on for () seconds block.

This block was titled "motor on" in Scratch 1.4, before being renamed to "turn motor on" in Scratch 2.0, then to its current name in Scratch 3.0.

Example Uses

Some common uses are:

  • Making a vehicle move forever
when green flag clicked
turn (motor v) on
  • A fan that alternates whether it is on or off
when [space v] key pressed
turn (motor v) on
wait until <not<key (space v) pressed?>>
wait until <key (space v) pressed?>
turn (motor v) off
wait until <not< key (space v) pressed?>>
  • Continuously moving motors
when [space v] key pressed
turn (motor v) on
wait until <not<key (space v) pressed?>>
turn (motor v) off

See Also

Cookies help us deliver our services. By using our services, you agree to our use of cookies.