diff --git a/_configuration/configuration.md b/_configuration/configuration.md index 1703b7216..5f2dc2498 100644 --- a/_configuration/configuration.md +++ b/_configuration/configuration.md @@ -1979,7 +1979,7 @@ Adds the [`M150`](/docs/gcode/M150.html) command to set the LED (or LED strip) c LED Strips require a MOFSET Chip between PWM lines and LEDs, as the Arduino cannot handle the current the LEDs will require. Failure to follow this precaution can destroy your Arduino! {% endalert %} -#### Adafruit Neopixel LED Driver +#### Adafruit NeoPixel LED Driver ```cpp //#define NEOPIXEL_LED #if ENABLED(NEOPIXEL_LED) @@ -2366,7 +2366,7 @@ This feature allows you to digitally multiplex the fan output. The multiplexer i //#define CASE_LIGHT_MAX_PWM 128 // Limit pwm //#define CASE_LIGHT_MENU // Add Case Light options to the LCD menu //#define CASE_LIGHT_NO_BRIGHTNESS // Disable brightness control. Enable for non-PWM lighting. - //#define CASE_LIGHT_USE_NEOPIXEL // Use Neopixel LED as case light, requires NEOPIXEL_LED. + //#define CASE_LIGHT_USE_NEOPIXEL // Use NeoPixel LED as case light, requires NEOPIXEL_LED. #if ENABLED(CASE_LIGHT_USE_NEOPIXEL) #define CASE_LIGHT_NEOPIXEL_COLOR { 255, 255, 255, 255 } // { Red, Green, Blue, White } #endif diff --git a/_gcode/M150.md b/_gcode/M150.md index 3d123b71e..0dca23dee 100644 --- a/_gcode/M150.md +++ b/_gcode/M150.md @@ -47,6 +47,7 @@ parameters: - tag: P optional: true + requires: NEOPIXEL_LED description: Brightness from 0 to 255 (Requires `NEOPIXEL_LED`) values: - @@ -56,22 +57,36 @@ parameters: tag: I since: 2.0.6 optional: true - description: Index from 0 to n (Requires `NEOPIXEL_LED`) + requires: NEOPIXEL_LED + description: NeoPixel pixel index (0 .. pixels-1) (Requires `NEOPIXEL_LED`) values: - - tag: index + tag: pixel + type: int + - + tag: S + since: 2.0.6.1 + optional: true + requires: NEOPIXEL2_SEPARATE + description: NeoPixel strip index (0 or 1) (Requires `NEOPIXEL2_SEPARATE`) + values: + - + tag: strip type: int examples: - - pre: Set Leds to blue brightness 30 + pre: Set LEDs to blue with brightness 30 code: M150 B30 - - pre: Set Neopixel 0 to red brightness 100 + pre: Set NeoPixel 0 to red with brightness 100 code: M150 R100 I0 - - pre: Set Neopixel 1 to green brightness 45 + pre: Set NeoPixel 1 to green with brightness 45 code: M150 U45 I1 + - + pre: Set the second NeoPixel strip full white + code: M150 W255 S1 --- diff --git a/_gcode/M256.md b/_gcode/M256.md index e19ebdd2f..db2c23116 100644 --- a/_gcode/M256.md +++ b/_gcode/M256.md @@ -10,7 +10,7 @@ since: 2.0.9.2 codes: [ M256 ] -notes: Requires an LCD controller with software-controlled brightness. This may be extended in the future to work with a Neopixel or RGB LED backlight. +notes: Requires an LCD controller with software-controlled brightness. This may be extended in the future to work with a NeoPixel or RGB LED backlight. parameters: -