Turn on a motor.

Example

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

Notes

You can select a motor option 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 on, you need a LEGO WeDo2 motor connected to your computer via a LEGO WeDo2 hub.