💡
WS281x LED Status
Github RepositoryPlugin ListingSponsor
0.8.x
0.8.x
  • Home of the docs
  • Guides
    • Setup Guide
      • Supported Hardware
      • Wiring your LEDs
      • SPI Setup
      • Initial Configuration
    • Setup in Docker
    • OctoLapse Timelapse Flash
    • Get Help Guide
  • Configuration
    • LED Strip Configuration
    • Printing Effects
    • Progress Effects
    • Features
    • Custom Triggers
  • 3rd Party Apps and Integrations
  • Utilities
  • Troubleshooting Guide
  • Documentation
    • Host @ Commands
    • M150 Intercept
    • REST API
Powered by GitBook
On this page

Was this helpful?

Edit on GitHub
Export as PDF
  1. Documentation

M150 Intercept

WS281x LED Status will intercept M150 commands to control the LEDs.

PreviousHost @ CommandsNextREST API

Last updated 3 years ago

Was this helpful?

Commands should be formatted as such:

M150 [P{intensity}] [R{intensity}] [G{intensity}] [B{intensity}] [W{intensity}]

Parameter
Explanation

P

Brightness, max 255. If not included, defaults to maximum brightness in the settings

R

Red intensity, max 255.

G

Green intensity, max 255. Can also be U for Marlin compatibility.

B

Blue intensity, max 255.

W

White intensity, max 255.

All of the parameters are optional, and can be included in any order. If an option is not included, its value is 0 - as a result sending an empty M150 command will turn the LEDs off.

It's not recommended to send an empty M150, and instead use to turn the LEDs on and off.

Examples:

M150 R255 G255  # Sets LEDs to yellow
M150 G238 B255  # Sets to light-ish blue
M150 W100       # Sets to white, at 100 intensity
M150 R255 P200  # Sets LEDs to red, at 200 brightness

What does the W parameter do?

On a standard RGB WS281x strip, the W parameter sets an equal value of R, G and B on the LEDs.

If you have an RGBW strip and enable the 'Use dedicated white' setting, the W parameter will control the white LEDs only.

Sending any of R, G or B with the command takes priority over the W.

@ commands