Преглед изворни кода

Add support for Printrbot Neopixel RGBW strip.

Connected as described at http://printrbot.com/shop/led-strip/

Based on patch by Kelly Anderson <kelly@xilka.com> at
http://www.xilka.com/printrbot/marlin/1.1.4/20170707/
C. Scott Ananian пре 7 година
родитељ
комит
890e7a16a9
38 измењених фајлова са 392 додато и 42 уклоњено
  1. 5
    0
      .travis.yml
  2. 1
    1
      Marlin/Conditionals_LCD.h
  3. 9
    1
      Marlin/Configuration.h
  4. 6
    0
      Marlin/Makefile
  5. 77
    6
      Marlin/Marlin_main.cpp
  6. 6
    2
      Marlin/SanityCheck.h
  7. 9
    1
      Marlin/example_configurations/AlephObjects/TAZ4/Configuration.h
  8. 9
    1
      Marlin/example_configurations/AliExpress/CL-260/Configuration.h
  9. 9
    1
      Marlin/example_configurations/Anet/A6/Configuration.h
  10. 9
    1
      Marlin/example_configurations/Anet/A8/Configuration.h
  11. 9
    1
      Marlin/example_configurations/BQ/Hephestos/Configuration.h
  12. 9
    1
      Marlin/example_configurations/BQ/Hephestos_2/Configuration.h
  13. 9
    1
      Marlin/example_configurations/BQ/WITBOX/Configuration.h
  14. 9
    1
      Marlin/example_configurations/Cartesio/Configuration.h
  15. 9
    1
      Marlin/example_configurations/Creality/CR-10/Configuration.h
  16. 9
    1
      Marlin/example_configurations/Felix/Configuration.h
  17. 9
    1
      Marlin/example_configurations/Felix/DUAL/Configuration.h
  18. 9
    1
      Marlin/example_configurations/Folger Tech/i3-2020/Configuration.h
  19. 9
    1
      Marlin/example_configurations/Infitary/i3-M508/Configuration.h
  20. 9
    1
      Marlin/example_configurations/Malyan/M150/Configuration.h
  21. 9
    1
      Marlin/example_configurations/RepRapWorld/Megatronics/Configuration.h
  22. 9
    1
      Marlin/example_configurations/RigidBot/Configuration.h
  23. 9
    1
      Marlin/example_configurations/SCARA/Configuration.h
  24. 9
    1
      Marlin/example_configurations/TinyBoy2/Configuration.h
  25. 9
    1
      Marlin/example_configurations/Velleman/K8200/Configuration.h
  26. 9
    1
      Marlin/example_configurations/Velleman/K8400/Configuration.h
  27. 9
    1
      Marlin/example_configurations/Velleman/K8400/Dual-head/Configuration.h
  28. 9
    1
      Marlin/example_configurations/adafruit/ST7565/Configuration.h
  29. 9
    1
      Marlin/example_configurations/delta/FLSUN/auto_calibrate/Configuration.h
  30. 9
    1
      Marlin/example_configurations/delta/FLSUN/kossel_mini/Configuration.h
  31. 9
    1
      Marlin/example_configurations/delta/generic/Configuration.h
  32. 9
    1
      Marlin/example_configurations/delta/kossel_mini/Configuration.h
  33. 9
    1
      Marlin/example_configurations/delta/kossel_pro/Configuration.h
  34. 9
    1
      Marlin/example_configurations/delta/kossel_xl/Configuration.h
  35. 9
    1
      Marlin/example_configurations/gCreate/gMax1.5+/Configuration.h
  36. 9
    1
      Marlin/example_configurations/makibox/Configuration.h
  37. 9
    1
      Marlin/example_configurations/tvrrug/Round2/Configuration.h
  38. 9
    1
      Marlin/example_configurations/wt150/Configuration.h

+ 5
- 0
.travis.yml Прегледај датотеку

@@ -50,6 +50,10 @@ install:
50 50
   - git clone https://github.com/teemuatlut/TMC2130Stepper.git
51 51
   - sudo mv TMC2130Stepper /usr/local/share/arduino/libraries/TMC2130Stepper
52 52
   #
53
+  # Install: Adafruit Neopixel library
54
+  - git clone https://github.com/adafruit/Adafruit_NeoPixel.git
55
+  - sudo mv Adafruit_NeoPixel /usr/local/share/arduino/libraries/Adafruit_NeoPixel
56
+  #
53 57
 before_script:
54 58
   #
55 59
   # Change current working directory to the build dir
@@ -80,6 +84,7 @@ script:
80 84
   - opt_set TEMP_SENSOR_1 1
81 85
   - opt_set TEMP_SENSOR_BED 1
82 86
   - opt_enable PIDTEMPBED FIX_MOUNTED_PROBE Z_SAFE_HOMING ARC_P_CIRCLES CNC_WORKSPACE_PLANES
87
+  - opt_enable BLINKM PCA9632 RGB_LED NEOPIXEL_RGBW_LED
83 88
   - build_marlin
84 89
   #
85 90
   # ...with AUTO_BED_LEVELING_LINEAR, Z_MIN_PROBE_REPEATABILITY_TEST, and DEBUG_LEVELING_FEATURE

+ 1
- 1
Marlin/Conditionals_LCD.h Прегледај датотеку

@@ -430,6 +430,6 @@
430 430
 
431 431
   #define HAS_SOFTWARE_ENDSTOPS (ENABLED(MIN_SOFTWARE_ENDSTOPS) || ENABLED(MAX_SOFTWARE_ENDSTOPS))
432 432
   #define HAS_RESUME_CONTINUE (ENABLED(NEWPANEL) || ENABLED(EMERGENCY_PARSER))
433
-  #define HAS_COLOR_LEDS (ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632))
433
+  #define HAS_COLOR_LEDS (ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED))
434 434
 
435 435
 #endif // CONDITIONALS_LCD_H

+ 9
- 1
Marlin/Configuration.h Прегледај датотеку

@@ -1551,6 +1551,14 @@
1551 1551
   #define RGB_LED_W_PIN -1
1552 1552
 #endif
1553 1553
 
