Turn off a motor.

Example

When the space key is pressed, the motor will turn on, the script will wait for 1 second, then the motor will turn off.

Notes

You can select a LEGO WeDo motor from the dropdown menu. Select 'motor' to turn on any motors connected to the WeDo hub. To control two motors separately, you can use 'motor A' and 'motor B'. Note: LEGO recommends only connecting one motor to the hub to limit power consumption.

To use turn off, you need a LEGO WeDo2 motor connected to your computer via a LEGO WeDo2 hub.