LED#

Introduction#

The LED Bumper can detect when it is pressed and can change its color or pattern to provide visual feedback.

Below is a list of all available blocks:

set LED color#

The set LED color block sets the color of the LED Bumper.

  set [LEDBumper1 v] to [red v]

Parameters

Description

LED

The selected LED Bumper to change the color of, configured in the Devices window.

color

The color to set the LED Bumper to:

  • red
  • green
  • off

Example

Example coming soon!

set LED brightness#

The set LED brightness block sets the brightness of the LED Bumper.

  set [LEDBumper1 v] brightness to (50) %

Parameters

Description

LED

The selected LED Bumper to change the brightness of, configured in the Devices window.

brightness

The new brightness to set the LED Bumper to from 0% to 100%.

Example

Example coming soon!

bumper pressed?#

The bumper pressed? block returns a Boolean indicating whether or not the LED Bumper was pressed.

  • True – The LED Bumper was pressed.

  • False – The LED Bumper was not pressed.

  <[LEDBumper1 v] pressed?>

Parameters

Description

LED

The selected LED Bumper to check, configured in the Devices window.

Example

Example coming soon!