1554
+// Support for Adafruit Neopixel LED driver
1555
+//#define NEOPIXEL_RGBW_LED
1556
+#if ENABLED(NEOPIXEL_RGBW_LED)
1557
+  #define NEOPIXEL_PIN    4       // D4 (EXP2-5 on Printrboard)
1558
+  #define NEOPIXEL_PIXELS 3
1559
+  //#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
1560
+#endif
1561
+
1554 1562
 /**
1555 1563
  * Printer Event LEDs
1556 1564
  *
@@ -1562,7 +1570,7 @@
1562 1570
  *  - Change to green once print has finished
1563 1571
  *  - Turn off after the print has finished and the user has pushed a button
1564 1572
  */
1565
-#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632)
1573
+#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
1566 1574
   #define PRINTER_EVENT_LEDS
1567 1575
 #endif
1568 1576
 

+ 6
- 0
Marlin/Makefile Прегледај датотеку

@@ -270,6 +270,9 @@ ifeq ($(WIRE), 1)
270 270
 VPATH += $(ARDUINO_INSTALL_DIR)/libraries/Wire
271 271
 VPATH += $(ARDUINO_INSTALL_DIR)/libraries/Wire/utility
272 272
 endif
273
+ifeq ($(NEOPIXEL), 1)
274
+VPATH += $(ARDUINO_INSTALL_DIR)/libraries/Adafruit_NeoPixel
275
+endif
273 276
 
274 277
 ifeq ($(HARDWARE_VARIANT), arduino)
275 278
 HARDWARE_SUB_VARIANT ?= mega
@@ -297,6 +300,9 @@ CXXSRC = WMath.cpp WString.cpp Print.cpp Marlin_main.cpp \
297 300
 	watchdog.cpp SPI.cpp servo.cpp Tone.cpp ultralcd.cpp digipot_mcp4451.cpp \
298 301
 	dac_mcp4728.cpp vector_3.cpp least_squares_fit.cpp endstops.cpp stopwatch.cpp utility.cpp \
299 302
 	printcounter.cpp nozzle.cpp serial.cpp
303
+ifeq ($(NEOPIXEL), 1)
304
+CXXSRC += Adafruit_NeoPixel.cpp
305
+endif
300 306
 ifeq ($(LIQUID_TWI2), 0)
301 307
 CXXSRC += LiquidCrystal.cpp
302 308
 else

+ 77
- 6
Marlin/Marlin_main.cpp Прегледај датотеку

@@ -279,6 +279,10 @@
279 279
   #include "watchdog.h"
280 280
 #endif
281 281
 
282
+#if ENABLED(NEOPIXEL_RGBW_LED)
283
+  #include <Adafruit_NeoPixel.h>
284
+#endif
285
+
282 286
 #if ENABLED(BLINKM)
283 287
   #include "blinkm.h"
284 288
   #include "Wire.h"
