LEGO® Powered UP App Sensor blocks explained

Start when the color matches

Start coding strip when the sensor detects the preset color

Execute when the color matches

Execute portion of the coding strip when the sensor detects the preset color

Report color

Output color value that the sensor is detecting

Report brightness

Output brightness value that the sensor is detecting. Values range from 1 to 10, where 10 is the brightest, and 1 is the darkest

Report distance

Output distance value that the sensor is detecting. Values range from 1 to 10, where 10 is the farthest, and 1 is the closest

Start when the distance value matches

Start coding strip when the sensor detects the preset distance

Execute when the distance matches

Execute portion of the coding strip when the sensor detects the preset distance

Start when the move hub position matches

Start coding strip when the move hub is in the preset position

Execute when the move hub position matches

Execute portion of coding strip when the move hub is in the preset position

Report move hub position

Report move hub position. Reporter output is an icon, indicating move hub position

Report move hub tilt angle X axis

Report the move hub tilt angle in a horizontal plane. Reporter output is number range from -90 to 90

Report move hub tilt angle Y axis

Report the move hub tilt angle in a vertical plane. Reporter output is number range from -90 to 90

Report hub tilt angle

Report hub tilt angle. Works with hubs that have a built-in gyro. Reporter output is number range from -90 to 90

Report hub tilt value

Report hub tilt value. Works with hubs that have a built-in gyro. Reporter output is number

Report control device tilt angle x-axis

Report control device (phone or tablet) tilt angle in a horizontal plane

Report control device tilt angle y-axis

Report control device (phone or tablet) tilt angle in a vertical plane.

Report handset button press

Report handset button press.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *