PoweredUp ProgrammingBlocks
PoweredUp ProgrammingBlocks
Programming blocks come in a range of types and colors to tell you what type of block
you’re using.
Here are some examples of commonly used programming blocks. If you’re not sure what a
block does and it’s not listed here, why not try it out in the app? Part of the fun of LEGO
Powered Up is in the experimentation, play, and learning.
This block tells the program to wait for the color sensor to detect the
color chosen in the block.
Wait for the distance measured by the Sensor to be less than the
specified distance.
Get current force measured by the sensor and affect connected block
functions.
Just for WeDo sensors. Get current WeDo sensor tilt angle on the Y
axis (-90/90).
Just for WeDo sensors. Get current WeDo sensor tilt angle on the X
axis (-90/90).
Uses the X axis tilt position of the smart device (left-right). 0 is the
central position.
Uses the Y axis tilt position of the smart device (forward to backward).
0 is around 30 degrees with the device screen facing you.
Removes power from the motor and will slowly stop the
motors.
Select a specific hub in the left slot and output the port used for
that hub in right slot.
Reads the number stored in the local variable.
Example: Returns true of both input values (left and right) are true,
and false otherwise.
Return the power of the left input powered with the right.
Divides left with right and gives the remainder from that
operation.
Reports the position (- 100 to 100) of the widget canvas' slider widget
with Channel-ID (1st parameter).
The further away the joystick is pulled from the center, the higher the
number will be. In the upper half of the joystick, the numbers reported
will be positive. In the lower half, they’ll be negative.