@@ -968,13 +972,61 @@ void servo_init() {
968 972
 
969 973
 #if HAS_COLOR_LEDS
970 974
 
975
+  #if ENABLED(NEOPIXEL_RGBW_LED)
976
+
977
+    Adafruit_NeoPixel pixels(NEOPIXEL_PIXELS, NEOPIXEL_PIN, NEO_GRBW + NEO_KHZ800);
978
+
979
+    void set_neopixel_color(const uint32_t color) {
980
+      for (uint16_t i = 0; i < pixels.numPixels(); ++i)
981
+        pixels.setPixelColor(i, color);
982
+      pixels.show();
983
+    }
984
+
985
+    void setup_neopixel() {
986
+      pixels.setBrightness(255); // 0 - 255 range
987
+      pixels.begin();
988
+      pixels.show(); // initialize to all off
989
+
990
+      #if ENABLED(NEOPIXEL_STARTUP_TEST)
991
+        delay(2000);
992
+        set_neopixel_color(pixels.Color(255, 0, 0, 0));  // red
993
+        delay(2000);
994
+        set_neopixel_color(pixels.Color(0, 255, 0, 0));  // green
995
+        delay(2000);
996
+        set_neopixel_color(pixels.Color(0, 0, 255, 0));  // blue
997
+        delay(2000);
998
+      #endif
999
+      set_neopixel_color(pixels.Color(0, 0, 0, 255));    // white
1000
+    }
1001
+
1002
+  #endif // NEOPIXEL_RGBW_LED
1003
+
971 1004
   void set_led_color(
972 1005
     const uint8_t r, const uint8_t g, const uint8_t b
973
-      #if ENABLED(RGBW_LED)
974
-        , const uint8_t w=0
1006
+      #if ENABLED(RGBW_LED) || ENABLED(NEOPIXEL_RGBW_LED)
1007
+        , const uint8_t w = 0
1008
+        #if ENABLED(NEOPIXEL_RGBW_LED)
1009
+          , bool isSequence = false
1010
+        #endif
975 1011
       #endif
976 1012
   ) {
977 1013
 
1014
+    #if ENABLED(NEOPIXEL_RGBW_LED)
1015
+
1016
+      const uint32_t color = pixels.Color(r, g, b, w);
1017
+      static int nextLed = 0;
1018
+
1019
+      if (!isSequence)
1020
+        set_neopixel_color(color);
1021
+      else {
1022
+        pixels.setPixelColor(nextLed, color);
1023
+        pixels.show();
1024
+        if (++nextLed >= pixels.numPixels()) nextLed = 0;
1025
+        return;
1026
+      }
1027
+
1028
+    #endif
1029
+
978 1030
     #if ENABLED(BLINKM)
979 1031
 
980 1032
       // This variant uses i2c to send the RGB components to the device.
@@ -7355,7 +7407,14 @@ inline void gcode_M109() {
7355 7407
       // Gradually change LED strip from violet to red as nozzle heats up
7356 7408
       if (!wants_to_cool) {
7357 7409
         const uint8_t blue = map(constrain(temp, start_temp, target_temp), start_temp, target_temp, 255, 0);
7358
-        if (blue != old_blue) set_led_color(255, 0, (old_blue = blue));
7410
+        if (blue != old_blue) {
7411
+          old_blue = blue;
7412
+          set_led_color(255, 0, blue
7413
+            #if ENABLED(NEOPIXEL_RGBW_LED)
7414
+              , 0, true
7415
+            #endif
7416
+          );
7417
+        }
7359 7418
       }
7360 7419
     #endif
7361 7420
 
@@ -7390,7 +7449,7 @@ inline void gcode_M109() {
7390 7449
   if (wait_for_heatup) {
7391 7450
     LCD_MESSAGEPGM(MSG_HEATING_COMPLETE);
7392 7451
     #if ENABLED(PRINTER_EVENT_LEDS)
7393
-      #if ENABLED(RGBW_LED)
7452
+      #if ENABLED(RGBW_LED) || ENABLED(NEOPIXEL_RGBW_LED)
7394 7453
         set_led_color(0, 0, 0, 255);  // Turn on the WHITE LED
7395 7454
       #else
7396 7455
         set_led_color(255, 255, 255); // Set LEDs All On
@@ -7488,7 +7547,14 @@ inline void gcode_M109() {
7488 7547
         // Gradually change LED strip from blue to violet as bed heats up
7489 7548
         if (!wants_to_cool) {
7490 7549
           const uint8_t red = map(constrain(temp, start_temp, target_temp), start_temp, target_temp, 0, 255);
7491
-          if (red != old_red) set_led_color((old_red = red), 0, 255);
7550
+          if (red != old_red) {
7551
+            old_red = red;
7552
+            set_led_color(red, 0, 255
7553
+              #if ENABLED(NEOPIXEL_RGBW_LED)
7554
+                , 0, true
7555
+              #endif
7556
+            );
7557
+          }
7492 7558
         }
7493 7559
       #endif
7494 7560
 
@@ -8146,7 +8212,7 @@ inline void gcode_M121() { endstops.enable_globally(false); }
8146 8212
       parser.seen('R') ? (parser.has_value() ? parser.value_byte() : 255) : 0,
8147 8213
       parser.seen('U') ? (parser.has_value() ? parser.value_byte() : 255) : 0,
8148 8214
       parser.seen('B') ? (parser.has_value() ? parser.value_byte() : 255) : 0
8149
-      #if ENABLED(RGBW_LED)
8215
+      #if ENABLED(RGBW_LED) || ENABLED(NEOPIXEL_RGBW_LED)
8150 8216
         , parser.seen('W') ? (parser.has_value() ? parser.value_byte() : 255) : 0
8151 8217
       #endif
8152 8218
     );
@@ -13072,6 +13138,11 @@ void setup() {
13072 13138
     OUT_WRITE(STAT_LED_BLUE_PIN, LOW); // turn it off
13073 13139
   #endif
13074 13140
 
13141
+  #if ENABLED(NEOPIXEL_RGBW_LED)
13142
+    SET_OUTPUT(NEOPIXEL_PIN);
13143
+    setup_neopixel();
13144
+  #endif
13145
+
13075 13146
   #if ENABLED(RGB_LED) || ENABLED(RGBW_LED)
13076 13147
     SET_OUTPUT(RGB_LED_R_PIN);
13077 13148
     SET_OUTPUT(RGB_LED_G_PIN);

+ 6
- 2
Marlin/SanityCheck.h Прегледај датотеку

@@ -1056,8 +1056,12 @@ static_assert(1 >= 0
1056 1056
   #if !(_RGB_TEST && PIN_EXISTS(RGB_LED_W))
1057 1057
     #error "RGBW_LED requires RGB_LED_R_PIN, RGB_LED_G_PIN, RGB_LED_B_PIN, and RGB_LED_W_PIN."
1058 1058
   #endif
1059
-#elif ENABLED(PRINTER_EVENT_LEDS) && DISABLED(BLINKM) && DISABLED(PCA9632)
1060
-  #error "PRINTER_EVENT_LEDS requires BLINKM, PCA9632, RGB_LED, or RGBW_LED."
1059
+#elif ENABLED(NEOPIXEL_RGBW_LED)
1060
+  #if !(PIN_EXISTS(NEOPIXEL) && NEOPIXEL_PIXELS > 0)
1061
+    #error "NEOPIXEL_RGBW_LED requires NEOPIXEL_PIN and NEOPIXEL_PIXELS."
1062
+  #endif
1063
+#elif ENABLED(PRINTER_EVENT_LEDS) && DISABLED(BLINKM) && DISABLED(PCA9632) && DISABLED(NEOPIXEL_RGBW_LED)
1064
+  #error "PRINTER_EVENT_LEDS requires BLINKM, PCA9632, RGB_LED, RGBW_LED or NEOPIXEL_RGBW_LED."
1061 1065
 #endif
1062 1066
 
1063 1067
 /**

+ 9
- 1
Marlin/example_configurations/AlephObjects/TAZ4/Configuration.h Прегледај датотеку

@@ -1566,6 +1566,14 @@
1566 1566
   #define RGB_LED_W_PIN -1
1567 1567
 #endif
1568 1568
 
1569
+// Support for Adafruit Neopixel LED driver
1570
+//#define NEOPIXEL_RGBW_LED
1571
+#if ENABLED(NEOPIXEL_RGBW_LED)
1572
+  #define NEOPIXEL_PIN    4       // D4 (EXP2-5 on Printrboard)
1573
+  #define NEOPIXEL_PIXELS 3
1574
+  //#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
1575
+#endif
1576
+
1569 1577
 /**
1570 1578
  * Printer Event LEDs
1571 1579
  *
@@ -1577,7 +1585,7 @@
1577 1585
  *  - Change to green once print has finished
1578 1586
  *  - Turn off after the print has finished and the user has pushed a button
1579 1587
  */
1580
-#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632)
1588
+#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
1581 1589
   #define PRINTER_EVENT_LEDS
1582 1590
 #endif
1583 1591
 

+ 9
- 1
Marlin/example_configurations/AliExpress/CL-260/Configuration.h Прегледај датотеку

@@ -1548,6 +1548,14 @@
1548 1548
   #define RGB_LED_W_PIN -1
1549 1549
 #endif
1550 1550
 
1551
+// Support for Adafruit Neopixel LED driver
1552
+//#define NEOPIXEL_RGBW_LED
1553
+#if ENABLED(NEOPIXEL_RGBW_LED)
1554
+  #define NEOPIXEL_PIN    4       // D4 (EXP2-5 on Printrboard)
1555
+  #define NEOPIXEL_PIXELS 3
1556
+  //#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
1557
+#endif
1558
+
1551 1559
 /**
1552 1560
  * Printer Event LEDs
1553 1561
  *
@@ -1559,7 +1567,7 @@
1559 1567
  *  - Change to green once print has finished
1560 1568
  *  - Turn off after the print has finished and the user has pushed a button
1561 1569
  */
1562
-#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632)
1570
+#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
1563 1571
   #define PRINTER_EVENT_LEDS
1564 1572
 #endif
1565 1573
 

+ 9
- 1
Marlin/example_configurations/Anet/A6/Configuration.h Прегледај датотеку

@@ -1709,6 +1709,14 @@
1709 1709
   #define RGB_LED_W_PIN -1
1710 1710
 #endif
1711 1711
 
1712
+// Support for Adafruit Neopixel LED driver
1713
+//#define NEOPIXEL_RGBW_LED
1714
+#if ENABLED(NEOPIXEL_RGBW_LED)
1715
+  #define NEOPIXEL_PIN    4       // D4 (EXP2-5 on Printrboard)
1716
+  #define NEOPIXEL_PIXELS 3
1717
+  //#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
1718
+#endif
1719
+
1712 1720
 /**
1713 1721
  * Printer Event LEDs
1714 1722
  *
@@ -1720,7 +1728,7 @@
1720 1728
  *  - Change to green once print has finished
1721 1729
  *  - Turn off after the print has finished and the user has pushed a button
1722 1730
  */
1723
-#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632)
1731
+#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
1724 1732
   #define PRINTER_EVENT_LEDS
1725 1733
 #endif
1726 1734
 

+ 9
- 1
Marlin/example_configurations/Anet/A8/Configuration.h Прегледај датотеку

@@ -1558,6 +1558,14 @@
1558 1558
   #define RGB_LED_W_PIN -1
1559 1559
 #endif
1560 1560
 
1561
+// Support for Adafruit Neopixel LED driver
1562
+//#define NEOPIXEL_RGBW_LED
1563
+#if ENABLED(NEOPIXEL_RGBW_LED)
1564
+  #define NEOPIXEL_PIN    4       // D4 (EXP2-5 on Printrboard)
1565
+  #define NEOPIXEL_PIXELS 3
1566
+  //#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
1567
+#endif
1568
+
1561 1569
 /**
1562 1570
  * Printer Event LEDs
1563 1571
  *
@@ -1569,7 +1577,7 @@
1569 1577
  *  - Change to green once print has finished
1570 1578
  *  - Turn off after the print has finished and the user has pushed a button
1571 1579
  */
1572
-#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632)
1580
+#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
1573 1581
   #define PRINTER_EVENT_LEDS
1574 1582
 #endif
1575 1583
 

+ 9
- 1
Marlin/example_configurations/BQ/Hephestos/Configuration.h Прегледај датотеку

@@ -1537,6 +1537,14 @@
1537 1537
   #define RGB_LED_W_PIN -1
1538 1538
 #endif
1539 1539
 
1540
+// Support for Adafruit Neopixel LED driver
1541
+//#define NEOPIXEL_RGBW_LED
1542
+#if ENABLED(NEOPIXEL_RGBW_LED)
1543
+  #define NEOPIXEL_PIN    4       // D4 (EXP2-5 on Printrboard)
1544
+  #define NEOPIXEL_PIXELS 3
1545
+  //#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
1546
+#endif
1547
+
1540 1548
 /**
1541 1549
  * Printer Event LEDs
1542 1550
  *
@@ -1548,7 +1556,7 @@
1548 1556
  *  - Change to green once print has finished
1549 1557
  *  - Turn off after the print has finished and the user has pushed a button
1550 1558
  */
1551
-#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632)
1559
+#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
1552 1560
   #define PRINTER_EVENT_LEDS
1553 1561
 #endif
1554 1562
 

+ 9
- 1
Marlin/example_configurations/BQ/Hephestos_2/Configuration.h Прегледај датотеку

@@ -1548,6 +1548,14 @@
1548 1548
   #define RGB_LED_W_PIN -1
1549 1549
 #endif
1550 1550
 
1551
+// Support for Adafruit Neopixel LED driver
1552
+//#define NEOPIXEL_RGBW_LED
1553
+#if ENABLED(NEOPIXEL_RGBW_LED)
1554
+  #define NEOPIXEL_PIN    4       // D4 (EXP2-5 on Printrboard)
1555
+  #define NEOPIXEL_PIXELS 3
1556
+  //#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
1557
+#endif
1558
+
1551 1559
 /**
1552 1560
  * Printer Event LEDs
1553 1561
  *
@@ -1559,7 +1567,7 @@
1559 1567
  *  - Change to green once print has finished
1560 1568
  *  - Turn off after the print has finished and the user has pushed a button
1561 1569
  */
1562
-#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632)
1570
+#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
1563 1571
   #define PRINTER_EVENT_LEDS
1564 1572
 #endif
1565 1573
 

+ 9
- 1
Marlin/example_configurations/BQ/WITBOX/Configuration.h Прегледај датотеку

@@ -1537,6 +1537,14 @@
1537 1537
   #define RGB_LED_W_PIN -1
1538 1538
 #endif
1539 1539
 
1540
+// Support for Adafruit Neopixel LED driver
1541
+//#define NEOPIXEL_RGBW_LED
1542
+#if ENABLED(NEOPIXEL_RGBW_LED)
1543
+  #define NEOPIXEL_PIN    4       // D4 (EXP2-5 on Printrboard)
1544
+  #define NEOPIXEL_PIXELS 3
1545
+  //#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
1546
+#endif
1547
+
1540 1548
 /**
1541 1549
  * Printer Event LEDs
1542 1550
  *
@@ -1548,7 +1556,7 @@
1548 1556
  *  - Change to green once print has finished
1549 1557
  *  - Turn off after the print has finished and the user has pushed a button
1550 1558
  */
1551
-#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632)
1559
+#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
1552 1560
   #define PRINTER_EVENT_LEDS
1553 1561
 #endif
1554 1562
 

+ 9
- 1
Marlin/example_configurations/Cartesio/Configuration.h Прегледај датотеку

@@ -1545,6 +1545,14 @@
1545 1545
   #define RGB_LED_W_PIN -1
1546 1546
 #endif
1547 1547
 
1548
+// Support for Adafruit Neopixel LED driver
1549
+//#define NEOPIXEL_RGBW_LED
1550
+#if ENABLED(NEOPIXEL_RGBW_LED)
1551
+  #define NEOPIXEL_PIN    4       // D4 (EXP2-5 on Printrboard)
1552
+  #define NEOPIXEL_PIXELS 3
1553
+  //#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
1554
+#endif
1555
+
1548 1556
 /**
1549 1557
  * Printer Event LEDs
1550 1558
  *
@@ -1556,7 +1564,7 @@
1556 1564
  *  - Change to green once print has finished
1557 1565
  *  - Turn off after the print has finished and the user has pushed a button
1558 1566
  */
1559
-#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632)
1567
+#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
1560 1568
   #define PRINTER_EVENT_LEDS
1561 1569
 #endif
1562 1570
 

+ 9
- 1
Marlin/example_configurations/Creality/CR-10/Configuration.h Прегледај датотеку

@@ -1562,6 +1562,14 @@
1562 1562
   #define RGB_LED_W_PIN -1
1563 1563
 #endif
1564 1564
 
1565
+// Support for Adafruit Neopixel LED driver
1566
+//#define NEOPIXEL_RGBW_LED
1567
+#if ENABLED(NEOPIXEL_RGBW_LED)
1568
+  #define NEOPIXEL_PIN    4       // D4 (EXP2-5 on Printrboard)
1569
+  #define NEOPIXEL_PIXELS 3
1570
+  //#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
1571
+#endif
1572
+
1565 1573
 /**
1566 1574
  * Printer Event LEDs
1567 1575
  *
@@ -1573,7 +1581,7 @@
1573 1581
  *  - Change to green once print has finished
1574 1582
  *  - Turn off after the print has finished and the user has pushed a button
1575 1583
  */
1576
-#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632)
1584
+#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
1577 1585
   #define PRINTER_EVENT_LEDS
1578 1586
 #endif
1579 1587
 

+ 9
- 1
Marlin/example_configurations/Felix/Configuration.h Прегледај датотеку

@@ -1529,6 +1529,14 @@
1529 1529
   #define RGB_LED_W_PIN -1
1530 1530
 #endif
1531 1531
 
1532
+// Support for Adafruit Neopixel LED driver
1533
+//#define NEOPIXEL_RGBW_LED
1534
+#if ENABLED(NEOPIXEL_RGBW_LED)
1535
+  #define NEOPIXEL_PIN    4       // D4 (EXP2-5 on Printrboard)
1536
+  #define NEOPIXEL_PIXELS 3
1537
+  //#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
1538
+#endif
1539
+
1532 1540
 /**
1533 1541
  * Printer Event LEDs
1534 1542
  *
@@ -1540,7 +1548,7 @@
1540 1548
  *  - Change to green once print has finished
1541 1549
  *  - Turn off after the print has finished and the user has pushed a button
1542 1550
  */
1543
-#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632)
1551
+#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
1544 1552
   #define PRINTER_EVENT_LEDS
1545 1553
 #endif
1546 1554
 

+ 9
- 1
Marlin/example_configurations/Felix/DUAL/Configuration.h Прегледај датотеку

@@ -1529,6 +1529,14 @@
1529 1529
   #define RGB_LED_W_PIN -1
1530 1530
 #endif
1531 1531
 
1532
+// Support for Adafruit Neopixel LED driver
1533
+//#define NEOPIXEL_RGBW_LED
1534
+#if ENABLED(NEOPIXEL_RGBW_LED)
1535
+  #define NEOPIXEL_PIN    4       // D4 (EXP2-5 on Printrboard)
1536
+  #define NEOPIXEL_PIXELS 3
1537
+  //#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
1538
+#endif
1539
+
1532 1540
 /**
1533 1541
  * Printer Event LEDs
1534 1542
  *
@@ -1540,7 +1548,7 @@
1540 1548
  *  - Change to green once print has finished
1541 1549
  *  - Turn off after the print has finished and the user has pushed a button
1542 1550
  */
1543
-#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632)
1551
+#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
1544 1552
   #define PRINTER_EVENT_LEDS
1545 1553
 #endif
1546 1554
 

+ 9
- 1
Marlin/example_configurations/Folger Tech/i3-2020/Configuration.h Прегледај датотеку

@@ -1551,6 +1551,14 @@
1551 1551
   #define RGB_LED_W_PIN -1
1552 1552
 #endif
1553 1553
 
1554
+// Support for Adafruit Neopixel LED driver
1555
+//#define NEOPIXEL_RGBW_LED
1556
+#if ENABLED(NEOPIXEL_RGBW_LED)
1557
+  #define NEOPIXEL_PIN    4       // D4 (EXP2-5 on Printrboard)
1558
+  #define NEOPIXEL_PIXELS 3
1559
+  //#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
1560
+#endif
1561
+
1554 1562
 /**
1555 1563
  * Printer Event LEDs
1556 1564
  *
@@ -1562,7 +1570,7 @@
1562 1570
  *  - Change to green once print has finished
1563 1571
  *  - Turn off after the print has finished and the user has pushed a button
1564 1572
  */
1565
-#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632)
1573
+#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
1566 1574
   #define PRINTER_EVENT_LEDS
1567 1575
 #endif
1568 1576
 

+ 9
- 1
Marlin/example_configurations/Infitary/i3-M508/Configuration.h Прегледај датотеку

@@ -1555,6 +1555,14 @@
1555 1555
   #define RGB_LED_W_PIN -1
1556 1556
 #endif
1557 1557
 
1558
+// Support for Adafruit Neopixel LED driver
1559
+//#define NEOPIXEL_RGBW_LED
1560
+#if ENABLED(NEOPIXEL_RGBW_LED)
1561
+  #define NEOPIXEL_PIN    4       // D4 (EXP2-5 on Printrboard)
1562
+  #define NEOPIXEL_PIXELS 3
1563
+  //#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
1564
+#endif
1565
+
1558 1566
 /**
1559 1567
  * Printer Event LEDs
1560 1568
  *
@@ -1566,7 +1574,7 @@
1566 1574
  *  - Change to green once print has finished
1567 1575
  *  - Turn off after the print has finished and the user has pushed a button
1568 1576
  */
1569
-#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED)
1577
+#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
1570 1578
   #define PRINTER_EVENT_LEDS
1571 1579
 #endif
1572 1580
 

+ 9
- 1
Marlin/example_configurations/Malyan/M150/Configuration.h Прегледај датотеку

@@ -1574,6 +1574,14 @@
1574 1574
   #define RGB_LED_W_PIN -1
1575 1575
 #endif
1576 1576
 
1577
+// Support for Adafruit Neopixel LED driver
1578
+//#define NEOPIXEL_RGBW_LED
1579
+#if ENABLED(NEOPIXEL_RGBW_LED)
1580
+  #define NEOPIXEL_PIN    4       // D4 (EXP2-5 on Printrboard)
1581
+  #define NEOPIXEL_PIXELS 3
1582
+  //#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
1583
+#endif
1584
+
1577 1585
 /**
1578 1586
  * Printer Event LEDs
1579 1587
  *
@@ -1585,7 +1593,7 @@
1585 1593
  *  - Change to green once print has finished
1586 1594
  *  - Turn off after the print has finished and the user has pushed a button
1587 1595
  */
1588
-#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632)
1596
+#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
1589 1597
   #define PRINTER_EVENT_LEDS
1590 1598
 #endif
1591 1599
 

+ 9
- 1
Marlin/example_configurations/RepRapWorld/Megatronics/Configuration.h Прегледај датотеку

@@ -1547,6 +1547,14 @@
1547 1547
   #define RGB_LED_W_PIN -1
1548 1548
 #endif
1549 1549
 
1550
+// Support for Adafruit Neopixel LED driver
1551
+//#define NEOPIXEL_RGBW_LED
1552
+#if ENABLED(NEOPIXEL_RGBW_LED)
1553
+  #define NEOPIXEL_PIN    4       // D4 (EXP2-5 on Printrboard)
1554
+  #define NEOPIXEL_PIXELS 3
1555
+  //#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
1556
+#endif
1557
+
1550 1558
 /**
1551 1559
  * Printer Event LEDs
1552 1560
  *
@@ -1558,7 +1566,7 @@
1558 1566
  *  - Change to green once print has finished
1559 1567
  *  - Turn off after the print has finished and the user has pushed a button
1560 1568
  */
1561
-#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632)
1569
+#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
1562 1570
   #define PRINTER_EVENT_LEDS
1563 1571
 #endif
1564 1572
 

+ 9
- 1
Marlin/example_configurations/RigidBot/Configuration.h Прегледај датотеку

@@ -1547,6 +1547,14 @@
1547 1547
   #define RGB_LED_W_PIN -1
1548 1548
 #endif
1549 1549
 
1550
+// Support for Adafruit Neopixel LED driver
1551
+//#define NEOPIXEL_RGBW_LED
1552
+#if ENABLED(NEOPIXEL_RGBW_LED)
1553
+  #define NEOPIXEL_PIN    4       // D4 (EXP2-5 on Printrboard)
1554
+  #define NEOPIXEL_PIXELS 3
1555
+  //#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
1556
+#endif
1557
+
1550 1558
 /**
1551 1559
  * Printer Event LEDs
1552 1560
  *
@@ -1558,7 +1566,7 @@
1558 1566
  *  - Change to green once print has finished
1559 1567
  *  - Turn off after the print has finished and the user has pushed a button
1560 1568
  */
1561
-#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632)
1569
+#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
1562 1570
   #define PRINTER_EVENT_LEDS
1563 1571
 #endif
1564 1572
 

+ 9
- 1
Marlin/example_configurations/SCARA/Configuration.h Прегледај датотеку

@@ -1559,6 +1559,14 @@
1559 1559
   #define RGB_LED_W_PIN -1
1560 1560
 #endif
1561 1561
 
1562
+// Support for Adafruit Neopixel LED driver
1563
+//#define NEOPIXEL_RGBW_LED
1564
+#if ENABLED(NEOPIXEL_RGBW_LED)
1565
+  #define NEOPIXEL_PIN    4       // D4 (EXP2-5 on Printrboard)
1566
+  #define NEOPIXEL_PIXELS 3
1567
+  //#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
1568
+#endif
1569
+
1562 1570
 /**
1563 1571
  * Printer Event LEDs
1564 1572
  *
@@ -1570,7 +1578,7 @@
1570 1578
  *  - Change to green once print has finished
1571 1579
  *  - Turn off after the print has finished and the user has pushed a button
1572 1580
  */
1573
-#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632)
1581
+#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
1574 1582
   #define PRINTER_EVENT_LEDS
1575 1583
 #endif
1576 1584
 

+ 9
- 1
Marlin/example_configurations/TinyBoy2/Configuration.h Прегледај датотеку

@@ -1608,6 +1608,14 @@
1608 1608
   #define RGB_LED_W_PIN -1
1609 1609
 #endif
1610 1610
 
1611
+// 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
1617
+#endif
1618
+
1611 1619
 /**
1612 1620
  * Printer Event LEDs
1613 1621
  *
@@ -1619,7 +1627,7 @@
1619 1627
  *  - Change to green once print has finished
1620 1628
  *  - Turn off after the print has finished and the user has pushed a button
1621 1629
  */
1622
-#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632)
1630
+#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
1623 1631
   #define PRINTER_EVENT_LEDS
1624 1632
 #endif
1625 1633
 

+ 9
- 1
Marlin/example_configurations/Velleman/K8200/Configuration.h Прегледај датотеку

@@ -1586,6 +1586,14 @@
1586 1586
   #define RGB_LED_W_PIN -1
1587 1587
 #endif
1588 1588
 
1589
+// Support for Adafruit Neopixel LED driver
1590
+//#define NEOPIXEL_RGBW_LED
1591
+#if ENABLED(NEOPIXEL_RGBW_LED)
1592
+  #define NEOPIXEL_PIN    4       // D4 (EXP2-5 on Printrboard)
1593
+  #define NEOPIXEL_PIXELS 3
1594
+  //#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
1595
+#endif
1596
+
1589 1597
 /**
1590 1598
  * Printer Event LEDs
1591 1599
  *
@@ -1597,7 +1605,7 @@
1597 1605
  *  - Change to green once print has finished
1598 1606
  *  - Turn off after the print has finished and the user has pushed a button
1599 1607
  */
1600
-#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632)
1608
+#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
1601 1609
   #define PRINTER_EVENT_LEDS
1602 1610
 #endif
1603 1611
 

+ 9
- 1
Marlin/example_configurations/Velleman/K8400/Configuration.h Прегледај датотеку

@@ -1547,6 +1547,14 @@
1547 1547
   #define RGB_LED_W_PIN -1
1548 1548
 #endif
1549 1549
 
1550
+// Support for Adafruit Neopixel LED driver
1551
+//#define NEOPIXEL_RGBW_LED
1552
+#if ENABLED(NEOPIXEL_RGBW_LED)
1553
+  #define NEOPIXEL_PIN    4       // D4 (EXP2-5 on Printrboard)
1554
+  #define NEOPIXEL_PIXELS 3
1555
+  //#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
1556
+#endif
1557
+
1550 1558
 /**
1551 1559
  * Printer Event LEDs
1552 1560
  *
@@ -1558,7 +1566,7 @@
1558 1566
  *  - Change to green once print has finished
1559 1567
  *  - Turn off after the print has finished and the user has pushed a button
1560 1568
  */
1561
-#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632)
1569
+#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
1562 1570
   #define PRINTER_EVENT_LEDS
1563 1571
 #endif
1564 1572
 

+ 9
- 1
Marlin/example_configurations/Velleman/K8400/Dual-head/Configuration.h Прегледај датотеку

@@ -1547,6 +1547,14 @@
1547 1547
   #define RGB_LED_W_PIN -1
1548 1548
 #endif
1549 1549
 
1550
+// Support for Adafruit Neopixel LED driver
1551
+//#define NEOPIXEL_RGBW_LED
1552
+#if ENABLED(NEOPIXEL_RGBW_LED)
1553
+  #define NEOPIXEL_PIN    4       // D4 (EXP2-5 on Printrboard)
1554
+  #define NEOPIXEL_PIXELS 3
1555
+  //#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
1556
+#endif
1557
+
1550 1558
 /**
1551 1559
  * Printer Event LEDs
1552 1560
  *
@@ -1558,7 +1566,7 @@
1558 1566
  *  - Change to green once print has finished
1559 1567
  *  - Turn off after the print has finished and the user has pushed a button
1560 1568
  */
1561
-#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632)
1569
+#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
1562 1570
   #define PRINTER_EVENT_LEDS
1563 1571
 #endif
1564 1572
 

+ 9
- 1
Marlin/example_configurations/adafruit/ST7565/Configuration.h Прегледај датотеку

@@ -1547,6 +1547,14 @@
1547 1547
   #define RGB_LED_W_PIN -1
1548 1548
 #endif
1549 1549
 
1550
+// Support for Adafruit Neopixel LED driver
1551
+//#define NEOPIXEL_RGBW_LED
1552
+#if ENABLED(NEOPIXEL_RGBW_LED)
1553
+  #define NEOPIXEL_PIN    4       // D4 (EXP2-5 on Printrboard)
1554
+  #define NEOPIXEL_PIXELS 3
1555
+  //#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
1556
+#endif
1557
+
1550 1558
 /**
1551 1559
  * Printer Event LEDs
1552 1560
  *
@@ -1558,7 +1566,7 @@
1558 1566
  *  - Change to green once print has finished
1559 1567
  *  - Turn off after the print has finished and the user has pushed a button
1560 1568
  */
1561
-#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632)
1569
+#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
1562 1570
   #define PRINTER_EVENT_LEDS
1563 1571
 #endif
1564 1572
 

+ 9
- 1
Marlin/example_configurations/delta/FLSUN/auto_calibrate/Configuration.h Прегледај датотеку

@@ -1674,6 +1674,14 @@
1674 1674
   #define RGB_LED_W_PIN -1
1675 1675
 #endif
1676 1676
 
1677
+// Support for Adafruit Neopixel LED driver
1678
+//#define NEOPIXEL_RGBW_LED
1679
+#if ENABLED(NEOPIXEL_RGBW_LED)
1680
+  #define NEOPIXEL_PIN    4       // D4 (EXP2-5 on Printrboard)
1681
+  #define NEOPIXEL_PIXELS 3
1682
+  //#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
1683
+#endif
1684
+
1677 1685
 /**
1678 1686
  * Printer Event LEDs
1679 1687
  *
@@ -1685,7 +1693,7 @@
1685 1693
  *  - Change to green once print has finished
1686 1694
  *  - Turn off after the print has finished and the user has pushed a button
1687 1695
  */
1688
-#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632)
1696
+#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
1689 1697
   #define PRINTER_EVENT_LEDS
1690 1698
 #endif
1691 1699
 

+ 9
- 1
Marlin/example_configurations/delta/FLSUN/kossel_mini/Configuration.h Прегледај датотеку

@@ -1668,6 +1668,14 @@
1668 1668
   #define RGB_LED_W_PIN -1
1669 1669
 #endif
1670 1670
 
1671
+// Support for Adafruit Neopixel LED driver
1672
+//#define NEOPIXEL_RGBW_LED
1673
+#if ENABLED(NEOPIXEL_RGBW_LED)
1674
+  #define NEOPIXEL_PIN    4       // D4 (EXP2-5 on Printrboard)
1675
+  #define NEOPIXEL_PIXELS 3
1676
+  //#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
1677
+#endif
1678
+
1671 1679
 /**
1672 1680
  * Printer Event LEDs
1673 1681
  *
@@ -1679,7 +1687,7 @@
1679 1687
  *  - Change to green once print has finished
1680 1688
  *  - Turn off after the print has finished and the user has pushed a button
1681 1689
  */
1682
-#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632)
1690
+#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
1683 1691
   #define PRINTER_EVENT_LEDS
1684 1692
 #endif
1685 1693
 

+ 9
- 1
Marlin/example_configurations/delta/generic/Configuration.h Прегледај датотеку

@@ -1658,6 +1658,14 @@
1658 1658
   #define RGB_LED_W_PIN -1
1659 1659
 #endif
1660 1660
 
1661
+// Support for Adafruit Neopixel LED driver
1662
+//#define NEOPIXEL_RGBW_LED
1663
+#if ENABLED(NEOPIXEL_RGBW_LED)
1664
+  #define NEOPIXEL_PIN    4       // D4 (EXP2-5 on Printrboard)
1665
+  #define NEOPIXEL_PIXELS 3
1666
+  //#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
1667
+#endif
1668
+
1661 1669
 /**
1662 1670
  * Printer Event LEDs
1663 1671
  *
@@ -1669,7 +1677,7 @@
1669 1677
  *  - Change to green once print has finished
1670 1678
  *  - Turn off after the print has finished and the user has pushed a button
1671 1679
  */
1672
-#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632)
1680
+#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
1673 1681
   #define PRINTER_EVENT_LEDS
1674 1682
 #endif
1675 1683
 

+ 9
- 1
Marlin/example_configurations/delta/kossel_mini/Configuration.h Прегледај датотеку

@@ -1661,6 +1661,14 @@
1661 1661
   #define RGB_LED_W_PIN -1
1662 1662
 #endif
1663 1663
 
1664
+// 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
1670
+#endif
1671
+
1664 1672
 /**
1665 1673
  * Printer Event LEDs
1666 1674
  *
@@ -1672,7 +1680,7 @@
1672 1680
  *  - Change to green once print has finished
1673 1681
  *  - Turn off after the print has finished and the user has pushed a button
1674 1682
  */
1675
-#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632)
1683
+#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
1676 1684
   #define PRINTER_EVENT_LEDS
1677 1685
 #endif
1678 1686
 

+ 9
- 1
Marlin/example_configurations/delta/kossel_pro/Configuration.h Прегледај датотеку

@@ -1666,6 +1666,14 @@
1666 1666
   #define RGB_LED_W_PIN -1
1667 1667
 #endif
1668 1668
 
1669
+// Support for Adafruit Neopixel LED driver
1670
+//#define NEOPIXEL_RGBW_LED
1671
+#if ENABLED(NEOPIXEL_RGBW_LED)
1672
+  #define NEOPIXEL_PIN    4       // D4 (EXP2-5 on Printrboard)
1673
+  #define NEOPIXEL_PIXELS 3
1674
+  //#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
1675
+#endif
1676
+
1669 1677
 /**
1670 1678
  * Printer Event LEDs
1671 1679
  *
@@ -1677,7 +1685,7 @@
1677 1685
  *  - Change to green once print has finished
1678 1686
  *  - Turn off after the print has finished and the user has pushed a button
1679 1687
  */
1680
-#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632)
1688
+#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
1681 1689
   #define PRINTER_EVENT_LEDS
1682 1690
 #endif
1683 1691
 

+ 9
- 1
Marlin/example_configurations/delta/kossel_xl/Configuration.h Прегледај датотеку

@@ -1724,6 +1724,14 @@
1724 1724
   #define RGB_LED_W_PIN -1
1725 1725
 #endif
1726 1726
 
1727
+// 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
1733
+#endif
1734
+
1727 1735
 /**
1728 1736
  * Printer Event LEDs
1729 1737
  *
@@ -1735,7 +1743,7 @@
1735 1743
  *  - Change to green once print has finished
1736 1744
  *  - Turn off after the print has finished and the user has pushed a button
1737 1745
  */
1738
-#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632)
1746
+#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
1739 1747
   #define PRINTER_EVENT_LEDS
1740 1748
 #endif
1741 1749
 

+ 9
- 1
Marlin/example_configurations/gCreate/gMax1.5+/Configuration.h Прегледај датотеку

@@ -1563,6 +1563,14 @@
1563 1563
   #define RGB_LED_W_PIN -1
1564 1564
 #endif
1565 1565
 
1566
+// Support for Adafruit Neopixel LED driver
1567
+//#define NEOPIXEL_RGBW_LED
1568
+#if ENABLED(NEOPIXEL_RGBW_LED)
1569
+  #define NEOPIXEL_PIN    4       // D4 (EXP2-5 on Printrboard)
1570
+  #define NEOPIXEL_PIXELS 3
1571
+  //#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
1572
+#endif
1573
+
1566 1574
 /**
1567 1575
  * Printer Event LEDs
1568 1576
  *
@@ -1574,7 +1582,7 @@
1574 1582
  *  - Change to green once print has finished
1575 1583
  *  - Turn off after the print has finished and the user has pushed a button
1576 1584
  */
1577
-#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632)
1585
+#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
1578 1586
   #define PRINTER_EVENT_LEDS
1579 1587
 #endif
1580 1588
 

+ 9
- 1
Marlin/example_configurations/makibox/Configuration.h Прегледај датотеку

@@ -1550,6 +1550,14 @@
1550 1550
   #define RGB_LED_W_PIN -1
1551 1551
 #endif
1552 1552
 
1553
+// Support for Adafruit Neopixel LED driver
1554
+//#define NEOPIXEL_RGBW_LED
1555
+#if ENABLED(NEOPIXEL_RGBW_LED)
1556
+  #define NEOPIXEL_PIN    4       // D4 (EXP2-5 on Printrboard)
1557
+  #define NEOPIXEL_PIXELS 3
1558
+  //#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
1559
+#endif
1560
+
1553 1561
 /**
1554 1562
  * Printer Event LEDs
1555 1563
  *
@@ -1561,7 +1569,7 @@
1561 1569
  *  - Change to green once print has finished
1562 1570
  *  - Turn off after the print has finished and the user has pushed a button
1563 1571
  */
1564
-#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632)
1572
+#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
1565 1573
   #define PRINTER_EVENT_LEDS
1566 1574
 #endif
1567 1575
 

+ 9
- 1
Marlin/example_configurations/tvrrug/Round2/Configuration.h Прегледај датотеку

@@ -1542,6 +1542,14 @@
1542 1542
   #define RGB_LED_W_PIN -1
1543 1543
 #endif
1544 1544
 
1545
+// Support for Adafruit Neopixel LED driver
1546
+//#define NEOPIXEL_RGBW_LED
1547
+#if ENABLED(NEOPIXEL_RGBW_LED)
1548
+  #define NEOPIXEL_PIN    4       // D4 (EXP2-5 on Printrboard)
1549
+  #define NEOPIXEL_PIXELS 3
1550
+  //#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
1551
+#endif
1552
+
1545 1553
 /**
1546 1554
  * Printer Event LEDs
1547 1555
  *
@@ -1553,7 +1561,7 @@
1553 1561
  *  - Change to green once print has finished
1554 1562
  *  - Turn off after the print has finished and the user has pushed a button
1555 1563
  */
1556
-#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632)
1564
+#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
1557 1565
   #define PRINTER_EVENT_LEDS
1558 1566
 #endif
1559 1567
 

+ 9
- 1
Marlin/example_configurations/wt150/Configuration.h Прегледај датотеку

@@ -1553,6 +1553,14 @@
1553 1553
   #define RGB_LED_W_PIN -1
1554 1554
 #endif
1555 1555
 
1556
+// Support for Adafruit Neopixel LED driver
1557
+//#define NEOPIXEL_RGBW_LED
1558
+#if ENABLED(NEOPIXEL_RGBW_LED)
1559
+  #define NEOPIXEL_PIN    4       // D4 (EXP2-5 on Printrboard)
1560
+  #define NEOPIXEL_PIXELS 3
1561
+  //#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
1562
+#endif
1563
+
1556 1564
 /**
1557 1565
  * Printer Event LEDs
1558 1566
  *
@@ -1564,7 +1572,7 @@
1564 1572
  *  - Change to green once print has finished
1565 1573
  *  - Turn off after the print has finished and the user has pushed a button
1566 1574
  */
1567
-#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632)
1575
+#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
1568 1576
   #define PRINTER_EVENT_LEDS
1569 1577
 #endif
1570 1578
 

Loading…
Откажи
Сачувај