Skip to content

Lights

Blocks for controlling LEDs or any onboard lighting effects.

Set Bottom Flash LED Brightness

Block

50Set Bottom Flash LED Brightness %
0Set Bottom Flash LED Brightness %

Description

Sets how bright the bottom flash LED should shine.

Params

  • BRIGHTNESS: Number - The brightness level, usually between 0 (off) and 100 (full brightness).

Set RGB LED Color

Block

Set RGB Color
Set RGB Color
Set RGB Color
Set RGB Color

Description

Changes all RGB LEDs to the selected color.

Params

  • COLOR: Colour - The color you want to show on the LEDs.

Set RGB LED Color By Index

Block

2Set LED #RGB Color

Description

Changes the color of one specific LED by its number.

Params

  • INDEX: Number - The LED number you want to change.
  • COLOR: Colour - The color to set for that LED.

Set RGB LED Brightness

Block

50Set RGB LEDs Brightness %

Description

Adjusts how bright all RGB LEDs are.

Params

  • BRIGHTNESS: Number - The brightness level, usually between 0 (off) and 100 (full brightness).

Set RGB LED Mode

Block

Set RGB LEDs ModeAuto
Set RGB LEDs ModeManual

Description

Sets the LED mode to automatic or manual control.

Params

  • MODE: Dropdown - Choose ‘Auto’ for automatic LED control or ‘Manual’ to set colors yourself.
    • Auto
    • Manual

Colour Picker

Block

Description

Choose a colour from the palette.

Params

  • COLOUR: Color

Colour Random

Block

random colour

Description

Choose a colour at random.

Colour RGB

Block

colour with redgreenblue

Description

Create a colour with the specified amount of red, green, and blue. All values must be between 0 and 100.

Params

  • RED: Number
  • GREEN: Number
  • BLUE: Number

Colour Blend

Block

blend colour 1colour 2ratio

Description

Blends two colours together with a given ratio (0.0 - 1.0).

Params

  • COLOUR1: Colour
  • COLOUR2: Colour
  • RATIO: Number