WeDo2.0 Block Programming
WeDo2.0 Block Programming
0
®
Programming Blocks
Flow Blocks Motor Blocks
Start Block Motor This Way Block
When used, always placed at the beginning Sets the motor to turn the axle in the
of a program string. Press on it to start the direction shown and starts the motor.
program string you have written. Tap on the block to quickly change the
direction of the rotation.
Start On Message Block
When used, always placed at the beginning Motor That Way Block
of a program string. Sets the motor to turn the axle in the
It will wait for the correct message and then direction shown and starts the motor.
start the program string you have written. Tap on the block to quickly change the
direction of the rotation.
Send Message
Sends a message to the Programming Motor Power Block
Canvas. Every Start On Message Block Sets the motor power to the specified level
with the same message will be activated. and starts the motor. The level can be set
The message can be in the form of text or with a numeric input from 0 to 10.
numbers.
Motor On For Block
Wait For Starts the motor for a chosen amount of time
Use this block to tell the program to wait for specified in seconds. The amount of time
something to happen. It can wait for a set can be set with a numeric input, using whole
amount of time or for input from a sensor. or decimal numbers.
This block always requires input in order to
work properly. Motor Off Block
Stops any movement of the motor.
Repeat Block
Use this block to repeat actions.
Blocks placed inside the Repeat Block will be LED Blocks
looped. This can also be called the “loop
block.” The loop can be repeated forever, Light Block
for a certain amount of time, or until Lights up the LED on the Smarthub in a
something happens. specific color. The color can be changed with
a numeric input between 0 and 10.
Start On Key Press Block
When used, always placed at the Sound Blocks
beginning of a program string. Press on it,
or on the correct letter on the keyboard Play Sound
to start the program string you have Plays a sound. The sound is chosen from
written. All of the program strings with the a list available within the software.
same letter will start at the same time. You can choose a sound using a numeric
To change the letter of activation, long input. Choose sound number 0 to play a
press on the block to get access to the sound that you have recorded yourself.
keyboard.
Display Blocks
Display Background
Use this block to display an image chosen
from a list available within the software.
You can set an image using a numeric
input.
LEGO and the LEGO logo are trademarks of the LEGO Group. ©2017 The LEGO Group.
Display Block Shake
Use this block to open the display area on Inputs the Tilt Sensor mode “Shake” to a
the software screen. Numbers or text will block.
appear in the display area.
Tilt Down
Add to Display Inputs the Tilt Sensor mode “Tilt Down” to a
Adds a quantity to the number currently block.
shown on the display. Enter the number
you wish to add. Tap on the block to Tilt Up
change the mathematical operation. Inputs the Tilt Sensor mode “Tilt Up” to a
block.
Subtract from Display
Subtracts a quantity from the number Tilt That Way
shown on the display. Enter the number Inputs the Tilt Sensor mode “Tilt That Way” to
you wish to subtract. Tap on the block to a block.
change the mathematical operation.
Tilt This Way
Multiply Display Inputs the Tilt Sensor mode “Tilt This Way” to
Multiplies the number shown on the display a block.
by a specified number.
Tilt Sensor No Tilt
Enter the number you wish to multiply by.
Inputs the Tilt Sensor mode “No Tilt”
Tap on the block to change the mathematical
(or horizontal position) to a block.
operation.
LEGO and the LEGO logo are trademarks of the LEGO Group. ©2017 The LEGO Group.