thinkyhead

M150 - Set RGB(W) Color

lcd Set the color of the RGB(W) LED, backlight, or LED strip. BLINKM|RGB_LED|RGBW_LED|NEOPIXEL_LED|PCA9632

Description

If you have an RGB(W) light, either as part of a controller or installed separately, the M150 command can be used to set its color.

Notes

Requires BLINKM, RGB_LED, RGBW_LED, NEOPIXEL_LED or PCA9632.

Usage

M150 [B<intensity>] [I<index>] [P<intensity>] [R<intensity>] [U<intensity>] [W<intensity>]

Parameters

[B<intensity>]

Blue component from 0 to 255

[I<index>]

Index from 0 to n (Requires NEOPIXEL_LED)

[P<intensity>]

Brightness from 0 to 255 (Requires NEOPIXEL_LED)

[R<intensity>]

Red component from 0 to 255

[U<intensity>]

Green component from 0 to 255

[W<intensity>]

White component from 0 to 255 (RGBW_LED or NEOPIXEL_LED only)

Examples

Set Leds to blue brightness 30

M150 B30

Set Neopixel 0 to red brightness 100

M150 R100 I0

Set Neopixel 1 to green brightness 45

M150 U45 I1