LEGO BOOST
The LEGO BOOST extension controls a LEGO BOOST Move Hub, including its motors, color sensor, and tilt sensing. It is built in and compatible with Scratch.
Load it from Add Extension and choose LEGO BOOST.
Requirements
BOOST connects over Bluetooth, so you need:
- A computer with Bluetooth and a supported browser.
- Scratch Link running to bridge Bluetooth to the browser.
- The BOOST Move Hub paired with your computer.
Adding the extension opens a connection window to pair the hub.
Blocks
turn motor [motor] for [duration] seconds
Runs a motor for a set time.
turn motor [motor] for [rotation] rotations
Runs a motor for a number of rotations.
turn motor [motor] on / turn motor [motor] off
Starts or stops a motor.
set motor [motor] speed to [power] %
Sets motor speed from 0 to 100 percent.
set motor [motor] direction [direction]
Sets a motor to run this way, that way, or reverse.
motor [motor] position
A reporter for a motor's rotation position.
when [color] brick seen / seeing [color] brick?
React to the color sensor detecting a colored brick, as a hat block or a boolean.
when tilted [direction] / tilt angle [direction]
React to tilting the hub, or read its tilt angle.
set light color to [hue]
Sets the color of the hub's built-in light.