Apply some formatting
This commit is contained in:
@ -28,23 +28,22 @@
|
||||
#include "../../../feature/leds/leds.h"
|
||||
|
||||
/**
|
||||
* M150: Set Status LED Color - Use R-U-B-W for R-G-B-W
|
||||
* and Brightness - Use P (for NEOPIXEL only)
|
||||
*
|
||||
* Always sets all 3 or 4 components. If a component is left out, set to 0.
|
||||
* If brightness is left out, no value changed
|
||||
*
|
||||
* Examples:
|
||||
*
|
||||
* M150 R255 ; Turn LED red
|
||||
* M150 R255 U127 ; Turn LED orange (PWM only)
|
||||
* M150 ; Turn LED off
|
||||
* M150 R U B ; Turn LED white
|
||||
* M150 W ; Turn LED white using a white LED
|
||||
* M150 P127 ; Set LED 50% brightness
|
||||
* M150 P ; Set LED full brightness
|
||||
*/
|
||||
|
||||
* M150: Set Status LED Color - Use R-U-B-W for R-G-B-W
|
||||
* and Brightness - Use P (for NEOPIXEL only)
|
||||
*
|
||||
* Always sets all 3 or 4 components. If a component is left out, set to 0.
|
||||
* If brightness is left out, no value changed
|
||||
*
|
||||
* Examples:
|
||||
*
|
||||
* M150 R255 ; Turn LED red
|
||||
* M150 R255 U127 ; Turn LED orange (PWM only)
|
||||
* M150 ; Turn LED off
|
||||
* M150 R U B ; Turn LED white
|
||||
* M150 W ; Turn LED white using a white LED
|
||||
* M150 P127 ; Set LED 50% brightness
|
||||
* M150 P ; Set LED full brightness
|
||||
*/
|
||||
void GcodeSuite::M150() {
|
||||
set_led_color(
|
||||
parser.seen('R') ? (parser.has_value() ? parser.value_byte() : 255) : 0,
|
||||
|
Reference in New Issue
Block a user