Turn a motor on for a specified number of seconds.

Example

Run a specific motor for 1 second when the right or left arrow key is pressed.

Notes

You can select a motor from the dropdown menu. The 'motor' option turns on any motors on the WeDo2 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 for, you need a LEGO WeDo2 motor connected to your computer via a LEGO WeDo2 hub.