Browse Source

Different NEOPIXEL types

Same as #7728 but for 2.0.x,
Lot of cleanup and remove references in whole code to other "LED files" than leds.h. Now will be much easier to add next drivers/libraries. e.g. FastLED. But bad news, currently FastLED is suporting only RGB devices (no RGBW)
Slawomir Ciunczyk 6 years ago
parent
commit
a11e6a1022
49 changed files with 646 additions and 300 deletions
  1. 15
    6
      Marlin/Configuration.h
  2. 1
    1
      Marlin/src/Marlin.cpp
  3. 15
    6
      Marlin/src/config/default/Configuration.h
  4. 15
    6
      Marlin/src/config/examples/AlephObjects/TAZ4/Configuration.h
  5. 15
    6
      Marlin/src/config/examples/AliExpress/CL-260/Configuration.h
  6. 15
    6
      Marlin/src/config/examples/Anet/A6/Configuration.h
  7. 15
    6
      Marlin/src/config/examples/Anet/A8/Configuration.h
  8. 15
    6
      Marlin/src/config/examples/BQ/Hephestos/Configuration.h
  9. 15
    6
      Marlin/src/config/examples/BQ/Hephestos_2/Configuration.h
  10. 15
    6
      Marlin/src/config/examples/BQ/WITBOX/Configuration.h
  11. 15
    6
      Marlin/src/config/examples/Cartesio/Configuration.h
  12. 15
    6
      Marlin/src/config/examples/Creality/CR-10/Configuration.h
  13. 15
    6
      Marlin/src/config/examples/Felix/Configuration.h
  14. 15
    6
      Marlin/src/config/examples/Felix/DUAL/Configuration.h
  15. 15
    6
      Marlin/src/config/examples/Folger Tech/i3-2020/Configuration.h
  16. 15
    6
      Marlin/src/config/examples/Geeetech/GT2560/Configuration.h
  17. 15
    6
      Marlin/src/config/examples/Geeetech/I3_Pro_X-GT2560/Configuration.h
  18. 15
    6
      Marlin/src/config/examples/Infitary/i3-M508/Configuration.h
  19. 15
    6
      Marlin/src/config/examples/Malyan/M150/Configuration.h
  20. 15
    6
      Marlin/src/config/examples/RepRapWorld/Megatronics/Configuration.h
  21. 15
    6
      Marlin/src/config/examples/RigidBot/Configuration.h
  22. 15
    6
      Marlin/src/config/examples/SCARA/Configuration.h
  23. 19
    10
      Marlin/src/config/examples/Sanguinololu/Configuration.h
  24. 15
    6
      Marlin/src/config/examples/TinyBoy2/Configuration.h
  25. 15
    6
      Marlin/src/config/examples/Velleman/K8200/Configuration.h
  26. 15
    6
      Marlin/src/config/examples/Velleman/K8400/Configuration.h
  27. 15
    6
      Marlin/src/config/examples/Velleman/K8400/Dual-head/Configuration.h
  28. 15
    6
      Marlin/src/config/examples/adafruit/ST7565/Configuration.h
  29. 15
    6
      Marlin/src/config/examples/delta/FLSUN/auto_calibrate/Configuration.h
  30. 15
    6
      Marlin/src/config/examples/delta/FLSUN/kossel_mini/Configuration.h
  31. 15
    6
      Marlin/src/config/examples/delta/generic/Configuration.h
  32. 15
    6
      Marlin/src/config/examples/delta/kossel_mini/Configuration.h
  33. 15
    6
      Marlin/src/config/examples/delta/kossel_pro/Configuration.h
  34. 15
    6
      Marlin/src/config/examples/delta/kossel_xl/Configuration.h
  35. 15
    6
      Marlin/src/config/examples/gCreate/gMax1.5+/Configuration.h
  36. 15
    6
      Marlin/src/config/examples/makibox/Configuration.h
  37. 9
    6
      Marlin/src/config/examples/stm32f103ret6/Configuration.h
  38. 15
    6
      Marlin/src/config/examples/tvrrug/Round2/Configuration.h
  39. 15
    6
      Marlin/src/config/examples/wt150/Configuration.h
  40. 7
    10
      Marlin/src/feature/leds/leds.cpp
  41. 22
    8
      Marlin/src/feature/leds/leds.h
  42. 11
    10
      Marlin/src/feature/leds/neopixel.cpp
  43. 1
    1
      Marlin/src/feature/leds/neopixel.h
  44. 20
    17
      Marlin/src/gcode/feature/leds/M150.cpp
  45. 1
    1
      Marlin/src/gcode/gcode.h
  46. 7
    10
      Marlin/src/gcode/temperature/M104_M109.cpp
  47. 1
    5
      Marlin/src/gcode/temperature/M140_M190.cpp
  48. 1
    1
      Marlin/src/inc/Conditionals_LCD.h
  49. 6
    4
      Marlin/src/inc/SanityCheck.h

+ 15
- 6
Marlin/Configuration.h View File

@@ -1588,14 +1588,20 @@
1588 1588
  * Adds the M150 command to set the LED (or LED strip) color.
1589 1589
  * If pins are PWM capable (e.g., 4, 5, 6, 11) then a range of
1590 1590
  * luminance values can be set from 0 to 255.
1591
+ * For Neopixel LED overall brightness parameters is also available
1591 1592
  *
1592 1593
  * *** CAUTION ***
1593 1594
  *  LED Strips require a MOFSET Chip between PWM lines and LEDs,
1594 1595
  *  as the Arduino cannot handle the current the LEDs will require.
1595 1596
  *  Failure to follow this precaution can destroy your Arduino!
1597
+ *  Neopixel LED is 5V powered, but linear 5V regulator on Arduino
1598
+ *  cannot handle the current, separate 5V power supply must be used
1596 1599
  * *** CAUTION ***
1597 1600
  *
1601
+ * LED type. This options are mutualy exclusive. Uncomment only one.
1602
+ *
1598 1603
  */
1604
+
1599 1605
 //#define RGB_LED
1600 1606
 //#define RGBW_LED
1601 1607
 #if ENABLED(RGB_LED) || ENABLED(RGBW_LED)
@@ -1606,11 +1612,14 @@
1606 1612
 #endif
1607 1613
 
1608 1614
 // Support for Adafruit Neopixel LED driver
1609
-//#define NEOPIXEL_RGBW_LED
1610
-#if ENABLED(NEOPIXEL_RGBW_LED)
1611
-  #define NEOPIXEL_PIN    4       // D4 (EXP2-5 on Printrboard)
1612
-  #define NEOPIXEL_PIXELS 3
1613
-  //#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
1615
+//#define NEOPIXEL_LED
1616
+#if ENABLED(NEOPIXEL_LED)
1617
+  #define NEOPIXEL_TYPE   NEO_GRB  // NEO_GRBW / NEO_GRB - four/three channel driver type (definned in Adafruit_NeoPixel.h)
1618
+  #define NEOPIXEL_PIN    4        // LED driving pin on motherboard 4 => D4 (EXP2-5 on Printrboard) / 30 => PC7 (EXP3-13 on Rumba)
1619
+  #define NEOPIXEL_PIXELS 30       // Number of LEDs on strip
1620
+  #define NEOPIXEL_IS_SEQUENTIAL   // Sequential display for temperature change - LED by LED. Comment out for all LEDs to change at once.
1621
+  #define NEOPIXEL_BRIGHTNESS 255  // Initial brightness 0-255
1622
+  //#define NEOPIXEL_STARTUP_TEST  // Cycle through colors at startup
1614 1623
 #endif
1615 1624
 
1616 1625
 /**
@@ -1624,7 +1633,7 @@
1624 1633
  *  - Change to green once print has finished
1625 1634
  *  - Turn off after the print has finished and the user has pushed a button
1626 1635
  */
1627
-#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
1636
+#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_LED)
1628 1637
   #define PRINTER_EVENT_LEDS
1629 1638
 #endif
1630 1639
 

+ 1
- 1
Marlin/src/Marlin.cpp View File

@@ -796,7 +796,7 @@ void setup() {
796 796
     OUT_WRITE(STAT_LED_BLUE_PIN, LOW); // turn it off
797 797
   #endif
798 798
 
799
-  #if ENABLED(NEOPIXEL_RGBW_LED)
799
+  #if ENABLED(NEOPIXEL_LED)
800 800
     SET_OUTPUT(NEOPIXEL_PIN);
801 801
     setup_neopixel();
802 802
   #endif

+ 15
- 6
Marlin/src/config/default/Configuration.h View File

@@ -1588,14 +1588,20 @@
1588 1588
  * Adds the M150 command to set the LED (or LED strip) color.
1589 1589
  * If pins are PWM capable (e.g., 4, 5, 6, 11) then a range of
1590 1590
  * luminance values can be set from 0 to 255.
1591
+ * For Neopixel LED overall brightness parameters is also available
1591 1592
  *
1592 1593
  * *** CAUTION ***
1593 1594
  *  LED Strips require a MOFSET Chip between PWM lines and LEDs,
1594 1595
  *  as the Arduino cannot handle the current the LEDs will require.
1595 1596
  *  Failure to follow this precaution can destroy your Arduino!
1597
+ *  Neopixel LED is 5V powered, but linear 5V regulator on Arduino
1598
+ *  cannot handle the current, separate 5V power supply must be used
1596 1599
  * *** CAUTION ***
1597 1600
  *
1601
+ * LED type. This options are mutualy exclusive. Uncomment only one.
1602
+ *
1598 1603
  */
1604
+
1599 1605
 //#define RGB_LED
1600 1606
 //#define RGBW_LED
1601 1607
 #if ENABLED(RGB_LED) || ENABLED(RGBW_LED)
@@ -1606,11 +1612,14 @@
1606 1612
 #endif
1607 1613
 
1608 1614
 // Support for Adafruit Neopixel LED driver
1609
-//#define NEOPIXEL_RGBW_LED
1610
-#if ENABLED(NEOPIXEL_RGBW_LED)
1611
-  #define NEOPIXEL_PIN    4       // D4 (EXP2-5 on Printrboard)
1612
-  #define NEOPIXEL_PIXELS 3
1613
-  //#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
1615
+//#define NEOPIXEL_LED
1616
+#if ENABLED(NEOPIXEL_LED)
1617
+  #define NEOPIXEL_TYPE   NEO_GRB  // NEO_GRBW / NEO_GRB - four/three channel driver type (definned in Adafruit_NeoPixel.h)
1618
+  #define NEOPIXEL_PIN    4        // LED driving pin on motherboard 4 => D4 (EXP2-5 on Printrboard) / 30 => PC7 (EXP3-13 on Rumba)
1619
+  #define NEOPIXEL_PIXELS 30       // Number of LEDs on strip
1620
+  #define NEOPIXEL_IS_SEQUENTIAL   // Sequential display for temperature change - LED by LED. Comment out for all LEDs to change at once.
1621
+  #define NEOPIXEL_BRIGHTNESS 255  // Initial brightness 0-255
1622
+  //#define NEOPIXEL_STARTUP_TEST  // Cycle through colors at startup
1614 1623
 #endif
1615 1624
 
1616 1625
 /**
@@ -1624,7 +1633,7 @@
1624 1633
  *  - Change to green once print has finished
1625 1634
  *  - Turn off after the print has finished and the user has pushed a button
1626 1635
  */
1627
-#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
1636
+#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_LED)
1628 1637
   #define PRINTER_EVENT_LEDS
1629 1638
 #endif
1630 1639
 

+ 15
- 6
Marlin/src/config/examples/AlephObjects/TAZ4/Configuration.h View File

@@ -1608,14 +1608,20 @@
1608 1608
  * Adds the M150 command to set the LED (or LED strip) color.
1609 1609
  * If pins are PWM capable (e.g., 4, 5, 6, 11) then a range of
1610 1610
  * luminance values can be set from 0 to 255.
1611
+ * For Neopixel LED overall brightness parameters is also available
1611 1612
  *
1612 1613
  * *** CAUTION ***
1613 1614
  *  LED Strips require a MOFSET Chip between PWM lines and LEDs,
1614 1615
  *  as the Arduino cannot handle the current the LEDs will require.
1615 1616
  *  Failure to follow this precaution can destroy your Arduino!
1617
+ *  Neopixel LED is 5V powered, but linear 5V regulator on Arduino
1618
+ *  cannot handle the current, separate 5V power supply must be used
1616 1619
  * *** CAUTION ***
1617 1620
  *
1621
+ * LED type. This options are mutualy exclusive. Uncomment only one.
1622
+ *
1618 1623
  */
1624
+
1619 1625
 //#define RGB_LED
1620 1626
 //#define RGBW_LED
1621 1627
 #if ENABLED(RGB_LED) || ENABLED(RGBW_LED)
@@ -1626,11 +1632,14 @@
1626 1632
 #endif
1627 1633
 
1628 1634
 // Support for Adafruit Neopixel LED driver
1629
-//#define NEOPIXEL_RGBW_LED
1630
-#if ENABLED(NEOPIXEL_RGBW_LED)
1631
-  #define NEOPIXEL_PIN    4       // D4 (EXP2-5 on Printrboard)
1632
-  #define NEOPIXEL_PIXELS 3
1633
-  //#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
1635
+//#define NEOPIXEL_LED
1636
+#if ENABLED(NEOPIXEL_LED)
1637
+  #define NEOPIXEL_TYPE   NEO_GRB  // NEO_GRBW / NEO_GRB - four/three channel driver type (definned in Adafruit_NeoPixel.h)
1638
+  #define NEOPIXEL_PIN    4        // LED driving pin on motherboard 4 => D4 (EXP2-5 on Printrboard) / 30 => PC7 (EXP3-13 on Rumba)
1639
+  #define NEOPIXEL_PIXELS 30       // Number of LEDs on strip
1640
+  #define NEOPIXEL_IS_SEQUENTIAL   // Sequential display for temperature change - LED by LED. Comment out for all LEDs to change at once.
1641
+  #define NEOPIXEL_BRIGHTNESS 255  // Initial brightness 0-255
1642
+  //#define NEOPIXEL_STARTUP_TEST  // Cycle through colors at startup
1634 1643
 #endif
1635 1644
 
1636 1645
 /**
@@ -1644,7 +1653,7 @@
1644 1653
  *  - Change to green once print has finished
1645 1654
  *  - Turn off after the print has finished and the user has pushed a button
1646 1655
  */
1647
-#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
1656
+#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_LED)
1648 1657
   #define PRINTER_EVENT_LEDS
1649 1658
 #endif
1650 1659
 

+ 15
- 6
Marlin/src/config/examples/AliExpress/CL-260/Configuration.h View File

@@ -1588,14 +1588,20 @@
1588 1588
  * Adds the M150 command to set the LED (or LED strip) color.
1589 1589
  * If pins are PWM capable (e.g., 4, 5, 6, 11) then a range of
1590 1590
  * luminance values can be set from 0 to 255.
1591
+ * For Neopixel LED overall brightness parameters is also available
1591 1592
  *
1592 1593
  * *** CAUTION ***
1593 1594
  *  LED Strips require a MOFSET Chip between PWM lines and LEDs,
1594 1595
  *  as the Arduino cannot handle the current the LEDs will require.
1595 1596
  *  Failure to follow this precaution can destroy your Arduino!
1597
+ *  Neopixel LED is 5V powered, but linear 5V regulator on Arduino
1598
+ *  cannot handle the current, separate 5V power supply must be used
1596 1599
  * *** CAUTION ***
1597 1600
  *
1601
+ * LED type. This options are mutualy exclusive. Uncomment only one.
1602
+ *
1598 1603
  */
1604
+
1599 1605
 //#define RGB_LED
1600 1606
 //#define RGBW_LED
1601 1607
 #if ENABLED(RGB_LED) || ENABLED(RGBW_LED)
@@ -1606,11 +1612,14 @@
1606 1612
 #endif
1607 1613
 
1608 1614
 // Support for Adafruit Neopixel LED driver
1609
-//#define NEOPIXEL_RGBW_LED
1610
-#if ENABLED(NEOPIXEL_RGBW_LED)
1611
-  #define NEOPIXEL_PIN    4       // D4 (EXP2-5 on Printrboard)
1612
-  #define NEOPIXEL_PIXELS 3
1613
-  //#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
1615
+//#define NEOPIXEL_LED
1616
+#if ENABLED(NEOPIXEL_LED)
1617
+  #define NEOPIXEL_TYPE   NEO_GRB  // NEO_GRBW / NEO_GRB - four/three channel driver type (definned in Adafruit_NeoPixel.h)
1618
+  #define NEOPIXEL_PIN    4        // LED driving pin on motherboard 4 => D4 (EXP2-5 on Printrboard) / 30 => PC7 (EXP3-13 on Rumba)
1619
+  #define NEOPIXEL_PIXELS 30       // Number of LEDs on strip
1620
+  #define NEOPIXEL_IS_SEQUENTIAL   // Sequential display for temperature change - LED by LED. Comment out for all LEDs to change at once.
1621
+  #define NEOPIXEL_BRIGHTNESS 255  // Initial brightness 0-255
1622
+  //#define NEOPIXEL_STARTUP_TEST  // Cycle through colors at startup
1614 1623
 #endif
1615 1624
 
1616 1625
 /**
@@ -1624,7 +1633,7 @@
1624 1633
  *  - Change to green once print has finished
1625 1634
  *  - Turn off after the print has finished and the user has pushed a button
1626 1635
  */
1627
-#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
1636
+#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_LED)
1628 1637
   #define PRINTER_EVENT_LEDS
1629 1638
 #endif
1630 1639
 

+ 15
- 6
Marlin/src/config/examples/Anet/A6/Configuration.h View File

@@ -1747,14 +1747,20 @@
1747 1747
  * Adds the M150 command to set the LED (or LED strip) color.
1748 1748
  * If pins are PWM capable (e.g., 4, 5, 6, 11) then a range of
1749 1749
  * luminance values can be set from 0 to 255.
1750
+ * For Neopixel LED overall brightness parameters is also available
1750 1751
  *
1751 1752
  * *** CAUTION ***
1752 1753
  *  LED Strips require a MOFSET Chip between PWM lines and LEDs,
1753 1754
  *  as the Arduino cannot handle the current the LEDs will require.
1754 1755
  *  Failure to follow this precaution can destroy your Arduino!
1756
+ *  Neopixel LED is 5V powered, but linear 5V regulator on Arduino
1757
+ *  cannot handle the current, separate 5V power supply must be used
1755 1758
  * *** CAUTION ***
1756 1759
  *
1760
+ * LED type. This options are mutualy exclusive. Uncomment only one.
1761
+ *
1757 1762
  */
1763
+
1758 1764
 //#define RGB_LED
1759 1765
 //#define RGBW_LED
1760 1766
 #if ENABLED(RGB_LED) || ENABLED(RGBW_LED)
@@ -1765,11 +1771,14 @@
1765 1771
 #endif
1766 1772
 
1767 1773
 // Support for Adafruit Neopixel LED driver
1768
-//#define NEOPIXEL_RGBW_LED
1769
-#if ENABLED(NEOPIXEL_RGBW_LED)
1770
-  #define NEOPIXEL_PIN    4       // D4 (EXP2-5 on Printrboard)
1771
-  #define NEOPIXEL_PIXELS 3
1772
-  //#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
1774
+//#define NEOPIXEL_LED
1775
+#if ENABLED(NEOPIXEL_LED)
1776
+  #define NEOPIXEL_TYPE   NEO_GRB  // NEO_GRBW / NEO_GRB - four/three channel driver type (definned in Adafruit_NeoPixel.h)
1777
+  #define NEOPIXEL_PIN    4        // LED driving pin on motherboard 4 => D4 (EXP2-5 on Printrboard) / 30 => PC7 (EXP3-13 on Rumba)
1778
+  #define NEOPIXEL_PIXELS 30       // Number of LEDs on strip
1779
+  #define NEOPIXEL_IS_SEQUENTIAL   // Sequential display for temperature change - LED by LED. Comment out for all LEDs to change at once.
1780
+  #define NEOPIXEL_BRIGHTNESS 255  // Initial brightness 0-255
1781
+  //#define NEOPIXEL_STARTUP_TEST  // Cycle through colors at startup
1773 1782
 #endif
1774 1783
 
1775 1784
 /**
@@ -1783,7 +1792,7 @@
1783 1792
  *  - Change to green once print has finished
1784 1793
  *  - Turn off after the print has finished and the user has pushed a button
1785 1794
  */
1786
-#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
1795
+#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_LED)
1787 1796
   #define PRINTER_EVENT_LEDS
1788 1797
 #endif
1789 1798
 

+ 15
- 6
Marlin/src/config/examples/Anet/A8/Configuration.h View File

@@ -1596,14 +1596,20 @@
1596 1596
  * Adds the M150 command to set the LED (or LED strip) color.
1597 1597
  * If pins are PWM capable (e.g., 4, 5, 6, 11) then a range of
1598 1598
  * luminance values can be set from 0 to 255.
1599
+ * For Neopixel LED overall brightness parameters is also available
1599 1600
  *
1600 1601
  * *** CAUTION ***
1601 1602
  *  LED Strips require a MOFSET Chip between PWM lines and LEDs,
1602 1603
  *  as the Arduino cannot handle the current the LEDs will require.
1603 1604
  *  Failure to follow this precaution can destroy your Arduino!
1605
+ *  Neopixel LED is 5V powered, but linear 5V regulator on Arduino
1606
+ *  cannot handle the current, separate 5V power supply must be used
1604 1607
  * *** CAUTION ***
1605 1608
  *
1609
+ * LED type. This options are mutualy exclusive. Uncomment only one.
1610
+ *
1606 1611
  */
1612
+
1607 1613
 //#define RGB_LED
1608 1614
 //#define RGBW_LED
1609 1615
 #if ENABLED(RGB_LED) || ENABLED(RGBW_LED)
@@ -1614,11 +1620,14 @@
1614 1620
 #endif
1615 1621
 
1616 1622
 // Support for Adafruit Neopixel LED driver
1617
-//#define NEOPIXEL_RGBW_LED
1618
-#if ENABLED(NEOPIXEL_RGBW_LED)
1619
-  #define NEOPIXEL_PIN    4       // D4 (EXP2-5 on Printrboard)
1620
-  #define NEOPIXEL_PIXELS 3
1621
-  //#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
1623
+//#define NEOPIXEL_LED
1624
+#if ENABLED(NEOPIXEL_LED)
1625
+  #define NEOPIXEL_TYPE   NEO_GRB  // NEO_GRBW / NEO_GRB - four/three channel driver type (definned in Adafruit_NeoPixel.h)
1626
+  #define NEOPIXEL_PIN    4        // LED driving pin on motherboard 4 => D4 (EXP2-5 on Printrboard) / 30 => PC7 (EXP3-13 on Rumba)
1627
+  #define NEOPIXEL_PIXELS 30       // Number of LEDs on strip
1628
+  #define NEOPIXEL_IS_SEQUENTIAL   // Sequential display for temperature change - LED by LED. Comment out for all LEDs to change at once.
1629
+  #define NEOPIXEL_BRIGHTNESS 255  // Initial brightness 0-255
1630
+  //#define NEOPIXEL_STARTUP_TEST  // Cycle through colors at startup
1622 1631
 #endif
1623 1632
 
1624 1633
 /**
@@ -1632,7 +1641,7 @@
1632 1641
  *  - Change to green once print has finished
1633 1642
  *  - Turn off after the print has finished and the user has pushed a button
1634 1643
  */
1635
-#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
1644
+#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_LED)
1636 1645
   #define PRINTER_EVENT_LEDS
1637 1646
 #endif
1638 1647
 

+ 15
- 6
Marlin/src/config/examples/BQ/Hephestos/Configuration.h View File

@@ -1579,14 +1579,20 @@
1579 1579
  * Adds the M150 command to set the LED (or LED strip) color.
1580 1580
  * If pins are PWM capable (e.g., 4, 5, 6, 11) then a range of
1581 1581
  * luminance values can be set from 0 to 255.
1582
+ * For Neopixel LED overall brightness parameters is also available
1582 1583
  *
1583 1584
  * *** CAUTION ***
1584 1585
  *  LED Strips require a MOFSET Chip between PWM lines and LEDs,
1585 1586
  *  as the Arduino cannot handle the current the LEDs will require.
1586 1587
  *  Failure to follow this precaution can destroy your Arduino!
1588
+ *  Neopixel LED is 5V powered, but linear 5V regulator on Arduino
1589
+ *  cannot handle the current, separate 5V power supply must be used
1587 1590
  * *** CAUTION ***
1588 1591
  *
1592
+ * LED type. This options are mutualy exclusive. Uncomment only one.
1593
+ *
1589 1594
  */
1595
+
1590 1596
 //#define RGB_LED
1591 1597
 //#define RGBW_LED
1592 1598
 #if ENABLED(RGB_LED) || ENABLED(RGBW_LED)
@@ -1597,11 +1603,14 @@
1597 1603
 #endif
1598 1604
 
1599 1605
 // Support for Adafruit Neopixel LED driver
1600
-//#define NEOPIXEL_RGBW_LED
1601
-#if ENABLED(NEOPIXEL_RGBW_LED)
1602
-  #define NEOPIXEL_PIN    4       // D4 (EXP2-5 on Printrboard)
1603
-  #define NEOPIXEL_PIXELS 3
1604
-  //#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
1606
+//#define NEOPIXEL_LED
1607
+#if ENABLED(NEOPIXEL_LED)
1608
+  #define NEOPIXEL_TYPE   NEO_GRB  // NEO_GRBW / NEO_GRB - four/three channel driver type (definned in Adafruit_NeoPixel.h)
1609
+  #define NEOPIXEL_PIN    4        // LED driving pin on motherboard 4 => D4 (EXP2-5 on Printrboard) / 30 => PC7 (EXP3-13 on Rumba)
1610
+  #define NEOPIXEL_PIXELS 30       // Number of LEDs on strip
1611
+  #define NEOPIXEL_IS_SEQUENTIAL   // Sequential display for temperature change - LED by LED. Comment out for all LEDs to change at once.
1612
+  #define NEOPIXEL_BRIGHTNESS 255  // Initial brightness 0-255
1613
+  //#define NEOPIXEL_STARTUP_TEST  // Cycle through colors at startup
1605 1614
 #endif
1606 1615
 
1607 1616
 /**
@@ -1615,7 +1624,7 @@
1615 1624
  *  - Change to green once print has finished
1616 1625
  *  - Turn off after the print has finished and the user has pushed a button
1617 1626
  */
1618
-#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
1627
+#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_LED)
1619 1628
   #define PRINTER_EVENT_LEDS
1620 1629
 #endif
1621 1630
 

+ 15
- 6
Marlin/src/config/examples/BQ/Hephestos_2/Configuration.h View File

@@ -1589,14 +1589,20 @@
1589 1589
  * Adds the M150 command to set the LED (or LED strip) color.
1590 1590
  * If pins are PWM capable (e.g., 4, 5, 6, 11) then a range of
1591 1591
  * luminance values can be set from 0 to 255.
1592
+ * For Neopixel LED overall brightness parameters is also available
1592 1593
  *
1593 1594
  * *** CAUTION ***
1594 1595
  *  LED Strips require a MOFSET Chip between PWM lines and LEDs,
1595 1596
  *  as the Arduino cannot handle the current the LEDs will require.
1596 1597
  *  Failure to follow this precaution can destroy your Arduino!
1598
+ *  Neopixel LED is 5V powered, but linear 5V regulator on Arduino
1599
+ *  cannot handle the current, separate 5V power supply must be used
1597 1600
  * *** CAUTION ***
1598 1601
  *
1602
+ * LED type. This options are mutualy exclusive. Uncomment only one.
1603
+ *
1599 1604
  */
1605
+
1600 1606
 //#define RGB_LED
1601 1607
 //#define RGBW_LED
1602 1608
 #if ENABLED(RGB_LED) || ENABLED(RGBW_LED)
@@ -1607,11 +1613,14 @@
1607 1613
 #endif
1608 1614
 
1609 1615
 // Support for Adafruit Neopixel LED driver
1610
-//#define NEOPIXEL_RGBW_LED
1611
-#if ENABLED(NEOPIXEL_RGBW_LED)
1612
-  #define NEOPIXEL_PIN    4       // D4 (EXP2-5 on Printrboard)
1613
-  #define NEOPIXEL_PIXELS 3
1614
-  //#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
1616
+//#define NEOPIXEL_LED
1617
+#if ENABLED(NEOPIXEL_LED)
1618
+  #define NEOPIXEL_TYPE   NEO_GRB  // NEO_GRBW / NEO_GRB - four/three channel driver type (definned in Adafruit_NeoPixel.h)
1619
+  #define NEOPIXEL_PIN    4        // LED driving pin on motherboard 4 => D4 (EXP2-5 on Printrboard) / 30 => PC7 (EXP3-13 on Rumba)
1620
+  #define NEOPIXEL_PIXELS 30       // Number of LEDs on strip
1621
+  #define NEOPIXEL_IS_SEQUENTIAL   // Sequential display for temperature change - LED by LED. Comment out for all LEDs to change at once.
1622
+  #define NEOPIXEL_BRIGHTNESS 255  // Initial brightness 0-255
1623
+  //#define NEOPIXEL_STARTUP_TEST  // Cycle through colors at startup
1615 1624
 #endif
1616 1625
 
1617 1626
 /**
@@ -1625,7 +1634,7 @@
1625 1634
  *  - Change to green once print has finished
1626 1635
  *  - Turn off after the print has finished and the user has pushed a button
1627 1636
  */
1628
-#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
1637
+#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_LED)
1629 1638
   #define PRINTER_EVENT_LEDS
1630 1639
 #endif
1631 1640
 

+ 15
- 6
Marlin/src/config/examples/BQ/WITBOX/Configuration.h View File

@@ -1579,14 +1579,20 @@
1579 1579
  * Adds the M150 command to set the LED (or LED strip) color.
1580 1580
  * If pins are PWM capable (e.g., 4, 5, 6, 11) then a range of
1581 1581
  * luminance values can be set from 0 to 255.
1582
+ * For Neopixel LED overall brightness parameters is also available
1582 1583
  *
1583 1584
  * *** CAUTION ***
1584 1585
  *  LED Strips require a MOFSET Chip between PWM lines and LEDs,
1585 1586
  *  as the Arduino cannot handle the current the LEDs will require.
1586 1587
  *  Failure to follow this precaution can destroy your Arduino!
1588
+ *  Neopixel LED is 5V powered, but linear 5V regulator on Arduino
1589
+ *  cannot handle the current, separate 5V power supply must be used
1587 1590
  * *** CAUTION ***
1588 1591
  *
1592
+ * LED type. This options are mutualy exclusive. Uncomment only one.
1593
+ *
1589 1594
  */
1595
+
1590 1596
 //#define RGB_LED
1591 1597
 //#define RGBW_LED
1592 1598
 #if ENABLED(RGB_LED) || ENABLED(RGBW_LED)
@@ -1597,11 +1603,14 @@
1597 1603
 #endif
1598 1604
 
1599 1605
 // Support for Adafruit Neopixel LED driver
1600
-//#define NEOPIXEL_RGBW_LED
1601
-#if ENABLED(NEOPIXEL_RGBW_LED)
1602
-  #define NEOPIXEL_PIN    4       // D4 (EXP2-5 on Printrboard)
1603
-  #define NEOPIXEL_PIXELS 3
1604
-  //#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
1606
+//#define NEOPIXEL_LED
1607
+#if ENABLED(NEOPIXEL_LED)
1608
+  #define NEOPIXEL_TYPE   NEO_GRB  // NEO_GRBW / NEO_GRB - four/three channel driver type (definned in Adafruit_NeoPixel.h)
1609
+  #define NEOPIXEL_PIN    4        // LED driving pin on motherboard 4 => D4 (EXP2-5 on Printrboard) / 30 => PC7 (EXP3-13 on Rumba)
1610
+  #define NEOPIXEL_PIXELS 30       // Number of LEDs on strip
1611
+  #define NEOPIXEL_IS_SEQUENTIAL   // Sequential display for temperature change - LED by LED. Comment out for all LEDs to change at once.
1612
+  #define NEOPIXEL_BRIGHTNESS 255  // Initial brightness 0-255
1613
+  //#define NEOPIXEL_STARTUP_TEST  // Cycle through colors at startup
1605 1614
 #endif
1606 1615
 
1607 1616
 /**
@@ -1615,7 +1624,7 @@
1615 1624
  *  - Change to green once print has finished
1616 1625
  *  - Turn off after the print has finished and the user has pushed a button
1617 1626
  */
1618
-#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
1627
+#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_LED)
1619 1628
   #define PRINTER_EVENT_LEDS
1620 1629
 #endif
1621 1630
 

+ 15
- 6
Marlin/src/config/examples/Cartesio/Configuration.h View File

@@ -1587,14 +1587,20 @@
1587 1587
  * Adds the M150 command to set the LED (or LED strip) color.
1588 1588
  * If pins are PWM capable (e.g., 4, 5, 6, 11) then a range of
1589 1589
  * luminance values can be set from 0 to 255.
1590
+ * For Neopixel LED overall brightness parameters is also available
1590 1591
  *
1591 1592
  * *** CAUTION ***
1592 1593
  *  LED Strips require a MOFSET Chip between PWM lines and LEDs,
1593 1594
  *  as the Arduino cannot handle the current the LEDs will require.
1594 1595
  *  Failure to follow this precaution can destroy your Arduino!
1596
+ *  Neopixel LED is 5V powered, but linear 5V regulator on Arduino
1597
+ *  cannot handle the current, separate 5V power supply must be used
1595 1598
  * *** CAUTION ***
1596 1599
  *
1600
+ * LED type. This options are mutualy exclusive. Uncomment only one.
1601
+ *
1597 1602
  */
1603
+
1598 1604
 //#define RGB_LED
1599 1605
 //#define RGBW_LED
1600 1606
 #if ENABLED(RGB_LED) || ENABLED(RGBW_LED)
@@ -1605,11 +1611,14 @@
1605 1611
 #endif
1606 1612
 
1607 1613
 // Support for Adafruit Neopixel LED driver
1608
-//#define NEOPIXEL_RGBW_LED
1609
-#if ENABLED(NEOPIXEL_RGBW_LED)
1610
-  #define NEOPIXEL_PIN    4       // D4 (EXP2-5 on Printrboard)
1611
-  #define NEOPIXEL_PIXELS 3
1612
-  //#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
1614
+//#define NEOPIXEL_LED
1615
+#if ENABLED(NEOPIXEL_LED)
1616
+  #define NEOPIXEL_TYPE   NEO_GRB  // NEO_GRBW / NEO_GRB - four/three channel driver type (definned in Adafruit_NeoPixel.h)
1617
+  #define NEOPIXEL_PIN    4        // LED driving pin on motherboard 4 => D4 (EXP2-5 on Printrboard) / 30 => PC7 (EXP3-13 on Rumba)
1618
+  #define NEOPIXEL_PIXELS 30       // Number of LEDs on strip
1619
+  #define NEOPIXEL_IS_SEQUENTIAL   // Sequential display for temperature change - LED by LED. Comment out for all LEDs to change at once.
1620
+  #define NEOPIXEL_BRIGHTNESS 255  // Initial brightness 0-255
1621
+  //#define NEOPIXEL_STARTUP_TEST  // Cycle through colors at startup
1613 1622
 #endif
1614 1623
 
1615 1624
 /**
@@ -1623,7 +1632,7 @@
1623 1632
  *  - Change to green once print has finished
1624 1633
  *  - Turn off after the print has finished and the user has pushed a button
1625 1634
  */
1626
-#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
1635
+#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_LED)
1627 1636
   #define PRINTER_EVENT_LEDS
1628 1637
 #endif
1629 1638
 

+ 15
- 6
Marlin/src/config/examples/Creality/CR-10/Configuration.h View File

@@ -1598,14 +1598,20 @@
1598 1598
  * Adds the M150 command to set the LED (or LED strip) color.
1599 1599
  * If pins are PWM capable (e.g., 4, 5, 6, 11) then a range of
1600 1600
  * luminance values can be set from 0 to 255.
1601
+ * For Neopixel LED overall brightness parameters is also available
1601 1602
  *
1602 1603
  * *** CAUTION ***
1603 1604
  *  LED Strips require a MOFSET Chip between PWM lines and LEDs,
1604 1605
  *  as the Arduino cannot handle the current the LEDs will require.
1605 1606
  *  Failure to follow this precaution can destroy your Arduino!
1607
+ *  Neopixel LED is 5V powered, but linear 5V regulator on Arduino
1608
+ *  cannot handle the current, separate 5V power supply must be used
1606 1609
  * *** CAUTION ***
1607 1610
  *
1611
+ * LED type. This options are mutualy exclusive. Uncomment only one.
1612
+ *
1608 1613
  */
1614
+
1609 1615
 //#define RGB_LED
1610 1616
 //#define RGBW_LED
1611 1617
 #if ENABLED(RGB_LED) || ENABLED(RGBW_LED)
@@ -1616,11 +1622,14 @@
1616 1622
 #endif
1617 1623
 
1618 1624
 // Support for Adafruit Neopixel LED driver
1619
-//#define NEOPIXEL_RGBW_LED
1620
-#if ENABLED(NEOPIXEL_RGBW_LED)
1621
-  #define NEOPIXEL_PIN    4       // D4 (EXP2-5 on Printrboard)
1622
-  #define NEOPIXEL_PIXELS 3
1623
-  //#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
1625
+//#define NEOPIXEL_LED
1626
+#if ENABLED(NEOPIXEL_LED)
1627
+  #define NEOPIXEL_TYPE   NEO_GRB  // NEO_GRBW / NEO_GRB - four/three channel driver type (definned in Adafruit_NeoPixel.h)
1628
+  #define NEOPIXEL_PIN    4        // LED driving pin on motherboard 4 => D4 (EXP2-5 on Printrboard) / 30 => PC7 (EXP3-13 on Rumba)
1629
+  #define NEOPIXEL_PIXELS 30       // Number of LEDs on strip
1630
+  #define NEOPIXEL_IS_SEQUENTIAL   // Sequential display for temperature change - LED by LED. Comment out for all LEDs to change at once.
1631
+  #define NEOPIXEL_BRIGHTNESS 255  // Initial brightness 0-255
1632
+  //#define NEOPIXEL_STARTUP_TEST  // Cycle through colors at startup
1624 1633
 #endif
1625 1634
 
1626 1635
 /**
@@ -1634,7 +1643,7 @@
1634 1643
  *  - Change to green once print has finished
1635 1644
  *  - Turn off after the print has finished and the user has pushed a button
1636 1645
  */
1637
-#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
1646
+#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_LED)
1638 1647
   #define PRINTER_EVENT_LEDS
1639 1648
 #endif
1640 1649
 

+ 15
- 6
Marlin/src/config/examples/Felix/Configuration.h View File

@@ -1570,14 +1570,20 @@
1570 1570
  * Adds the M150 command to set the LED (or LED strip) color.
1571 1571
  * If pins are PWM capable (e.g., 4, 5, 6, 11) then a range of
1572 1572
  * luminance values can be set from 0 to 255.
1573
+ * For Neopixel LED overall brightness parameters is also available
1573 1574
  *
1574 1575
  * *** CAUTION ***
1575 1576
  *  LED Strips require a MOFSET Chip between PWM lines and LEDs,
1576 1577
  *  as the Arduino cannot handle the current the LEDs will require.
1577 1578
  *  Failure to follow this precaution can destroy your Arduino!
1579
+ *  Neopixel LED is 5V powered, but linear 5V regulator on Arduino
1580
+ *  cannot handle the current, separate 5V power supply must be used
1578 1581
  * *** CAUTION ***
1579 1582
  *
1583
+ * LED type. This options are mutualy exclusive. Uncomment only one.
1584
+ *
1580 1585
  */
1586
+
1581 1587
 //#define RGB_LED
1582 1588
 //#define RGBW_LED
1583 1589
 #if ENABLED(RGB_LED) || ENABLED(RGBW_LED)
@@ -1588,11 +1594,14 @@
1588 1594
 #endif
1589 1595
 
1590 1596
 // Support for Adafruit Neopixel LED driver
1591
-//#define NEOPIXEL_RGBW_LED
1592
-#if ENABLED(NEOPIXEL_RGBW_LED)
1593
-  #define NEOPIXEL_PIN    4       // D4 (EXP2-5 on Printrboard)
1594
-  #define NEOPIXEL_PIXELS 3
1595
-  //#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
1597
+//#define NEOPIXEL_LED
1598
+#if ENABLED(NEOPIXEL_LED)
1599
+  #define NEOPIXEL_TYPE   NEO_GRB  // NEO_GRBW / NEO_GRB - four/three channel driver type (definned in Adafruit_NeoPixel.h)
1600
+  #define NEOPIXEL_PIN    4        // LED driving pin on motherboard 4 => D4 (EXP2-5 on Printrboard) / 30 => PC7 (EXP3-13 on Rumba)
1601
+  #define NEOPIXEL_PIXELS 30       // Number of LEDs on strip
1602
+  #define NEOPIXEL_IS_SEQUENTIAL   // Sequential display for temperature change - LED by LED. Comment out for all LEDs to change at once.
1603
+  #define NEOPIXEL_BRIGHTNESS 255  // Initial brightness 0-255
1604
+  //#define NEOPIXEL_STARTUP_TEST  // Cycle through colors at startup
1596 1605
 #endif
1597 1606
 
1598 1607
 /**
@@ -1606,7 +1615,7 @@
1606 1615
  *  - Change to green once print has finished
1607 1616
  *  - Turn off after the print has finished and the user has pushed a button
1608 1617
  */
1609
-#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
1618
+#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_LED)
1610 1619
   #define PRINTER_EVENT_LEDS
1611 1620
 #endif
1612 1621
 

+ 15
- 6
Marlin/src/config/examples/Felix/DUAL/Configuration.h View File

@@ -1570,14 +1570,20 @@
1570 1570
  * Adds the M150 command to set the LED (or LED strip) color.
1571 1571
  * If pins are PWM capable (e.g., 4, 5, 6, 11) then a range of
1572 1572
  * luminance values can be set from 0 to 255.
1573
+ * For Neopixel LED overall brightness parameters is also available
1573 1574
  *
1574 1575
  * *** CAUTION ***
1575 1576
  *  LED Strips require a MOFSET Chip between PWM lines and LEDs,
1576 1577
  *  as the Arduino cannot handle the current the LEDs will require.
1577 1578
  *  Failure to follow this precaution can destroy your Arduino!
1579
+ *  Neopixel LED is 5V powered, but linear 5V regulator on Arduino
1580
+ *  cannot handle the current, separate 5V power supply must be used
1578 1581
  * *** CAUTION ***
1579 1582
  *
1583
+ * LED type. This options are mutualy exclusive. Uncomment only one.
1584
+ *
1580 1585
  */
1586
+
1581 1587
 //#define RGB_LED
1582 1588
 //#define RGBW_LED
1583 1589
 #if ENABLED(RGB_LED) || ENABLED(RGBW_LED)
@@ -1588,11 +1594,14 @@
1588 1594
 #endif
1589 1595
 
1590 1596
 // Support for Adafruit Neopixel LED driver
1591
-//#define NEOPIXEL_RGBW_LED
1592
-#if ENABLED(NEOPIXEL_RGBW_LED)
1593
-  #define NEOPIXEL_PIN    4       // D4 (EXP2-5 on Printrboard)
1594
-  #define NEOPIXEL_PIXELS 3
1595
-  //#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
1597
+//#define NEOPIXEL_LED
1598
+#if ENABLED(NEOPIXEL_LED)
1599
+  #define NEOPIXEL_TYPE   NEO_GRB  // NEO_GRBW / NEO_GRB - four/three channel driver type (definned in Adafruit_NeoPixel.h)
1600
+  #define NEOPIXEL_PIN    4        // LED driving pin on motherboard 4 => D4 (EXP2-5 on Printrboard) / 30 => PC7 (EXP3-13 on Rumba)
1601
+  #define NEOPIXEL_PIXELS 30       // Number of LEDs on strip
1602
+  #define NEOPIXEL_IS_SEQUENTIAL   // Sequential display for temperature change - LED by LED. Comment out for all LEDs to change at once.
1603
+  #define NEOPIXEL_BRIGHTNESS 255  // Initial brightness 0-255
1604
+  //#define NEOPIXEL_STARTUP_TEST  // Cycle through colors at startup
1596 1605
 #endif
1597 1606
 
1598 1607
 /**
@@ -1606,7 +1615,7 @@
1606 1615
  *  - Change to green once print has finished
1607 1616
  *  - Turn off after the print has finished and the user has pushed a button
1608 1617
  */
1609
-#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
1618
+#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_LED)
1610 1619
   #define PRINTER_EVENT_LEDS
1611 1620
 #endif
1612 1621
 

+ 15
- 6
Marlin/src/config/examples/Folger Tech/i3-2020/Configuration.h View File

@@ -1593,14 +1593,20 @@
1593 1593
  * Adds the M150 command to set the LED (or LED strip) color.
1594 1594
  * If pins are PWM capable (e.g., 4, 5, 6, 11) then a range of
1595 1595
  * luminance values can be set from 0 to 255.
1596
+ * For Neopixel LED overall brightness parameters is also available
1596 1597
  *
1597 1598
  * *** CAUTION ***
1598 1599
  *  LED Strips require a MOFSET Chip between PWM lines and LEDs,
1599 1600
  *  as the Arduino cannot handle the current the LEDs will require.
1600 1601
  *  Failure to follow this precaution can destroy your Arduino!
1602
+ *  Neopixel LED is 5V powered, but linear 5V regulator on Arduino
1603
+ *  cannot handle the current, separate 5V power supply must be used
1601 1604
  * *** CAUTION ***
1602 1605
  *
1606
+ * LED type. This options are mutualy exclusive. Uncomment only one.
1607
+ *
1603 1608
  */
1609
+
1604 1610
 //#define RGB_LED
1605 1611
 //#define RGBW_LED
1606 1612
 #if ENABLED(RGB_LED) || ENABLED(RGBW_LED)
@@ -1611,11 +1617,14 @@
1611 1617
 #endif
1612 1618
 
1613 1619
 // Support for Adafruit Neopixel LED driver
1614
-//#define NEOPIXEL_RGBW_LED
1615
-#if ENABLED(NEOPIXEL_RGBW_LED)
1616
-  #define NEOPIXEL_PIN    4       // D4 (EXP2-5 on Printrboard)
1617
-  #define NEOPIXEL_PIXELS 3
1618
-  //#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
1620
+//#define NEOPIXEL_LED
1621
+#if ENABLED(NEOPIXEL_LED)
1622
+  #define NEOPIXEL_TYPE   NEO_GRB  // NEO_GRBW / NEO_GRB - four/three channel driver type (definned in Adafruit_NeoPixel.h)
1623
+  #define NEOPIXEL_PIN    4        // LED driving pin on motherboard 4 => D4 (EXP2-5 on Printrboard) / 30 => PC7 (EXP3-13 on Rumba)
1624
+  #define NEOPIXEL_PIXELS 30       // Number of LEDs on strip
1625
+  #define NEOPIXEL_IS_SEQUENTIAL   // Sequential display for temperature change - LED by LED. Comment out for all LEDs to change at once.
1626
+  #define NEOPIXEL_BRIGHTNESS 255  // Initial brightness 0-255
1627
+  //#define NEOPIXEL_STARTUP_TEST  // Cycle through colors at startup
1619 1628
 #endif
1620 1629
 
1621 1630
 /**
@@ -1629,7 +1638,7 @@
1629 1638
  *  - Change to green once print has finished
1630 1639
  *  - Turn off after the print has finished and the user has pushed a button
1631 1640
  */
1632
-#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
1641
+#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_LED)
1633 1642
   #define PRINTER_EVENT_LEDS
1634 1643
 #endif
1635 1644
 

+ 15
- 6
Marlin/src/config/examples/Geeetech/GT2560/Configuration.h View File

@@ -1603,14 +1603,20 @@
1603 1603
  * Adds the M150 command to set the LED (or LED strip) color.
1604 1604
  * If pins are PWM capable (e.g., 4, 5, 6, 11) then a range of
1605 1605
  * luminance values can be set from 0 to 255.
1606
+ * For Neopixel LED overall brightness parameters is also available
1606 1607
  *
1607 1608
  * *** CAUTION ***
1608 1609
  *  LED Strips require a MOFSET Chip between PWM lines and LEDs,
1609 1610
  *  as the Arduino cannot handle the current the LEDs will require.
1610 1611
  *  Failure to follow this precaution can destroy your Arduino!
1612
+ *  Neopixel LED is 5V powered, but linear 5V regulator on Arduino
1613
+ *  cannot handle the current, separate 5V power supply must be used
1611 1614
  * *** CAUTION ***
1612 1615
  *
1616
+ * LED type. This options are mutualy exclusive. Uncomment only one.
1617
+ *
1613 1618
  */
1619
+
1614 1620
 //#define RGB_LED
1615 1621
 //#define RGBW_LED
1616 1622
 #if ENABLED(RGB_LED) || ENABLED(RGBW_LED)
@@ -1621,11 +1627,14 @@
1621 1627
 #endif
1622 1628
 
1623 1629
 // Support for Adafruit Neopixel LED driver
1624
-//#define NEOPIXEL_RGBW_LED
1625
-#if ENABLED(NEOPIXEL_RGBW_LED)
1626
-  #define NEOPIXEL_PIN    4       // D4 (EXP2-5 on Printrboard)
1627
-  #define NEOPIXEL_PIXELS 3
1628
-  //#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
1630
+//#define NEOPIXEL_LED
1631
+#if ENABLED(NEOPIXEL_LED)
1632
+  #define NEOPIXEL_TYPE   NEO_GRB  // NEO_GRBW / NEO_GRB - four/three channel driver type (definned in Adafruit_NeoPixel.h)
1633
+  #define NEOPIXEL_PIN    4        // LED driving pin on motherboard 4 => D4 (EXP2-5 on Printrboard) / 30 => PC7 (EXP3-13 on Rumba)
1634
+  #define NEOPIXEL_PIXELS 30       // Number of LEDs on strip
1635
+  #define NEOPIXEL_IS_SEQUENTIAL   // Sequential display for temperature change - LED by LED. Comment out for all LEDs to change at once.
1636
+  #define NEOPIXEL_BRIGHTNESS 255  // Initial brightness 0-255
1637
+  //#define NEOPIXEL_STARTUP_TEST  // Cycle through colors at startup
1629 1638
 #endif
1630 1639
 
1631 1640
 /**
@@ -1639,7 +1648,7 @@
1639 1648
  *  - Change to green once print has finished
1640 1649
  *  - Turn off after the print has finished and the user has pushed a button
1641 1650
  */
1642
-#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
1651
+#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_LED)
1643 1652
   #define PRINTER_EVENT_LEDS
1644 1653
 #endif
1645 1654
 

+ 15
- 6
Marlin/src/config/examples/Geeetech/I3_Pro_X-GT2560/Configuration.h View File

@@ -1588,14 +1588,20 @@
1588 1588
  * Adds the M150 command to set the LED (or LED strip) color.
1589 1589
  * If pins are PWM capable (e.g., 4, 5, 6, 11) then a range of
1590 1590
  * luminance values can be set from 0 to 255.
1591
+ * For Neopixel LED overall brightness parameters is also available
1591 1592
  *
1592 1593
  * *** CAUTION ***
1593 1594
  *  LED Strips require a MOFSET Chip between PWM lines and LEDs,
1594 1595
  *  as the Arduino cannot handle the current the LEDs will require.
1595 1596
  *  Failure to follow this precaution can destroy your Arduino!
1597
+ *  Neopixel LED is 5V powered, but linear 5V regulator on Arduino
1598
+ *  cannot handle the current, separate 5V power supply must be used
1596 1599
  * *** CAUTION ***
1597 1600
  *
1601
+ * LED type. This options are mutualy exclusive. Uncomment only one.
1602
+ *
1598 1603
  */
1604
+
1599 1605
 //#define RGB_LED
1600 1606
 //#define RGBW_LED
1601 1607
 #if ENABLED(RGB_LED) || ENABLED(RGBW_LED)
@@ -1606,11 +1612,14 @@
1606 1612
 #endif
1607 1613
 
1608 1614
 // Support for Adafruit Neopixel LED driver
1609
-//#define NEOPIXEL_RGBW_LED
1610
-#if ENABLED(NEOPIXEL_RGBW_LED)
1611
-  #define NEOPIXEL_PIN    4       // D4 (EXP2-5 on Printrboard)
1612
-  #define NEOPIXEL_PIXELS 3
1613
-  //#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
1615
+//#define NEOPIXEL_LED
1616
+#if ENABLED(NEOPIXEL_LED)
1617
+  #define NEOPIXEL_TYPE   NEO_GRB  // NEO_GRBW / NEO_GRB - four/three channel driver type (definned in Adafruit_NeoPixel.h)
1618
+  #define NEOPIXEL_PIN    4        // LED driving pin on motherboard 4 => D4 (EXP2-5 on Printrboard) / 30 => PC7 (EXP3-13 on Rumba)
1619
+  #define NEOPIXEL_PIXELS 30       // Number of LEDs on strip
1620
+  #define NEOPIXEL_IS_SEQUENTIAL   // Sequential display for temperature change - LED by LED. Comment out for all LEDs to change at once.
1621
+  #define NEOPIXEL_BRIGHTNESS 255  // Initial brightness 0-255
1622
+  //#define NEOPIXEL_STARTUP_TEST  // Cycle through colors at startup
1614 1623
 #endif
1615 1624
 
1616 1625
 /**
@@ -1624,7 +1633,7 @@
1624 1633
  *  - Change to green once print has finished
1625 1634
  *  - Turn off after the print has finished and the user has pushed a button
1626 1635
  */
1627
-#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
1636
+#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_LED)
1628 1637
   #define PRINTER_EVENT_LEDS
1629 1638
 #endif
1630 1639
 

+ 15
- 6
Marlin/src/config/examples/Infitary/i3-M508/Configuration.h View File

@@ -1592,14 +1592,20 @@
1592 1592
  * Adds the M150 command to set the LED (or LED strip) color.
1593 1593
  * If pins are PWM capable (e.g., 4, 5, 6, 11) then a range of
1594 1594
  * luminance values can be set from 0 to 255.
1595
+ * For Neopixel LED overall brightness parameters is also available
1595 1596
  *
1596 1597
  * *** CAUTION ***
1597 1598
  *  LED Strips require a MOFSET Chip between PWM lines and LEDs,
1598 1599
  *  as the Arduino cannot handle the current the LEDs will require.
1599 1600
  *  Failure to follow this precaution can destroy your Arduino!
1601
+ *  Neopixel LED is 5V powered, but linear 5V regulator on Arduino
1602
+ *  cannot handle the current, separate 5V power supply must be used
1600 1603
  * *** CAUTION ***
1601 1604
  *
1605
+ * LED type. This options are mutualy exclusive. Uncomment only one.
1606
+ *
1602 1607
  */
1608
+
1603 1609
 //#define RGB_LED
1604 1610
 //#define RGBW_LED
1605 1611
 #if ENABLED(RGB_LED) || ENABLED(RGBW_LED)
@@ -1610,11 +1616,14 @@
1610 1616
 #endif
1611 1617
 
1612 1618
 // Support for Adafruit Neopixel LED driver
1613
-//#define NEOPIXEL_RGBW_LED
1614
-#if ENABLED(NEOPIXEL_RGBW_LED)
1615
-  #define NEOPIXEL_PIN    4       // D4 (EXP2-5 on Printrboard)
1616
-  #define NEOPIXEL_PIXELS 3
1617
-  //#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
1619
+//#define NEOPIXEL_LED
1620
+#if ENABLED(NEOPIXEL_LED)
1621
+  #define NEOPIXEL_TYPE   NEO_GRB  // NEO_GRBW / NEO_GRB - four/three channel driver type (definned in Adafruit_NeoPixel.h)
1622
+  #define NEOPIXEL_PIN    4        // LED driving pin on motherboard 4 => D4 (EXP2-5 on Printrboard) / 30 => PC7 (EXP3-13 on Rumba)
1623
+  #define NEOPIXEL_PIXELS 30       // Number of LEDs on strip
1624
+  #define NEOPIXEL_IS_SEQUENTIAL   // Sequential display for temperature change - LED by LED. Comment out for all LEDs to change at once.
1625
+  #define NEOPIXEL_BRIGHTNESS 255  // Initial brightness 0-255
1626
+  //#define NEOPIXEL_STARTUP_TEST  // Cycle through colors at startup
1618 1627
 #endif
1619 1628
 
1620 1629
 /**
@@ -1628,7 +1637,7 @@
1628 1637
  *  - Change to green once print has finished
1629 1638
  *  - Turn off after the print has finished and the user has pushed a button
1630 1639
  */
1631
-#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
1640
+#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_LED)
1632 1641
   #define PRINTER_EVENT_LEDS
1633 1642
 #endif
1634 1643
 

+ 15
- 6
Marlin/src/config/examples/Malyan/M150/Configuration.h View File

@@ -1616,14 +1616,20 @@
1616 1616
  * Adds the M150 command to set the LED (or LED strip) color.
1617 1617
  * If pins are PWM capable (e.g., 4, 5, 6, 11) then a range of
1618 1618
  * luminance values can be set from 0 to 255.
1619
+ * For Neopixel LED overall brightness parameters is also available
1619 1620
  *
1620 1621
  * *** CAUTION ***
1621 1622
  *  LED Strips require a MOFSET Chip between PWM lines and LEDs,
1622 1623
  *  as the Arduino cannot handle the current the LEDs will require.
1623 1624
  *  Failure to follow this precaution can destroy your Arduino!
1625
+ *  Neopixel LED is 5V powered, but linear 5V regulator on Arduino
1626
+ *  cannot handle the current, separate 5V power supply must be used
1624 1627
  * *** CAUTION ***
1625 1628
  *
1629
+ * LED type. This options are mutualy exclusive. Uncomment only one.
1630
+ *
1626 1631
  */
1632
+
1627 1633
 //#define RGB_LED
1628 1634
 //#define RGBW_LED
1629 1635
 #if ENABLED(RGB_LED) || ENABLED(RGBW_LED)
@@ -1634,11 +1640,14 @@
1634 1640
 #endif
1635 1641
 
1636 1642
 // Support for Adafruit Neopixel LED driver
1637
-//#define NEOPIXEL_RGBW_LED
1638
-#if ENABLED(NEOPIXEL_RGBW_LED)
1639
-  #define NEOPIXEL_PIN    4       // D4 (EXP2-5 on Printrboard)
1640
-  #define NEOPIXEL_PIXELS 3
1641
-  //#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
1643
+//#define NEOPIXEL_LED
1644
+#if ENABLED(NEOPIXEL_LED)
1645
+  #define NEOPIXEL_TYPE   NEO_GRB  // NEO_GRBW / NEO_GRB - four/three channel driver type (definned in Adafruit_NeoPixel.h)
1646
+  #define NEOPIXEL_PIN    4        // LED driving pin on motherboard 4 => D4 (EXP2-5 on Printrboard) / 30 => PC7 (EXP3-13 on Rumba)
1647
+  #define NEOPIXEL_PIXELS 30       // Number of LEDs on strip
1648
+  #define NEOPIXEL_IS_SEQUENTIAL   // Sequential display for temperature change - LED by LED. Comment out for all LEDs to change at once.
1649
+  #define NEOPIXEL_BRIGHTNESS 255  // Initial brightness 0-255
1650
+  //#define NEOPIXEL_STARTUP_TEST  // Cycle through colors at startup
1642 1651
 #endif
1643 1652
 
1644 1653
 /**
@@ -1652,7 +1661,7 @@
1652 1661
  *  - Change to green once print has finished
1653 1662
  *  - Turn off after the print has finished and the user has pushed a button
1654 1663
  */
1655
-#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
1664
+#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_LED)
1656 1665
   #define PRINTER_EVENT_LEDS
1657 1666
 #endif
1658 1667
 

+ 15
- 6
Marlin/src/config/examples/RepRapWorld/Megatronics/Configuration.h View File

@@ -1588,14 +1588,20 @@
1588 1588
  * Adds the M150 command to set the LED (or LED strip) color.
1589 1589
  * If pins are PWM capable (e.g., 4, 5, 6, 11) then a range of
1590 1590
  * luminance values can be set from 0 to 255.
1591
+ * For Neopixel LED overall brightness parameters is also available
1591 1592
  *
1592 1593
  * *** CAUTION ***
1593 1594
  *  LED Strips require a MOFSET Chip between PWM lines and LEDs,
1594 1595
  *  as the Arduino cannot handle the current the LEDs will require.
1595 1596
  *  Failure to follow this precaution can destroy your Arduino!
1597
+ *  Neopixel LED is 5V powered, but linear 5V regulator on Arduino
1598
+ *  cannot handle the current, separate 5V power supply must be used
1596 1599
  * *** CAUTION ***
1597 1600
  *
1601
+ * LED type. This options are mutualy exclusive. Uncomment only one.
1602
+ *
1598 1603
  */
1604
+
1599 1605
 //#define RGB_LED
1600 1606
 //#define RGBW_LED
1601 1607
 #if ENABLED(RGB_LED) || ENABLED(RGBW_LED)
@@ -1606,11 +1612,14 @@
1606 1612
 #endif
1607 1613
 
1608 1614
 // Support for Adafruit Neopixel LED driver
1609
-//#define NEOPIXEL_RGBW_LED
1610
-#if ENABLED(NEOPIXEL_RGBW_LED)
1611
-  #define NEOPIXEL_PIN    4       // D4 (EXP2-5 on Printrboard)
1612
-  #define NEOPIXEL_PIXELS 3
1613
-  //#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
1615
+//#define NEOPIXEL_LED
1616
+#if ENABLED(NEOPIXEL_LED)
1617
+  #define NEOPIXEL_TYPE   NEO_GRB  // NEO_GRBW / NEO_GRB - four/three channel driver type (definned in Adafruit_NeoPixel.h)
1618
+  #define NEOPIXEL_PIN    4        // LED driving pin on motherboard 4 => D4 (EXP2-5 on Printrboard) / 30 => PC7 (EXP3-13 on Rumba)
1619
+  #define NEOPIXEL_PIXELS 30       // Number of LEDs on strip
1620
+  #define NEOPIXEL_IS_SEQUENTIAL   // Sequential display for temperature change - LED by LED. Comment out for all LEDs to change at once.
1621
+  #define NEOPIXEL_BRIGHTNESS 255  // Initial brightness 0-255
1622
+  //#define NEOPIXEL_STARTUP_TEST  // Cycle through colors at startup
1614 1623
 #endif
1615 1624
 
1616 1625
 /**
@@ -1624,7 +1633,7 @@
1624 1633
  *  - Change to green once print has finished
1625 1634
  *  - Turn off after the print has finished and the user has pushed a button
1626 1635
  */
1627
-#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
1636
+#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_LED)
1628 1637
   #define PRINTER_EVENT_LEDS
1629 1638
 #endif
1630 1639
 

+ 15
- 6
Marlin/src/config/examples/RigidBot/Configuration.h View File

@@ -1588,14 +1588,20 @@
1588 1588
  * Adds the M150 command to set the LED (or LED strip) color.
1589 1589
  * If pins are PWM capable (e.g., 4, 5, 6, 11) then a range of
1590 1590
  * luminance values can be set from 0 to 255.
1591
+ * For Neopixel LED overall brightness parameters is also available
1591 1592
  *
1592 1593
  * *** CAUTION ***
1593 1594
  *  LED Strips require a MOFSET Chip between PWM lines and LEDs,
1594 1595
  *  as the Arduino cannot handle the current the LEDs will require.
1595 1596
  *  Failure to follow this precaution can destroy your Arduino!
1597
+ *  Neopixel LED is 5V powered, but linear 5V regulator on Arduino
1598
+ *  cannot handle the current, separate 5V power supply must be used
1596 1599
  * *** CAUTION ***
1597 1600
  *
1601
+ * LED type. This options are mutualy exclusive. Uncomment only one.
1602
+ *
1598 1603
  */
1604
+
1599 1605
 //#define RGB_LED
1600 1606
 //#define RGBW_LED
1601 1607
 #if ENABLED(RGB_LED) || ENABLED(RGBW_LED)
@@ -1606,11 +1612,14 @@
1606 1612
 #endif
1607 1613
 
1608 1614
 // Support for Adafruit Neopixel LED driver
1609
-//#define NEOPIXEL_RGBW_LED
1610
-#if ENABLED(NEOPIXEL_RGBW_LED)
1611
-  #define NEOPIXEL_PIN    4       // D4 (EXP2-5 on Printrboard)
1612
-  #define NEOPIXEL_PIXELS 3
1613
-  //#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
1615
+//#define NEOPIXEL_LED
1616
+#if ENABLED(NEOPIXEL_LED)
1617
+  #define NEOPIXEL_TYPE   NEO_GRB  // NEO_GRBW / NEO_GRB - four/three channel driver type (definned in Adafruit_NeoPixel.h)
1618
+  #define NEOPIXEL_PIN    4        // LED driving pin on motherboard 4 => D4 (EXP2-5 on Printrboard) / 30 => PC7 (EXP3-13 on Rumba)
1619
+  #define NEOPIXEL_PIXELS 30       // Number of LEDs on strip
1620
+  #define NEOPIXEL_IS_SEQUENTIAL   // Sequential display for temperature change - LED by LED. Comment out for all LEDs to change at once.
1621
+  #define NEOPIXEL_BRIGHTNESS 255  // Initial brightness 0-255
1622
+  //#define NEOPIXEL_STARTUP_TEST  // Cycle through colors at startup
1614 1623
 #endif
1615 1624
 
1616 1625
 /**
@@ -1624,7 +1633,7 @@
1624 1633
  *  - Change to green once print has finished
1625 1634
  *  - Turn off after the print has finished and the user has pushed a button
1626 1635
  */
1627
-#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
1636
+#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_LED)
1628 1637
   #define PRINTER_EVENT_LEDS
1629 1638
 #endif
1630 1639
 

+ 15
- 6
Marlin/src/config/examples/SCARA/Configuration.h View File

@@ -1600,14 +1600,20 @@
1600 1600
  * Adds the M150 command to set the LED (or LED strip) color.
1601 1601
  * If pins are PWM capable (e.g., 4, 5, 6, 11) then a range of
1602 1602
  * luminance values can be set from 0 to 255.
1603
+ * For Neopixel LED overall brightness parameters is also available
1603 1604
  *
1604 1605
  * *** CAUTION ***
1605 1606
  *  LED Strips require a MOFSET Chip between PWM lines and LEDs,
1606 1607
  *  as the Arduino cannot handle the current the LEDs will require.
1607 1608
  *  Failure to follow this precaution can destroy your Arduino!
1609
+ *  Neopixel LED is 5V powered, but linear 5V regulator on Arduino
1610
+ *  cannot handle the current, separate 5V power supply must be used
1608 1611
  * *** CAUTION ***
1609 1612
  *
1613
+ * LED type. This options are mutualy exclusive. Uncomment only one.
1614
+ *
1610 1615
  */
1616
+
1611 1617
 //#define RGB_LED
1612 1618
 //#define RGBW_LED
1613 1619
 #if ENABLED(RGB_LED) || ENABLED(RGBW_LED)
@@ -1618,11 +1624,14 @@
1618 1624
 #endif
1619 1625
 
1620 1626
 // Support for Adafruit Neopixel LED driver
1621
-//#define NEOPIXEL_RGBW_LED
1622
-#if ENABLED(NEOPIXEL_RGBW_LED)
1623
-  #define NEOPIXEL_PIN    4       // D4 (EXP2-5 on Printrboard)
1624
-  #define NEOPIXEL_PIXELS 3
1625
-  //#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
1627
+//#define NEOPIXEL_LED
1628
+#if ENABLED(NEOPIXEL_LED)
1629
+  #define NEOPIXEL_TYPE   NEO_GRB  // NEO_GRBW / NEO_GRB - four/three channel driver type (definned in Adafruit_NeoPixel.h)
1630
+  #define NEOPIXEL_PIN    4        // LED driving pin on motherboard 4 => D4 (EXP2-5 on Printrboard) / 30 => PC7 (EXP3-13 on Rumba)
1631
+  #define NEOPIXEL_PIXELS 30       // Number of LEDs on strip
1632
+  #define NEOPIXEL_IS_SEQUENTIAL   // Sequential display for temperature change - LED by LED. Comment out for all LEDs to change at once.
1633
+  #define NEOPIXEL_BRIGHTNESS 255  // Initial brightness 0-255
1634
+  //#define NEOPIXEL_STARTUP_TEST  // Cycle through colors at startup
1626 1635
 #endif
1627 1636
 
1628 1637
 /**
@@ -1636,7 +1645,7 @@
1636 1645
  *  - Change to green once print has finished
1637 1646
  *  - Turn off after the print has finished and the user has pushed a button
1638 1647
  */
1639
-#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
1648
+#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_LED)
1640 1649
   #define PRINTER_EVENT_LEDS
1641 1650
 #endif
1642 1651
 

+ 19
- 10
Marlin/src/config/examples/Sanguinololu/Configuration.h View File

@@ -1619,29 +1619,38 @@
1619 1619
  * Adds the M150 command to set the LED (or LED strip) color.
1620 1620
  * If pins are PWM capable (e.g., 4, 5, 6, 11) then a range of
1621 1621
  * luminance values can be set from 0 to 255.
1622
+ * For Neopixel LED overall brightness parameters is also available
1622 1623
  *
1623 1624
  * *** CAUTION ***
1624 1625
  *  LED Strips require a MOFSET Chip between PWM lines and LEDs,
1625 1626
  *  as the Arduino cannot handle the current the LEDs will require.
1626 1627
  *  Failure to follow this precaution can destroy your Arduino!
1628
+ *  Neopixel LED is 5V powered, but linear 5V regulator on Arduino
1629
+ *  cannot handle the current, separate 5V power supply must be used
1627 1630
  * *** CAUTION ***
1628 1631
  *
1632
+ * LED type. This options are mutualy exclusive. Uncomment only one.
1633
+ *
1629 1634
  */
1630
-#define RGB_LED
1635
+
1636
+//#define RGB_LED
1631 1637
 //#define RGBW_LED
1632 1638
 #if ENABLED(RGB_LED) || ENABLED(RGBW_LED)
1633
-  #define RGB_LED_R_PIN 11
1634
-  #define RGB_LED_G_PIN 10
1635
-  #define RGB_LED_B_PIN 17
1639
+  #define RGB_LED_R_PIN 34
1640
+  #define RGB_LED_G_PIN 43
1641
+  #define RGB_LED_B_PIN 35
1636 1642
   #define RGB_LED_W_PIN -1
1637 1643
 #endif
1638 1644
 
1639 1645
 // Support for Adafruit Neopixel LED driver
1640
-//#define NEOPIXEL_RGBW_LED
1641
-#if ENABLED(NEOPIXEL_RGBW_LED)
1642
-  #define NEOPIXEL_PIN    4       // D4 (EXP2-5 on Printrboard)
1643
-  #define NEOPIXEL_PIXELS 3
1644
-  //#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
1646
+//#define NEOPIXEL_LED
1647
+#if ENABLED(NEOPIXEL_LED)
1648
+  #define NEOPIXEL_TYPE   NEO_GRB  // NEO_GRBW / NEO_GRB - four/three channel driver type (definned in Adafruit_NeoPixel.h)
1649
+  #define NEOPIXEL_PIN    4        // LED driving pin on motherboard 4 => D4 (EXP2-5 on Printrboard) / 30 => PC7 (EXP3-13 on Rumba)
1650
+  #define NEOPIXEL_PIXELS 30       // Number of LEDs on strip
1651
+  #define NEOPIXEL_IS_SEQUENTIAL   // Sequential display for temperature change - LED by LED. Comment out for all LEDs to change at once.
1652
+  #define NEOPIXEL_BRIGHTNESS 255  // Initial brightness 0-255
1653
+  //#define NEOPIXEL_STARTUP_TEST  // Cycle through colors at startup
1645 1654
 #endif
1646 1655
 
1647 1656
 /**
@@ -1655,7 +1664,7 @@
1655 1664
  *  - Change to green once print has finished
1656 1665
  *  - Turn off after the print has finished and the user has pushed a button
1657 1666
  */
1658
-#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
1667
+#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_LED)
1659 1668
   #define PRINTER_EVENT_LEDS
1660 1669
 #endif
1661 1670
 

+ 15
- 6
Marlin/src/config/examples/TinyBoy2/Configuration.h View File

@@ -1644,14 +1644,20 @@
1644 1644
  * Adds the M150 command to set the LED (or LED strip) color.
1645 1645
  * If pins are PWM capable (e.g., 4, 5, 6, 11) then a range of
1646 1646
  * luminance values can be set from 0 to 255.
1647
+ * For Neopixel LED overall brightness parameters is also available
1647 1648
  *
1648 1649
  * *** CAUTION ***
1649 1650
  *  LED Strips require a MOFSET Chip between PWM lines and LEDs,
1650 1651
  *  as the Arduino cannot handle the current the LEDs will require.
1651 1652
  *  Failure to follow this precaution can destroy your Arduino!
1653
+ *  Neopixel LED is 5V powered, but linear 5V regulator on Arduino
1654
+ *  cannot handle the current, separate 5V power supply must be used
1652 1655
  * *** CAUTION ***
1653 1656
  *
1657
+ * LED type. This options are mutualy exclusive. Uncomment only one.
1658
+ *
1654 1659
  */
1660
+
1655 1661
 //#define RGB_LED
1656 1662
 //#define RGBW_LED
1657 1663
 #if ENABLED(RGB_LED) || ENABLED(RGBW_LED)
@@ -1662,11 +1668,14 @@
1662 1668
 #endif
1663 1669
 
1664 1670
 // Support for Adafruit Neopixel LED driver
1665
-//#define NEOPIXEL_RGBW_LED
1666
-#if ENABLED(NEOPIXEL_RGBW_LED)
1667
-  #define NEOPIXEL_PIN    4       // D4 (EXP2-5 on Printrboard)
1668
-  #define NEOPIXEL_PIXELS 3
1669
-  //#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
1671
+//#define NEOPIXEL_LED
1672
+#if ENABLED(NEOPIXEL_LED)
1673
+  #define NEOPIXEL_TYPE   NEO_GRB  // NEO_GRBW / NEO_GRB - four/three channel driver type (definned in Adafruit_NeoPixel.h)
1674
+  #define NEOPIXEL_PIN    4        // LED driving pin on motherboard 4 => D4 (EXP2-5 on Printrboard) / 30 => PC7 (EXP3-13 on Rumba)
1675
+  #define NEOPIXEL_PIXELS 30       // Number of LEDs on strip
1676
+  #define NEOPIXEL_IS_SEQUENTIAL   // Sequential display for temperature change - LED by LED. Comment out for all LEDs to change at once.
1677
+  #define NEOPIXEL_BRIGHTNESS 255  // Initial brightness 0-255
1678
+  //#define NEOPIXEL_STARTUP_TEST  // Cycle through colors at startup
1670 1679
 #endif
1671 1680
 
1672 1681
 /**
@@ -1680,7 +1689,7 @@
1680 1689
  *  - Change to green once print has finished
1681 1690
  *  - Turn off after the print has finished and the user has pushed a button
1682 1691
  */
1683
-#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
1692
+#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_LED)
1684 1693
   #define PRINTER_EVENT_LEDS
1685 1694
 #endif
1686 1695
 

+ 15
- 6
Marlin/src/config/examples/Velleman/K8200/Configuration.h View File

@@ -1623,14 +1623,20 @@
1623 1623
  * Adds the M150 command to set the LED (or LED strip) color.
1624 1624
  * If pins are PWM capable (e.g., 4, 5, 6, 11) then a range of
1625 1625
  * luminance values can be set from 0 to 255.
1626
+ * For Neopixel LED overall brightness parameters is also available
1626 1627
  *
1627 1628
  * *** CAUTION ***
1628 1629
  *  LED Strips require a MOFSET Chip between PWM lines and LEDs,
1629 1630
  *  as the Arduino cannot handle the current the LEDs will require.
1630 1631
  *  Failure to follow this precaution can destroy your Arduino!
1632
+ *  Neopixel LED is 5V powered, but linear 5V regulator on Arduino
1633
+ *  cannot handle the current, separate 5V power supply must be used
1631 1634
  * *** CAUTION ***
1632 1635
  *
1636
+ * LED type. This options are mutualy exclusive. Uncomment only one.
1637
+ *
1633 1638
  */
1639
+
1634 1640
 //#define RGB_LED
1635 1641
 //#define RGBW_LED
1636 1642
 #if ENABLED(RGB_LED) || ENABLED(RGBW_LED)
@@ -1641,11 +1647,14 @@
1641 1647
 #endif
1642 1648
 
1643 1649
 // Support for Adafruit Neopixel LED driver
1644
-//#define NEOPIXEL_RGBW_LED
1645
-#if ENABLED(NEOPIXEL_RGBW_LED)
1646
-  #define NEOPIXEL_PIN    4       // D4 (EXP2-5 on Printrboard)
1647
-  #define NEOPIXEL_PIXELS 3
1648
-  //#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
1650
+//#define NEOPIXEL_LED
1651
+#if ENABLED(NEOPIXEL_LED)
1652
+  #define NEOPIXEL_TYPE   NEO_GRB  // NEO_GRBW / NEO_GRB - four/three channel driver type (definned in Adafruit_NeoPixel.h)
1653
+  #define NEOPIXEL_PIN    4        // LED driving pin on motherboard 4 => D4 (EXP2-5 on Printrboard) / 30 => PC7 (EXP3-13 on Rumba)
1654
+  #define NEOPIXEL_PIXELS 30       // Number of LEDs on strip
1655
+  #define NEOPIXEL_IS_SEQUENTIAL   // Sequential display for temperature change - LED by LED. Comment out for all LEDs to change at once.
1656
+  #define NEOPIXEL_BRIGHTNESS 255  // Initial brightness 0-255
1657
+  //#define NEOPIXEL_STARTUP_TEST  // Cycle through colors at startup
1649 1658
 #endif
1650 1659
 
1651 1660
 /**
@@ -1659,7 +1668,7 @@
1659 1668
  *  - Change to green once print has finished
1660 1669
  *  - Turn off after the print has finished and the user has pushed a button
1661 1670
  */
1662
-#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
1671
+#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_LED)
1663 1672
   #define PRINTER_EVENT_LEDS
1664 1673
 #endif
1665 1674
 

+ 15
- 6
Marlin/src/config/examples/Velleman/K8400/Configuration.h View File

@@ -1588,14 +1588,20 @@
1588 1588
  * Adds the M150 command to set the LED (or LED strip) color.
1589 1589
  * If pins are PWM capable (e.g., 4, 5, 6, 11) then a range of
1590 1590
  * luminance values can be set from 0 to 255.
1591
+ * For Neopixel LED overall brightness parameters is also available
1591 1592
  *
1592 1593
  * *** CAUTION ***
1593 1594
  *  LED Strips require a MOFSET Chip between PWM lines and LEDs,
1594 1595
  *  as the Arduino cannot handle the current the LEDs will require.
1595 1596
  *  Failure to follow this precaution can destroy your Arduino!
1597
+ *  Neopixel LED is 5V powered, but linear 5V regulator on Arduino
1598
+ *  cannot handle the current, separate 5V power supply must be used
1596 1599
  * *** CAUTION ***
1597 1600
  *
1601
+ * LED type. This options are mutualy exclusive. Uncomment only one.
1602
+ *
1598 1603
  */
1604
+
1599 1605
 //#define RGB_LED
1600 1606
 //#define RGBW_LED
1601 1607
 #if ENABLED(RGB_LED) || ENABLED(RGBW_LED)
@@ -1606,11 +1612,14 @@
1606 1612
 #endif
1607 1613
 
1608 1614
 // Support for Adafruit Neopixel LED driver
1609
-//#define NEOPIXEL_RGBW_LED
1610
-#if ENABLED(NEOPIXEL_RGBW_LED)
1611
-  #define NEOPIXEL_PIN    4       // D4 (EXP2-5 on Printrboard)
1612
-  #define NEOPIXEL_PIXELS 3
1613
-  //#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
1615
+//#define NEOPIXEL_LED
1616
+#if ENABLED(NEOPIXEL_LED)
1617
+  #define NEOPIXEL_TYPE   NEO_GRB  // NEO_GRBW / NEO_GRB - four/three channel driver type (definned in Adafruit_NeoPixel.h)
1618
+  #define NEOPIXEL_PIN    4        // LED driving pin on motherboard 4 => D4 (EXP2-5 on Printrboard) / 30 => PC7 (EXP3-13 on Rumba)
1619
+  #define NEOPIXEL_PIXELS 30       // Number of LEDs on strip
1620
+  #define NEOPIXEL_IS_SEQUENTIAL   // Sequential display for temperature change - LED by LED. Comment out for all LEDs to change at once.
1621
+  #define NEOPIXEL_BRIGHTNESS 255  // Initial brightness 0-255
1622
+  //#define NEOPIXEL_STARTUP_TEST  // Cycle through colors at startup
1614 1623
 #endif
1615 1624
 
1616 1625
 /**
@@ -1624,7 +1633,7 @@
1624 1633
  *  - Change to green once print has finished
1625 1634
  *  - Turn off after the print has finished and the user has pushed a button
1626 1635
  */
1627
-#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
1636
+#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_LED)
1628 1637
   #define PRINTER_EVENT_LEDS
1629 1638
 #endif
1630 1639
 

+ 15
- 6
Marlin/src/config/examples/Velleman/K8400/Dual-head/Configuration.h View File

@@ -1588,14 +1588,20 @@
1588 1588
  * Adds the M150 command to set the LED (or LED strip) color.
1589 1589
  * If pins are PWM capable (e.g., 4, 5, 6, 11) then a range of
1590 1590
  * luminance values can be set from 0 to 255.
1591
+ * For Neopixel LED overall brightness parameters is also available
1591 1592
  *
1592 1593
  * *** CAUTION ***
1593 1594
  *  LED Strips require a MOFSET Chip between PWM lines and LEDs,
1594 1595
  *  as the Arduino cannot handle the current the LEDs will require.
1595 1596
  *  Failure to follow this precaution can destroy your Arduino!
1597
+ *  Neopixel LED is 5V powered, but linear 5V regulator on Arduino
1598
+ *  cannot handle the current, separate 5V power supply must be used
1596 1599
  * *** CAUTION ***
1597 1600
  *
1601
+ * LED type. This options are mutualy exclusive. Uncomment only one.
1602
+ *
1598 1603
  */
1604
+
1599 1605
 //#define RGB_LED
1600 1606
 //#define RGBW_LED
1601 1607
 #if ENABLED(RGB_LED) || ENABLED(RGBW_LED)
@@ -1606,11 +1612,14 @@
1606 1612
 #endif
1607 1613
 
1608 1614
 // Support for Adafruit Neopixel LED driver
1609
-//#define NEOPIXEL_RGBW_LED
1610
-#if ENABLED(NEOPIXEL_RGBW_LED)
1611
-  #define NEOPIXEL_PIN    4       // D4 (EXP2-5 on Printrboard)
1612
-  #define NEOPIXEL_PIXELS 3
1613
-  //#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
1615
+//#define NEOPIXEL_LED
1616
+#if ENABLED(NEOPIXEL_LED)
1617
+  #define NEOPIXEL_TYPE   NEO_GRB  // NEO_GRBW / NEO_GRB - four/three channel driver type (definned in Adafruit_NeoPixel.h)
1618
+  #define NEOPIXEL_PIN    4        // LED driving pin on motherboard 4 => D4 (EXP2-5 on Printrboard) / 30 => PC7 (EXP3-13 on Rumba)
1619
+  #define NEOPIXEL_PIXELS 30       // Number of LEDs on strip
1620
+  #define NEOPIXEL_IS_SEQUENTIAL   // Sequential display for temperature change - LED by LED. Comment out for all LEDs to change at once.
1621
+  #define NEOPIXEL_BRIGHTNESS 255  // Initial brightness 0-255
1622
+  //#define NEOPIXEL_STARTUP_TEST  // Cycle through colors at startup
1614 1623
 #endif
1615 1624
 
1616 1625
 /**
@@ -1624,7 +1633,7 @@
1624 1633
  *  - Change to green once print has finished
1625 1634
  *  - Turn off after the print has finished and the user has pushed a button
1626 1635
  */
1627
-#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
1636
+#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_LED)
1628 1637
   #define PRINTER_EVENT_LEDS
1629 1638
 #endif
1630 1639
 

+ 15
- 6
Marlin/src/config/examples/adafruit/ST7565/Configuration.h View File

@@ -1588,14 +1588,20 @@
1588 1588
  * Adds the M150 command to set the LED (or LED strip) color.
1589 1589
  * If pins are PWM capable (e.g., 4, 5, 6, 11) then a range of
1590 1590
  * luminance values can be set from 0 to 255.
1591
+ * For Neopixel LED overall brightness parameters is also available
1591 1592
  *
1592 1593
  * *** CAUTION ***
1593 1594
  *  LED Strips require a MOFSET Chip between PWM lines and LEDs,
1594 1595
  *  as the Arduino cannot handle the current the LEDs will require.
1595 1596
  *  Failure to follow this precaution can destroy your Arduino!
1597
+ *  Neopixel LED is 5V powered, but linear 5V regulator on Arduino
1598
+ *  cannot handle the current, separate 5V power supply must be used
1596 1599
  * *** CAUTION ***
1597 1600
  *
1601
+ * LED type. This options are mutualy exclusive. Uncomment only one.
1602
+ *
1598 1603
  */
1604
+
1599 1605
 //#define RGB_LED
1600 1606
 //#define RGBW_LED
1601 1607
 #if ENABLED(RGB_LED) || ENABLED(RGBW_LED)
@@ -1606,11 +1612,14 @@
1606 1612
 #endif
1607 1613
 
1608 1614
 // Support for Adafruit Neopixel LED driver
1609
-//#define NEOPIXEL_RGBW_LED
1610
-#if ENABLED(NEOPIXEL_RGBW_LED)
1611
-  #define NEOPIXEL_PIN    4       // D4 (EXP2-5 on Printrboard)
1612
-  #define NEOPIXEL_PIXELS 3
1613
-  //#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
1615
+//#define NEOPIXEL_LED
1616
+#if ENABLED(NEOPIXEL_LED)
1617
+  #define NEOPIXEL_TYPE   NEO_GRB  // NEO_GRBW / NEO_GRB - four/three channel driver type (definned in Adafruit_NeoPixel.h)
1618
+  #define NEOPIXEL_PIN    4        // LED driving pin on motherboard 4 => D4 (EXP2-5 on Printrboard) / 30 => PC7 (EXP3-13 on Rumba)
1619
+  #define NEOPIXEL_PIXELS 30       // Number of LEDs on strip
1620
+  #define NEOPIXEL_IS_SEQUENTIAL   // Sequential display for temperature change - LED by LED. Comment out for all LEDs to change at once.
1621
+  #define NEOPIXEL_BRIGHTNESS 255  // Initial brightness 0-255
1622
+  //#define NEOPIXEL_STARTUP_TEST  // Cycle through colors at startup
1614 1623
 #endif
1615 1624
 
1616 1625
 /**
@@ -1624,7 +1633,7 @@
1624 1633
  *  - Change to green once print has finished
1625 1634
  *  - Turn off after the print has finished and the user has pushed a button
1626 1635
  */
1627
-#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
1636
+#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_LED)
1628 1637
   #define PRINTER_EVENT_LEDS
1629 1638
 #endif
1630 1639
 

+ 15
- 6
Marlin/src/config/examples/delta/FLSUN/auto_calibrate/Configuration.h View File

@@ -1716,14 +1716,20 @@
1716 1716
  * Adds the M150 command to set the LED (or LED strip) color.
1717 1717
  * If pins are PWM capable (e.g., 4, 5, 6, 11) then a range of
1718 1718
  * luminance values can be set from 0 to 255.
1719
+ * For Neopixel LED overall brightness parameters is also available
1719 1720
  *
1720 1721
  * *** CAUTION ***
1721 1722
  *  LED Strips require a MOFSET Chip between PWM lines and LEDs,
1722 1723
  *  as the Arduino cannot handle the current the LEDs will require.
1723 1724
  *  Failure to follow this precaution can destroy your Arduino!
1725
+ *  Neopixel LED is 5V powered, but linear 5V regulator on Arduino
1726
+ *  cannot handle the current, separate 5V power supply must be used
1724 1727
  * *** CAUTION ***
1725 1728
  *
1729
+ * LED type. This options are mutualy exclusive. Uncomment only one.
1730
+ *
1726 1731
  */
1732
+
1727 1733
 //#define RGB_LED
1728 1734
 //#define RGBW_LED
1729 1735
 #if ENABLED(RGB_LED) || ENABLED(RGBW_LED)
@@ -1734,11 +1740,14 @@
1734 1740
 #endif
1735 1741
 
1736 1742
 // Support for Adafruit Neopixel LED driver
1737
-//#define NEOPIXEL_RGBW_LED
1738
-#if ENABLED(NEOPIXEL_RGBW_LED)
1739
-  #define NEOPIXEL_PIN    4       // D4 (EXP2-5 on Printrboard)
1740
-  #define NEOPIXEL_PIXELS 3
1741
-  //#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
1743
+//#define NEOPIXEL_LED
1744
+#if ENABLED(NEOPIXEL_LED)
1745
+  #define NEOPIXEL_TYPE   NEO_GRB  // NEO_GRBW / NEO_GRB - four/three channel driver type (definned in Adafruit_NeoPixel.h)
1746
+  #define NEOPIXEL_PIN    4        // LED driving pin on motherboard 4 => D4 (EXP2-5 on Printrboard) / 30 => PC7 (EXP3-13 on Rumba)
1747
+  #define NEOPIXEL_PIXELS 30       // Number of LEDs on strip
1748
+  #define NEOPIXEL_IS_SEQUENTIAL   // Sequential display for temperature change - LED by LED. Comment out for all LEDs to change at once.
1749
+  #define NEOPIXEL_BRIGHTNESS 255  // Initial brightness 0-255
1750
+  //#define NEOPIXEL_STARTUP_TEST  // Cycle through colors at startup
1742 1751
 #endif
1743 1752
 
1744 1753
 /**
@@ -1752,7 +1761,7 @@
1752 1761
  *  - Change to green once print has finished
1753 1762
  *  - Turn off after the print has finished and the user has pushed a button
1754 1763
  */
1755
-#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
1764
+#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_LED)
1756 1765
   #define PRINTER_EVENT_LEDS
1757 1766
 #endif
1758 1767
 

+ 15
- 6
Marlin/src/config/examples/delta/FLSUN/kossel_mini/Configuration.h View File

@@ -1709,14 +1709,20 @@
1709 1709
  * Adds the M150 command to set the LED (or LED strip) color.
1710 1710
  * If pins are PWM capable (e.g., 4, 5, 6, 11) then a range of
1711 1711
  * luminance values can be set from 0 to 255.
1712
+ * For Neopixel LED overall brightness parameters is also available
1712 1713
  *
1713 1714
  * *** CAUTION ***
1714 1715
  *  LED Strips require a MOFSET Chip between PWM lines and LEDs,
1715 1716
  *  as the Arduino cannot handle the current the LEDs will require.
1716 1717
  *  Failure to follow this precaution can destroy your Arduino!
1718
+ *  Neopixel LED is 5V powered, but linear 5V regulator on Arduino
1719
+ *  cannot handle the current, separate 5V power supply must be used
1717 1720
  * *** CAUTION ***
1718 1721
  *
1722
+ * LED type. This options are mutualy exclusive. Uncomment only one.
1723
+ *
1719 1724
  */
1725
+
1720 1726
 //#define RGB_LED
1721 1727
 //#define RGBW_LED
1722 1728
 #if ENABLED(RGB_LED) || ENABLED(RGBW_LED)
@@ -1727,11 +1733,14 @@
1727 1733
 #endif
1728 1734
 
1729 1735
 // Support for Adafruit Neopixel LED driver
1730
-//#define NEOPIXEL_RGBW_LED
1731
-#if ENABLED(NEOPIXEL_RGBW_LED)
1732
-  #define NEOPIXEL_PIN    4       // D4 (EXP2-5 on Printrboard)
1733
-  #define NEOPIXEL_PIXELS 3
1734
-  //#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
1736
+//#define NEOPIXEL_LED
1737
+#if ENABLED(NEOPIXEL_LED)
1738
+  #define NEOPIXEL_TYPE   NEO_GRB  // NEO_GRBW / NEO_GRB - four/three channel driver type (definned in Adafruit_NeoPixel.h)
1739
+  #define NEOPIXEL_PIN    4        // LED driving pin on motherboard 4 => D4 (EXP2-5 on Printrboard) / 30 => PC7 (EXP3-13 on Rumba)
1740
+  #define NEOPIXEL_PIXELS 30       // Number of LEDs on strip
1741
+  #define NEOPIXEL_IS_SEQUENTIAL   // Sequential display for temperature change - LED by LED. Comment out for all LEDs to change at once.
1742
+  #define NEOPIXEL_BRIGHTNESS 255  // Initial brightness 0-255
1743
+  //#define NEOPIXEL_STARTUP_TEST  // Cycle through colors at startup
1735 1744
 #endif
1736 1745
 
1737 1746
 /**
@@ -1745,7 +1754,7 @@
1745 1754
  *  - Change to green once print has finished
1746 1755
  *  - Turn off after the print has finished and the user has pushed a button
1747 1756
  */
1748
-#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
1757
+#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_LED)
1749 1758
   #define PRINTER_EVENT_LEDS
1750 1759
 #endif
1751 1760
 

+ 15
- 6
Marlin/src/config/examples/delta/generic/Configuration.h View File

@@ -1704,14 +1704,20 @@
1704 1704
  * Adds the M150 command to set the LED (or LED strip) color.
1705 1705
  * If pins are PWM capable (e.g., 4, 5, 6, 11) then a range of
1706 1706
  * luminance values can be set from 0 to 255.
1707
+ * For Neopixel LED overall brightness parameters is also available
1707 1708
  *
1708 1709
  * *** CAUTION ***
1709 1710
  *  LED Strips require a MOFSET Chip between PWM lines and LEDs,
1710 1711
  *  as the Arduino cannot handle the current the LEDs will require.
1711 1712
  *  Failure to follow this precaution can destroy your Arduino!
1713
+ *  Neopixel LED is 5V powered, but linear 5V regulator on Arduino
1714
+ *  cannot handle the current, separate 5V power supply must be used
1712 1715
  * *** CAUTION ***
1713 1716
  *
1717
+ * LED type. This options are mutualy exclusive. Uncomment only one.
1718
+ *
1714 1719
  */
1720
+
1715 1721
 //#define RGB_LED
1716 1722
 //#define RGBW_LED
1717 1723
 #if ENABLED(RGB_LED) || ENABLED(RGBW_LED)
@@ -1722,11 +1728,14 @@
1722 1728
 #endif
1723 1729
 
1724 1730
 // Support for Adafruit Neopixel LED driver
1725
-//#define NEOPIXEL_RGBW_LED
1726
-#if ENABLED(NEOPIXEL_RGBW_LED)
1727
-  #define NEOPIXEL_PIN    4       // D4 (EXP2-5 on Printrboard)
1728
-  #define NEOPIXEL_PIXELS 3
1729
-  //#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
1731
+//#define NEOPIXEL_LED
1732
+#if ENABLED(NEOPIXEL_LED)
1733
+  #define NEOPIXEL_TYPE   NEO_GRB  // NEO_GRBW / NEO_GRB - four/three channel driver type (definned in Adafruit_NeoPixel.h)
1734
+  #define NEOPIXEL_PIN    4        // LED driving pin on motherboard 4 => D4 (EXP2-5 on Printrboard) / 30 => PC7 (EXP3-13 on Rumba)
1735
+  #define NEOPIXEL_PIXELS 30       // Number of LEDs on strip
1736
+  #define NEOPIXEL_IS_SEQUENTIAL   // Sequential display for temperature change - LED by LED. Comment out for all LEDs to change at once.
1737
+  #define NEOPIXEL_BRIGHTNESS 255  // Initial brightness 0-255
1738
+  //#define NEOPIXEL_STARTUP_TEST  // Cycle through colors at startup
1730 1739
 #endif
1731 1740
 
1732 1741
 /**
@@ -1740,7 +1749,7 @@
1740 1749
  *  - Change to green once print has finished
1741 1750
  *  - Turn off after the print has finished and the user has pushed a button
1742 1751
  */
1743
-#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
1752
+#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_LED)
1744 1753
   #define PRINTER_EVENT_LEDS
1745 1754
 #endif
1746 1755
 

+ 15
- 6
Marlin/src/config/examples/delta/kossel_mini/Configuration.h View File

@@ -1707,14 +1707,20 @@
1707 1707
  * Adds the M150 command to set the LED (or LED strip) color.
1708 1708
  * If pins are PWM capable (e.g., 4, 5, 6, 11) then a range of
1709 1709
  * luminance values can be set from 0 to 255.
1710
+ * For Neopixel LED overall brightness parameters is also available
1710 1711
  *
1711 1712
  * *** CAUTION ***
1712 1713
  *  LED Strips require a MOFSET Chip between PWM lines and LEDs,
1713 1714
  *  as the Arduino cannot handle the current the LEDs will require.
1714 1715
  *  Failure to follow this precaution can destroy your Arduino!
1716
+ *  Neopixel LED is 5V powered, but linear 5V regulator on Arduino
1717
+ *  cannot handle the current, separate 5V power supply must be used
1715 1718
  * *** CAUTION ***
1716 1719
  *
1720
+ * LED type. This options are mutualy exclusive. Uncomment only one.
1721
+ *
1717 1722
  */
1723
+
1718 1724
 //#define RGB_LED
1719 1725
 //#define RGBW_LED
1720 1726
 #if ENABLED(RGB_LED) || ENABLED(RGBW_LED)
@@ -1725,11 +1731,14 @@
1725 1731
 #endif
1726 1732
 
1727 1733
 // Support for Adafruit Neopixel LED driver
1728
-//#define NEOPIXEL_RGBW_LED
1729
-#if ENABLED(NEOPIXEL_RGBW_LED)
1730
-  #define NEOPIXEL_PIN    4       // D4 (EXP2-5 on Printrboard)
1731
-  #define NEOPIXEL_PIXELS 3
1732
-  //#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
1734
+//#define NEOPIXEL_LED
1735
+#if ENABLED(NEOPIXEL_LED)
1736
+  #define NEOPIXEL_TYPE   NEO_GRB  // NEO_GRBW / NEO_GRB - four/three channel driver type (definned in Adafruit_NeoPixel.h)
1737
+  #define NEOPIXEL_PIN    4        // LED driving pin on motherboard 4 => D4 (EXP2-5 on Printrboard) / 30 => PC7 (EXP3-13 on Rumba)
1738
+  #define NEOPIXEL_PIXELS 30       // Number of LEDs on strip
1739
+  #define NEOPIXEL_IS_SEQUENTIAL   // Sequential display for temperature change - LED by LED. Comment out for all LEDs to change at once.
1740
+  #define NEOPIXEL_BRIGHTNESS 255  // Initial brightness 0-255
1741
+  //#define NEOPIXEL_STARTUP_TEST  // Cycle through colors at startup
1733 1742
 #endif
1734 1743
 
1735 1744
 /**
@@ -1743,7 +1752,7 @@
1743 1752
  *  - Change to green once print has finished
1744 1753
  *  - Turn off after the print has finished and the user has pushed a button
1745 1754
  */
1746
-#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
1755
+#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_LED)
1747 1756
   #define PRINTER_EVENT_LEDS
1748 1757
 #endif
1749 1758
 

+ 15
- 6
Marlin/src/config/examples/delta/kossel_pro/Configuration.h View File

@@ -1707,14 +1707,20 @@
1707 1707
  * Adds the M150 command to set the LED (or LED strip) color.
1708 1708
  * If pins are PWM capable (e.g., 4, 5, 6, 11) then a range of
1709 1709
  * luminance values can be set from 0 to 255.
1710
+ * For Neopixel LED overall brightness parameters is also available
1710 1711
  *
1711 1712
  * *** CAUTION ***
1712 1713
  *  LED Strips require a MOFSET Chip between PWM lines and LEDs,
1713 1714
  *  as the Arduino cannot handle the current the LEDs will require.
1714 1715
  *  Failure to follow this precaution can destroy your Arduino!
1716
+ *  Neopixel LED is 5V powered, but linear 5V regulator on Arduino
1717
+ *  cannot handle the current, separate 5V power supply must be used
1715 1718
  * *** CAUTION ***
1716 1719
  *
1720
+ * LED type. This options are mutualy exclusive. Uncomment only one.
1721
+ *
1717 1722
  */
1723
+
1718 1724
 //#define RGB_LED
1719 1725
 //#define RGBW_LED
1720 1726
 #if ENABLED(RGB_LED) || ENABLED(RGBW_LED)
@@ -1725,11 +1731,14 @@
1725 1731
 #endif
1726 1732
 
1727 1733
 // Support for Adafruit Neopixel LED driver
1728
-//#define NEOPIXEL_RGBW_LED
1729
-#if ENABLED(NEOPIXEL_RGBW_LED)
1730
-  #define NEOPIXEL_PIN    4       // D4 (EXP2-5 on Printrboard)
1731
-  #define NEOPIXEL_PIXELS 3
1732
-  //#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
1734
+//#define NEOPIXEL_LED
1735
+#if ENABLED(NEOPIXEL_LED)
1736
+  #define NEOPIXEL_TYPE   NEO_GRB  // NEO_GRBW / NEO_GRB - four/three channel driver type (definned in Adafruit_NeoPixel.h)
1737
+  #define NEOPIXEL_PIN    4        // LED driving pin on motherboard 4 => D4 (EXP2-5 on Printrboard) / 30 => PC7 (EXP3-13 on Rumba)
1738
+  #define NEOPIXEL_PIXELS 30       // Number of LEDs on strip
1739
+  #define NEOPIXEL_IS_SEQUENTIAL   // Sequential display for temperature change - LED by LED. Comment out for all LEDs to change at once.
1740
+  #define NEOPIXEL_BRIGHTNESS 255  // Initial brightness 0-255
1741
+  //#define NEOPIXEL_STARTUP_TEST  // Cycle through colors at startup
1733 1742
 #endif
1734 1743
 
1735 1744
 /**
@@ -1743,7 +1752,7 @@
1743 1752
  *  - Change to green once print has finished
1744 1753
  *  - Turn off after the print has finished and the user has pushed a button
1745 1754
  */
1746
-#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
1755
+#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_LED)
1747 1756
   #define PRINTER_EVENT_LEDS
1748 1757
 #endif
1749 1758
 

+ 15
- 6
Marlin/src/config/examples/delta/kossel_xl/Configuration.h View File

@@ -1716,14 +1716,20 @@
1716 1716
  * Adds the M150 command to set the LED (or LED strip) color.
1717 1717
  * If pins are PWM capable (e.g., 4, 5, 6, 11) then a range of
1718 1718
  * luminance values can be set from 0 to 255.
1719
+ * For Neopixel LED overall brightness parameters is also available
1719 1720
  *
1720 1721
  * *** CAUTION ***
1721 1722
  *  LED Strips require a MOFSET Chip between PWM lines and LEDs,
1722 1723
  *  as the Arduino cannot handle the current the LEDs will require.
1723 1724
  *  Failure to follow this precaution can destroy your Arduino!
1725
+ *  Neopixel LED is 5V powered, but linear 5V regulator on Arduino
1726
+ *  cannot handle the current, separate 5V power supply must be used
1724 1727
  * *** CAUTION ***
1725 1728
  *
1729
+ * LED type. This options are mutualy exclusive. Uncomment only one.
1730
+ *
1726 1731
  */
1732
+
1727 1733
 //#define RGB_LED
1728 1734
 //#define RGBW_LED
1729 1735
 #if ENABLED(RGB_LED) || ENABLED(RGBW_LED)
@@ -1734,11 +1740,14 @@
1734 1740
 #endif
1735 1741
 
1736 1742
 // Support for Adafruit Neopixel LED driver
1737
-//#define NEOPIXEL_RGBW_LED
1738
-#if ENABLED(NEOPIXEL_RGBW_LED)
1739
-  #define NEOPIXEL_PIN    4       // D4 (EXP2-5 on Printrboard)
1740
-  #define NEOPIXEL_PIXELS 3
1741
-  //#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
1743
+//#define NEOPIXEL_LED
1744
+#if ENABLED(NEOPIXEL_LED)
1745
+  #define NEOPIXEL_TYPE   NEO_GRB  // NEO_GRBW / NEO_GRB - four/three channel driver type (definned in Adafruit_NeoPixel.h)
1746
+  #define NEOPIXEL_PIN    4        // LED driving pin on motherboard 4 => D4 (EXP2-5 on Printrboard) / 30 => PC7 (EXP3-13 on Rumba)
1747
+  #define NEOPIXEL_PIXELS 30       // Number of LEDs on strip
1748
+  #define NEOPIXEL_IS_SEQUENTIAL   // Sequential display for temperature change - LED by LED. Comment out for all LEDs to change at once.
1749
+  #define NEOPIXEL_BRIGHTNESS 255  // Initial brightness 0-255
1750
+  //#define NEOPIXEL_STARTUP_TEST  // Cycle through colors at startup
1742 1751
 #endif
1743 1752
 
1744 1753
 /**
@@ -1752,7 +1761,7 @@
1752 1761
  *  - Change to green once print has finished
1753 1762
  *  - Turn off after the print has finished and the user has pushed a button
1754 1763
  */
1755
-#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
1764
+#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_LED)
1756 1765
   #define PRINTER_EVENT_LEDS
1757 1766
 #endif
1758 1767
 

+ 15
- 6
Marlin/src/config/examples/gCreate/gMax1.5+/Configuration.h View File

@@ -1602,14 +1602,20 @@
1602 1602
  * Adds the M150 command to set the LED (or LED strip) color.
1603 1603
  * If pins are PWM capable (e.g., 4, 5, 6, 11) then a range of
1604 1604
  * luminance values can be set from 0 to 255.
1605
+ * For Neopixel LED overall brightness parameters is also available
1605 1606
  *
1606 1607
  * *** CAUTION ***
1607 1608
  *  LED Strips require a MOFSET Chip between PWM lines and LEDs,
1608 1609
  *  as the Arduino cannot handle the current the LEDs will require.
1609 1610
  *  Failure to follow this precaution can destroy your Arduino!
1611
+ *  Neopixel LED is 5V powered, but linear 5V regulator on Arduino
1612
+ *  cannot handle the current, separate 5V power supply must be used
1610 1613
  * *** CAUTION ***
1611 1614
  *
1615
+ * LED type. This options are mutualy exclusive. Uncomment only one.
1616
+ *
1612 1617
  */
1618
+
1613 1619
 //#define RGB_LED
1614 1620
 //#define RGBW_LED
1615 1621
 #if ENABLED(RGB_LED) || ENABLED(RGBW_LED)
@@ -1620,11 +1626,14 @@
1620 1626
 #endif
1621 1627
 
1622 1628
 // Support for Adafruit Neopixel LED driver
1623
-//#define NEOPIXEL_RGBW_LED
1624
-#if ENABLED(NEOPIXEL_RGBW_LED)
1625
-  #define NEOPIXEL_PIN    4       // D4 (EXP2-5 on Printrboard)
1626
-  #define NEOPIXEL_PIXELS 3
1627
-  //#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
1629
+//#define NEOPIXEL_LED
1630
+#if ENABLED(NEOPIXEL_LED)
1631
+  #define NEOPIXEL_TYPE   NEO_GRB  // NEO_GRBW / NEO_GRB - four/three channel driver type (definned in Adafruit_NeoPixel.h)
1632
+  #define NEOPIXEL_PIN    4        // LED driving pin on motherboard 4 => D4 (EXP2-5 on Printrboard) / 30 => PC7 (EXP3-13 on Rumba)
1633
+  #define NEOPIXEL_PIXELS 30       // Number of LEDs on strip
1634
+  #define NEOPIXEL_IS_SEQUENTIAL   // Sequential display for temperature change - LED by LED. Comment out for all LEDs to change at once.
1635
+  #define NEOPIXEL_BRIGHTNESS 255  // Initial brightness 0-255
1636
+  //#define NEOPIXEL_STARTUP_TEST  // Cycle through colors at startup
1628 1637
 #endif
1629 1638
 
1630 1639
 /**
@@ -1638,7 +1647,7 @@
1638 1647
  *  - Change to green once print has finished
1639 1648
  *  - Turn off after the print has finished and the user has pushed a button
1640 1649
  */
1641
-#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
1650
+#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_LED)
1642 1651
   #define PRINTER_EVENT_LEDS
1643 1652
 #endif
1644 1653
 

+ 15
- 6
Marlin/src/config/examples/makibox/Configuration.h View File

@@ -1591,14 +1591,20 @@
1591 1591
  * Adds the M150 command to set the LED (or LED strip) color.
1592 1592
  * If pins are PWM capable (e.g., 4, 5, 6, 11) then a range of
1593 1593
  * luminance values can be set from 0 to 255.
1594
+ * For Neopixel LED overall brightness parameters is also available
1594 1595
  *
1595 1596
  * *** CAUTION ***
1596 1597
  *  LED Strips require a MOFSET Chip between PWM lines and LEDs,
1597 1598
  *  as the Arduino cannot handle the current the LEDs will require.
1598 1599
  *  Failure to follow this precaution can destroy your Arduino!
1600
+ *  Neopixel LED is 5V powered, but linear 5V regulator on Arduino
1601
+ *  cannot handle the current, separate 5V power supply must be used
1599 1602
  * *** CAUTION ***
1600 1603
  *
1604
+ * LED type. This options are mutualy exclusive. Uncomment only one.
1605
+ *
1601 1606
  */
1607
+
1602 1608
 //#define RGB_LED
1603 1609
 //#define RGBW_LED
1604 1610
 #if ENABLED(RGB_LED) || ENABLED(RGBW_LED)
@@ -1609,11 +1615,14 @@
1609 1615
 #endif
1610 1616
 
1611 1617
 // Support for Adafruit Neopixel LED driver
1612
-//#define NEOPIXEL_RGBW_LED
1613
-#if ENABLED(NEOPIXEL_RGBW_LED)
1614
-  #define NEOPIXEL_PIN    4       // D4 (EXP2-5 on Printrboard)
1615
-  #define NEOPIXEL_PIXELS 3
1616
-  //#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
1618
+//#define NEOPIXEL_LED
1619
+#if ENABLED(NEOPIXEL_LED)
1620
+  #define NEOPIXEL_TYPE   NEO_GRB  // NEO_GRBW / NEO_GRB - four/three channel driver type (definned in Adafruit_NeoPixel.h)
1621
+  #define NEOPIXEL_PIN    4        // LED driving pin on motherboard 4 => D4 (EXP2-5 on Printrboard) / 30 => PC7 (EXP3-13 on Rumba)
1622
+  #define NEOPIXEL_PIXELS 30       // Number of LEDs on strip
1623
+  #define NEOPIXEL_IS_SEQUENTIAL   // Sequential display for temperature change - LED by LED. Comment out for all LEDs to change at once.
1624
+  #define NEOPIXEL_BRIGHTNESS 255  // Initial brightness 0-255
1625
+  //#define NEOPIXEL_STARTUP_TEST  // Cycle through colors at startup
1617 1626
 #endif
1618 1627
 
1619 1628
 /**
@@ -1627,7 +1636,7 @@
1627 1636
  *  - Change to green once print has finished
1628 1637
  *  - Turn off after the print has finished and the user has pushed a button
1629 1638
  */
1630
-#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
1639
+#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_LED)
1631 1640
   #define PRINTER_EVENT_LEDS
1632 1641
 #endif
1633 1642
 

+ 9
- 6
Marlin/src/config/examples/stm32f103ret6/Configuration.h View File

@@ -1561,11 +1561,14 @@
1561 1561
 #endif
1562 1562
 
1563 1563
 // Support for Adafruit Neopixel LED driver
1564
-//#define NEOPIXEL_RGBW_LED
1565
-#if ENABLED(NEOPIXEL_RGBW_LED)
1566
-  #define NEOPIXEL_PIN    4       // D4 (EXP2-5 on Printrboard)
1567
-  #define NEOPIXEL_PIXELS 3
1568
-  //#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
1564
+//#define NEOPIXEL_LED
1565
+#if ENABLED(NEOPIXEL_LED)
1566
+  #define NEOPIXEL_TYPE   NEO_GRB  // NEO_GRBW / NEO_GRB - four/three channel driver type (definned in Adafruit_NeoPixel.h)
1567
+  #define NEOPIXEL_PIN    4        // LED driving pin on motherboard 4 => D4 (EXP2-5 on Printrboard) / 30 => PC7 (EXP3-13 on Rumba)
1568
+  #define NEOPIXEL_PIXELS 30       // Number of LEDs on strip
1569
+  #define NEOPIXEL_IS_SEQUENTIAL   // Sequential display for temperature change - LED by LED. Comment out for all LEDs to change at once.
1570
+  #define NEOPIXEL_BRIGHTNESS 255  // Initial brightness 0-255
1571
+  //#define NEOPIXEL_STARTUP_TEST  // Cycle through colors at startup
1569 1572
 #endif
1570 1573
 
1571 1574
 /**
@@ -1579,7 +1582,7 @@
1579 1582
  *  - Change to green once print has finished
1580 1583
  *  - Turn off after the print has finished and the user has pushed a button
1581 1584
  */
1582
-#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
1585
+#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_LED)
1583 1586
   #define PRINTER_EVENT_LEDS
1584 1587
 #endif
1585 1588
 

+ 15
- 6
Marlin/src/config/examples/tvrrug/Round2/Configuration.h View File

@@ -1583,14 +1583,20 @@
1583 1583
  * Adds the M150 command to set the LED (or LED strip) color.
1584 1584
  * If pins are PWM capable (e.g., 4, 5, 6, 11) then a range of
1585 1585
  * luminance values can be set from 0 to 255.
1586
+ * For Neopixel LED overall brightness parameters is also available
1586 1587
  *
1587 1588
  * *** CAUTION ***
1588 1589
  *  LED Strips require a MOFSET Chip between PWM lines and LEDs,
1589 1590
  *  as the Arduino cannot handle the current the LEDs will require.
1590 1591
  *  Failure to follow this precaution can destroy your Arduino!
1592
+ *  Neopixel LED is 5V powered, but linear 5V regulator on Arduino
1593
+ *  cannot handle the current, separate 5V power supply must be used
1591 1594
  * *** CAUTION ***
1592 1595
  *
1596
+ * LED type. This options are mutualy exclusive. Uncomment only one.
1597
+ *
1593 1598
  */
1599
+
1594 1600
 //#define RGB_LED
1595 1601
 //#define RGBW_LED
1596 1602
 #if ENABLED(RGB_LED) || ENABLED(RGBW_LED)
@@ -1601,11 +1607,14 @@
1601 1607
 #endif
1602 1608
 
1603 1609
 // Support for Adafruit Neopixel LED driver
1604
-//#define NEOPIXEL_RGBW_LED
1605
-#if ENABLED(NEOPIXEL_RGBW_LED)
1606
-  #define NEOPIXEL_PIN    4       // D4 (EXP2-5 on Printrboard)
1607
-  #define NEOPIXEL_PIXELS 3
1608
-  //#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
1610
+//#define NEOPIXEL_LED
1611
+#if ENABLED(NEOPIXEL_LED)
1612
+  #define NEOPIXEL_TYPE   NEO_GRB  // NEO_GRBW / NEO_GRB - four/three channel driver type (definned in Adafruit_NeoPixel.h)
1613
+  #define NEOPIXEL_PIN    4        // LED driving pin on motherboard 4 => D4 (EXP2-5 on Printrboard) / 30 => PC7 (EXP3-13 on Rumba)
1614
+  #define NEOPIXEL_PIXELS 30       // Number of LEDs on strip
1615
+  #define NEOPIXEL_IS_SEQUENTIAL   // Sequential display for temperature change - LED by LED. Comment out for all LEDs to change at once.
1616
+  #define NEOPIXEL_BRIGHTNESS 255  // Initial brightness 0-255
1617
+  //#define NEOPIXEL_STARTUP_TEST  // Cycle through colors at startup
1609 1618
 #endif
1610 1619
 
1611 1620
 /**
@@ -1619,7 +1628,7 @@
1619 1628
  *  - Change to green once print has finished
1620 1629
  *  - Turn off after the print has finished and the user has pushed a button
1621 1630
  */
1622
-#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
1631
+#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_LED)
1623 1632
   #define PRINTER_EVENT_LEDS
1624 1633
 #endif
1625 1634
 

+ 15
- 6
Marlin/src/config/examples/wt150/Configuration.h View File

@@ -1593,14 +1593,20 @@
1593 1593
  * Adds the M150 command to set the LED (or LED strip) color.
1594 1594
  * If pins are PWM capable (e.g., 4, 5, 6, 11) then a range of
1595 1595
  * luminance values can be set from 0 to 255.
1596
+ * For Neopixel LED overall brightness parameters is also available
1596 1597
  *
1597 1598
  * *** CAUTION ***
1598 1599
  *  LED Strips require a MOFSET Chip between PWM lines and LEDs,
1599 1600
  *  as the Arduino cannot handle the current the LEDs will require.
1600 1601
  *  Failure to follow this precaution can destroy your Arduino!
1602
+ *  Neopixel LED is 5V powered, but linear 5V regulator on Arduino
1603
+ *  cannot handle the current, separate 5V power supply must be used
1601 1604
  * *** CAUTION ***
1602 1605
  *
1606
+ * LED type. This options are mutualy exclusive. Uncomment only one.
1607
+ *
1603 1608
  */
1609
+
1604 1610
 //#define RGB_LED
1605 1611
 //#define RGBW_LED
1606 1612
 #if ENABLED(RGB_LED) || ENABLED(RGBW_LED)
@@ -1611,11 +1617,14 @@
1611 1617
 #endif
1612 1618
 
1613 1619
 // Support for Adafruit Neopixel LED driver
1614
-//#define NEOPIXEL_RGBW_LED
1615
-#if ENABLED(NEOPIXEL_RGBW_LED)
1616
-  #define NEOPIXEL_PIN    4       // D4 (EXP2-5 on Printrboard)
1617
-  #define NEOPIXEL_PIXELS 3
1618
-  //#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
1620
+//#define NEOPIXEL_LED
1621
+#if ENABLED(NEOPIXEL_LED)
1622
+  #define NEOPIXEL_TYPE   NEO_GRB  // NEO_GRBW / NEO_GRB - four/three channel driver type (definned in Adafruit_NeoPixel.h)
1623
+  #define NEOPIXEL_PIN    4        // LED driving pin on motherboard 4 => D4 (EXP2-5 on Printrboard) / 30 => PC7 (EXP3-13 on Rumba)
1624
+  #define NEOPIXEL_PIXELS 30       // Number of LEDs on strip
1625
+  #define NEOPIXEL_IS_SEQUENTIAL   // Sequential display for temperature change - LED by LED. Comment out for all LEDs to change at once.
1626
+  #define NEOPIXEL_BRIGHTNESS 255  // Initial brightness 0-255
1627
+  //#define NEOPIXEL_STARTUP_TEST  // Cycle through colors at startup
1619 1628
 #endif
1620 1629
 
1621 1630
 /**
@@ -1629,7 +1638,7 @@
1629 1638
  *  - Change to green once print has finished
1630 1639
  *  - Turn off after the print has finished and the user has pushed a button
1631 1640
  */
1632
-#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
1641
+#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_LED)
1633 1642
   #define PRINTER_EVENT_LEDS
1634 1643
 #endif
1635 1644
 

+ 7
- 10
Marlin/src/feature/leds/leds.cpp View File

@@ -31,18 +31,15 @@
31 31
 #include "leds.h"
32 32
 
33 33
 void set_led_color(
34
-  const uint8_t r, const uint8_t g, const uint8_t b
35
-  #if ENABLED(RGBW_LED) || ENABLED(NEOPIXEL_RGBW_LED)
36
-    , const uint8_t w
37
-    #if ENABLED(NEOPIXEL_RGBW_LED)
38
-      , bool isSequence
39
-    #endif
40
-  #endif
34
+  const uint8_t r, const uint8_t g, const uint8_t b , const uint8_t w , const uint8_t p
41 35
 ) {
42 36
 
43
-  #if ENABLED(NEOPIXEL_RGBW_LED)
44
-    if (neopixel_set_led_color(r, g, b, w, isSequence))
45
-      return;
37
+  #if ENABLED(NEOPIXEL_LED)
38
+    if (w == 255 || (r == 255 && g == 255 && b == 255))
39
+      neopixel_set_led_color(NEO_WHITE, p);
40
+    else
41
+      neopixel_set_led_color(r, g, b, w, p);
42
+    return;
46 43
   #endif
47 44
 
48 45
   #if ENABLED(BLINKM)

+ 22
- 8
Marlin/src/feature/leds/leds.h View File

@@ -27,7 +27,7 @@
27 27
 #ifndef __LEDS_H__
28 28
 #define __LEDS_H__
29 29
 
30
-#if ENABLED(NEOPIXEL_RGBW_LED)
30
+#if ENABLED(NEOPIXEL_LED)
31 31
   #include <Adafruit_NeoPixel.h>
32 32
   #include "neopixel.h"
33 33
 #endif
@@ -40,14 +40,28 @@
40 40
   #include "pca9632.h"
41 41
 #endif
42 42
 
43
-void set_led_color(
44
-  const uint8_t r, const uint8_t g, const uint8_t b
45
-  #if ENABLED(RGBW_LED) || ENABLED(NEOPIXEL_RGBW_LED)
46
-    , const uint8_t w = 0
47
-    #if ENABLED(NEOPIXEL_RGBW_LED)
48
-      , bool isSequence = false
49
-    #endif
43
+#if ENABLED(NEOPIXEL_LED) 
44
+  #if NEOPIXEL_TYPE == NEO_RGB || NEOPIXEL_TYPE == NEO_RBG || NEOPIXEL_TYPE == NEO_GRB || NEOPIXEL_TYPE == NEO_GBR || NEOPIXEL_TYPE == NEO_BRG || NEOPIXEL_TYPE == NEO_BGR
45
+    #define NEO_WHITE 255, 255, 255
46
+  #else
47
+    #define NEO_WHITE 0, 0, 0, 255
50 48
   #endif
49
+#endif
50
+
51
+#if ENABLED(RGB_LED) || ENABLED(BLINKM) || ENABLED(PCA9632)
52
+  #define LED_WHITE 255, 255, 255
53
+#elif ENABLED(RGBW_LED)
54
+  #define LED_WHITE 0, 0, 0, 255
55
+#endif
56
+
57
+#if ENABLED(NEOPIXEL_LED)
58
+  #define LED_BRIGHTNESS pixels.getBrightness()
59
+#else
60
+  #define LED_BRIGHTNESS 255
61
+#endif
62
+
63
+void set_led_color(
64
+  const uint8_t r, const uint8_t g, const uint8_t b, const uint8_t w = 0, const uint8_t p = 255
51 65
 );
52 66
 
53 67
 #endif // __LEDS_H__

+ 11
- 10
Marlin/src/feature/leds/neopixel.cpp View File

@@ -26,11 +26,11 @@
26 26
 
27 27
 #include "../../inc/MarlinConfig.h"
28 28
 
29
-#if ENABLED(NEOPIXEL_RGBW_LED)
29
+#if ENABLED(NEOPIXEL_LED)
30 30
 
31 31
 #include "neopixel.h"
32 32
 
33
-Adafruit_NeoPixel pixels(NEOPIXEL_PIXELS, NEOPIXEL_PIN, NEO_GRBW + NEO_KHZ800);
33
+Adafruit_NeoPixel pixels(NEOPIXEL_PIXELS, NEOPIXEL_PIN, NEOPIXEL_TYPE + NEO_KHZ800);
34 34
 
35 35
 void set_neopixel_color(const uint32_t color) {
36 36
   for (uint16_t i = 0; i < pixels.numPixels(); ++i)
@@ -39,7 +39,7 @@ void set_neopixel_color(const uint32_t color) {
39 39
 }
40 40
 
41 41
 void setup_neopixel() {
42
-  pixels.setBrightness(255); // 0 - 255 range
42
+  pixels.setBrightness(NEOPIXEL_BRIGHTNESS); // 0 - 255 range
43 43
   pixels.begin();
44 44
   pixels.show(); // initialize to all off
45 45
 
@@ -55,18 +55,19 @@ void setup_neopixel() {
55 55
   set_neopixel_color(pixels.Color(0, 0, 0, 255));    // white
56 56
 }
57 57
 
58
-bool neopixel_set_led_color(const uint8_t r, const uint8_t g, const uint8_t b, const uint8_t w, const bool isSequence) {
58
+bool neopixel_set_led_color(const uint8_t r, const uint8_t g, const uint8_t b, const uint8_t w, const uint8_t p) {
59 59
   const uint32_t color = pixels.Color(r, g, b, w);
60
-  static uint16_t nextLed = 0;
61
-  if (!isSequence)
60
+  pixels.setBrightness(p);
61
+  #if !ENABLED(NEOPIXEL_IS_SEQUENTIAL)
62 62
     set_neopixel_color(color);
63
-  else {
63
+    return false;
64
+  #else
65
+    static uint16_t nextLed = 0;
64 66
     pixels.setPixelColor(nextLed, color);
65 67
     pixels.show();
66 68
     if (++nextLed >= pixels.numPixels()) nextLed = 0;
67 69
     return true;
68
-  }
69
-  return false;
70
+  #endif
70 71
 }
71 72
 
72
-#endif // NEOPIXEL_RGBW_LED
73
+#endif // NEOPIXEL_LED

+ 1
- 1
Marlin/src/feature/leds/neopixel.h View File

@@ -31,7 +31,7 @@
31 31
 #include <stdint.h>
32 32
 
33 33
 void setup_neopixel();
34
-bool neopixel_set_led_color(const uint8_t r, const uint8_t g, const uint8_t b, const uint8_t w, const bool isSequence);
34
+bool neopixel_set_led_color(const uint8_t r, const uint8_t g, const uint8_t b, const uint8_t w, const uint8_t p);
35 35
 
36 36
 extern Adafruit_NeoPixel pixels;
37 37
 

+ 20
- 17
Marlin/src/gcode/feature/leds/M150.cpp View File

@@ -28,27 +28,30 @@
28 28
 #include "../../../feature/leds/leds.h"
29 29
 
30 30
 /**
31
- * M150: Set Status LED Color - Use R-U-B-W for R-G-B-W
32
- *
33
- * Always sets all 3 or 4 components. If a component is left out, set to 0.
34
- *
35
- * Examples:
36
- *
37
- *   M150 R255       ; Turn LED red
38
- *   M150 R255 U127  ; Turn LED orange (PWM only)
39
- *   M150            ; Turn LED off
40
- *   M150 R U B      ; Turn LED white
41
- *   M150 W          ; Turn LED white using a white LED
42
- *
43
- */
31
+* M150: Set Status LED Color - Use R-U-B-W for R-G-B-W
32
+*       and Brightness       - Use P (for NEOPIXEL only)
33
+*
34
+* Always sets all 3 or 4 components. If a component is left out, set to 0.
35
+*                                    If brightness is left out, no value changed
36
+*
37
+* Examples:
38
+*
39
+*   M150 R255       ; Turn LED red
40
+*   M150 R255 U127  ; Turn LED orange (PWM only)
41
+*   M150            ; Turn LED off
42
+*   M150 R U B      ; Turn LED white
43
+*   M150 W          ; Turn LED white using a white LED
44
+*   M150 P127       ; Set LED 50% brightness
45
+*   M150 P          ; Set LED full brightness
46
+*/
47
+
44 48
 void GcodeSuite::M150() {
45 49
   set_led_color(
46 50
     parser.seen('R') ? (parser.has_value() ? parser.value_byte() : 255) : 0,
47 51
     parser.seen('U') ? (parser.has_value() ? parser.value_byte() : 255) : 0,
48
-    parser.seen('B') ? (parser.has_value() ? parser.value_byte() : 255) : 0
49
-    #if ENABLED(RGBW_LED) || ENABLED(NEOPIXEL_RGBW_LED)
50
-      , parser.seen('W') ? (parser.has_value() ? parser.value_byte() : 255) : 0
51
-    #endif
52
+    parser.seen('B') ? (parser.has_value() ? parser.value_byte() : 255) : 0,
53
+    parser.seen('W') ? (parser.has_value() ? parser.value_byte() : 255) : 0,
54
+    parser.seen('P') ? (parser.has_value() ? parser.value_byte() : 255) : LED_BRIGHTNESS
52 55
   );
53 56
 }
54 57
 

+ 1
- 1
Marlin/src/gcode/gcode.h View File

@@ -138,7 +138,7 @@
138 138
  * M140 - Set bed target temp. S<temp>
139 139
  * M145 - Set heatup values for materials on the LCD. H<hotend> B<bed> F<fan speed> for S<material> (0=PLA, 1=ABS)
140 140
  * M149 - Set temperature units. (Requires TEMPERATURE_UNITS_SUPPORT)
141
- * M150 - Set Status LED Color as R<red> U<green> B<blue>. Values 0-255. (Requires BLINKM, RGB_LED, RGBW_LED, or PCA9632)
141
+ * M150 - Set Status LED Color as R<red> U<green> B<blue> P<bright>. Values 0-255. (Requires BLINKM, RGB_LED, RGBW_LED, NEOPIXEL_LED, or PCA9632).
142 142
  * M155 - Auto-report temperatures with interval of S<seconds>. (Requires AUTO_REPORT_TEMPERATURES)
143 143
  * M163 - Set a single proportion for a mixing extruder. (Requires MIXING_EXTRUDER)
144 144
  * M164 - Save the mix as a virtual extruder. (Requires MIXING_EXTRUDER and MIXING_VIRTUAL_TOOLS)

+ 7
- 10
Marlin/src/gcode/temperature/M104_M109.cpp View File

@@ -31,7 +31,7 @@
31 31
   #include "../../module/printcounter.h"
32 32
 #endif
33 33
 
34
-#if HAS_COLOR_LEDS
34
+#if ENABLED(PRINTER_EVENT_LEDS)
35 35
   #include "../../feature/leds/leds.h"
36 36
 #endif
37 37
 
@@ -190,11 +190,7 @@ void GcodeSuite::M109() {
190 190
         const uint8_t blue = map(constrain(temp, start_temp, target_temp), start_temp, target_temp, 255, 0);
191 191
         if (blue != old_blue) {
192 192
           old_blue = blue;
193
-          set_led_color(255, 0, blue
194
-            #if ENABLED(NEOPIXEL_RGBW_LED)
195
-              , 0, true
196
-            #endif
197
-          );
193
+          set_led_color(255, 0, blue);
198 194
         }
199 195
       }
200 196
     #endif
@@ -230,10 +226,11 @@ void GcodeSuite::M109() {
230 226
   if (wait_for_heatup) {
231 227
     LCD_MESSAGEPGM(MSG_HEATING_COMPLETE);
232 228
     #if ENABLED(PRINTER_EVENT_LEDS)
233
-      #if ENABLED(RGBW_LED) || ENABLED(NEOPIXEL_RGBW_LED)
234
-        set_led_color(0, 0, 0, 255);  // Turn on the WHITE LED
235
-      #else
236
-        set_led_color(255, 255, 255); // Set LEDs All On
229
+      #if ENABLED(RGB_LED) || ENABLED(BLINKM) || ENABLED(PCA9632) || ENABLED(RGBW_LED)
230
+        set_led_color(LED_WHITE);
231
+      #endif
232
+      #if ENABLED(NEOPIXEL_LED)
233
+        set_neopixel_color(pixels.Color(NEO_WHITE));
237 234
       #endif
238 235
     #endif
239 236
   }

+ 1
- 5
Marlin/src/gcode/temperature/M140_M190.cpp View File

@@ -132,11 +132,7 @@ void GcodeSuite::M190() {
132 132
         const uint8_t red = map(constrain(temp, start_temp, target_temp), start_temp, target_temp, 0, 255);
133 133
         if (red != old_red) {
134 134
           old_red = red;
135
-          set_led_color(red, 0, 255
136
-            #if ENABLED(NEOPIXEL_RGBW_LED)
137
-              , 0, true
138
-            #endif
139
-          );
135
+          set_led_color(red, 0, 255);
140 136
         }
141 137
       }
142 138
     #endif

+ 1
- 1
Marlin/src/inc/Conditionals_LCD.h View File

@@ -483,6 +483,6 @@
483 483
 
484 484
   #define HAS_SOFTWARE_ENDSTOPS (ENABLED(MIN_SOFTWARE_ENDSTOPS) || ENABLED(MAX_SOFTWARE_ENDSTOPS))
485 485
   #define HAS_RESUME_CONTINUE (ENABLED(NEWPANEL) || ENABLED(EMERGENCY_PARSER))
486
-  #define HAS_COLOR_LEDS (ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED))
486
+  #define HAS_COLOR_LEDS (ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_LED))
487 487
 
488 488
 #endif // CONDITIONALS_LCD_H

+ 6
- 4
Marlin/src/inc/SanityCheck.h View File

@@ -210,6 +210,8 @@
210 210
   #error "MIN_RETRACT is now MIN_AUTORETRACT and MAX_AUTORETRACT. Please update your Configuration_adv.h."
211 211
 #elif defined(ADVANCE)
212 212
   #error "ADVANCE was removed in Marlin 1.1.6. Please use LIN_ADVANCE."
213
+#elif defined(NEOPIXEL_RGBW_LED)
214
+  #error "NEOPIXEL_RGBW_LED is now NEOPIXEL_LED. Please update your configuration."
213 215
 #endif
214 216
 
215 217
 /**
@@ -1100,12 +1102,12 @@ static_assert(1 >= 0
1100 1102
   #if !(_RGB_TEST && PIN_EXISTS(RGB_LED_W))
1101 1103
     #error "RGBW_LED requires RGB_LED_R_PIN, RGB_LED_G_PIN, RGB_LED_B_PIN, and RGB_LED_W_PIN."
1102 1104
   #endif
1103
-#elif ENABLED(NEOPIXEL_RGBW_LED)
1105
+#elif ENABLED(NEOPIXEL_LED)
1104 1106
   #if !(PIN_EXISTS(NEOPIXEL) && NEOPIXEL_PIXELS > 0)
1105
-    #error "NEOPIXEL_RGBW_LED requires NEOPIXEL_PIN and NEOPIXEL_PIXELS."
1107
+    #error "NEOPIXEL_LED requires NEOPIXEL_PIN and NEOPIXEL_PIXELS."
1106 1108
   #endif
1107
-#elif ENABLED(PRINTER_EVENT_LEDS) && DISABLED(BLINKM) && DISABLED(PCA9632) && DISABLED(NEOPIXEL_RGBW_LED)
1108
-  #error "PRINTER_EVENT_LEDS requires BLINKM, PCA9632, RGB_LED, RGBW_LED or NEOPIXEL_RGBW_LED."
1109
+#elif ENABLED(PRINTER_EVENT_LEDS) && DISABLED(BLINKM) && DISABLED(PCA9632) && DISABLED(NEOPIXEL_LED)
1110
+  #error "PRINTER_EVENT_LEDS requires BLINKM, PCA9632, RGB_LED, RGBW_LED or NEOPIXEL_LED."
1109 1111
 #endif
1110 1112
 
1111 1113
 /**

Loading…
Cancel
Save