Browse Source

Merge pull request #7340 from thinkyhead/bf_neopixel_rgbw

Add support for Printrbot Neopixel RGBW strip.
Scott Lahteine 8 years ago
parent
commit
21591352d7
38 changed files with 449 additions and 61 deletions
  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. 66
    20
      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 View File

50
   - git clone https://github.com/teemuatlut/TMC2130Stepper.git
50
   - git clone https://github.com/teemuatlut/TMC2130Stepper.git
51
   - sudo mv TMC2130Stepper /usr/local/share/arduino/libraries/TMC2130Stepper
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
 before_script:
57
 before_script:
54
   #
58
   #
55
   # Change current working directory to the build dir
59
   # Change current working directory to the build dir
80
   - opt_set TEMP_SENSOR_1 1
84
   - opt_set TEMP_SENSOR_1 1
81
   - opt_set TEMP_SENSOR_BED 1
85
   - opt_set TEMP_SENSOR_BED 1
82
   - opt_enable PIDTEMPBED FIX_MOUNTED_PROBE Z_SAFE_HOMING ARC_P_CIRCLES CNC_WORKSPACE_PLANES
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
   - build_marlin
88
   - build_marlin
84
   #
89
   #
85
   # ...with AUTO_BED_LEVELING_LINEAR, Z_MIN_PROBE_REPEATABILITY_TEST, and DEBUG_LEVELING_FEATURE
90
   # ...with AUTO_BED_LEVELING_LINEAR, Z_MIN_PROBE_REPEATABILITY_TEST, and DEBUG_LEVELING_FEATURE

+ 1
- 1
Marlin/Conditionals_LCD.h View File

430
 
430
 
431
   #define HAS_SOFTWARE_ENDSTOPS (ENABLED(MIN_SOFTWARE_ENDSTOPS) || ENABLED(MAX_SOFTWARE_ENDSTOPS))
431
   #define HAS_SOFTWARE_ENDSTOPS (ENABLED(MIN_SOFTWARE_ENDSTOPS) || ENABLED(MAX_SOFTWARE_ENDSTOPS))
432
   #define HAS_RESUME_CONTINUE (ENABLED(NEWPANEL) || ENABLED(EMERGENCY_PARSER))
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
 #endif // CONDITIONALS_LCD_H
435
 #endif // CONDITIONALS_LCD_H

+ 9
- 1
Marlin/Configuration.h View File

1551
   #define RGB_LED_W_PIN -1
1551
   #define RGB_LED_W_PIN -1
1552
 #endif
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
  * Printer Event LEDs
1563
  * Printer Event LEDs
1556
  *
1564
  *
1562
  *  - Change to green once print has finished
1570
  *  - Change to green once print has finished
1563
  *  - Turn off after the print has finished and the user has pushed a button
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
   #define PRINTER_EVENT_LEDS
1574
   #define PRINTER_EVENT_LEDS
1567
 #endif
1575
 #endif
1568
 
1576
 

+ 6
- 0
Marlin/Makefile View File

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

+ 77
- 6
Marlin/Marlin_main.cpp View File

279
   #include "watchdog.h"
279
   #include "watchdog.h"
280
 #endif
280
 #endif
281
 
281
 
282
+#if ENABLED(NEOPIXEL_RGBW_LED)
283
+  #include <Adafruit_NeoPixel.h>
284
+#endif
285
+
282
 #if ENABLED(BLINKM)
286
 #if ENABLED(BLINKM)
283
   #include "blinkm.h"
287
   #include "blinkm.h"
284
   #include "Wire.h"
288
   #include "Wire.h"
968
 
972
 
969
 #if HAS_COLOR_LEDS
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
   void set_led_color(
1004
   void set_led_color(
972
     const uint8_t r, const uint8_t g, const uint8_t b
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
       #endif
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
     #if ENABLED(BLINKM)
1030
     #if ENABLED(BLINKM)
979
 
1031
 
980
       // This variant uses i2c to send the RGB components to the device.
1032
       // This variant uses i2c to send the RGB components to the device.
7355
       // Gradually change LED strip from violet to red as nozzle heats up
7407
       // Gradually change LED strip from violet to red as nozzle heats up
7356
       if (!wants_to_cool) {
7408
       if (!wants_to_cool) {
7357
         const uint8_t blue = map(constrain(temp, start_temp, target_temp), start_temp, target_temp, 255, 0);
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
     #endif
7419
     #endif
7361
 
7420
 
7390
   if (wait_for_heatup) {
7449
   if (wait_for_heatup) {
7391
     LCD_MESSAGEPGM(MSG_HEATING_COMPLETE);
7450
     LCD_MESSAGEPGM(MSG_HEATING_COMPLETE);
7392
     #if ENABLED(PRINTER_EVENT_LEDS)
7451
     #if ENABLED(PRINTER_EVENT_LEDS)
7393
-      #if ENABLED(RGBW_LED)
7452
+      #if ENABLED(RGBW_LED) || ENABLED(NEOPIXEL_RGBW_LED)
7394
         set_led_color(0, 0, 0, 255);  // Turn on the WHITE LED
7453
         set_led_color(0, 0, 0, 255);  // Turn on the WHITE LED
7395
       #else
7454
       #else
7396
         set_led_color(255, 255, 255); // Set LEDs All On
7455
         set_led_color(255, 255, 255); // Set LEDs All On
7488
         // Gradually change LED strip from blue to violet as bed heats up
7547
         // Gradually change LED strip from blue to violet as bed heats up
7489
         if (!wants_to_cool) {
7548
         if (!wants_to_cool) {
7490
           const uint8_t red = map(constrain(temp, start_temp, target_temp), start_temp, target_temp, 0, 255);
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
       #endif
7559
       #endif
7494
 
7560
 
8146
       parser.seen('R') ? (parser.has_value() ? parser.value_byte() : 255) : 0,
8212
       parser.seen('R') ? (parser.has_value() ? parser.value_byte() : 255) : 0,
8147
       parser.seen('U') ? (parser.has_value() ? parser.value_byte() : 255) : 0,
8213
       parser.seen('U') ? (parser.has_value() ? parser.value_byte() : 255) : 0,
8148
       parser.seen('B') ? (parser.has_value() ? parser.value_byte() : 255) : 0
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
         , parser.seen('W') ? (parser.has_value() ? parser.value_byte() : 255) : 0
8216
         , parser.seen('W') ? (parser.has_value() ? parser.value_byte() : 255) : 0
8151
       #endif
8217
       #endif
8152
     );
8218
     );
13072
     OUT_WRITE(STAT_LED_BLUE_PIN, LOW); // turn it off
13138
     OUT_WRITE(STAT_LED_BLUE_PIN, LOW); // turn it off
13073
   #endif
13139
   #endif
13074
 
13140
 
13141
+  #if ENABLED(NEOPIXEL_RGBW_LED)
13142
+    SET_OUTPUT(NEOPIXEL_PIN);
13143
+    setup_neopixel();
13144
+  #endif
13145
+
13075
   #if ENABLED(RGB_LED) || ENABLED(RGBW_LED)
13146
   #if ENABLED(RGB_LED) || ENABLED(RGBW_LED)
13076
     SET_OUTPUT(RGB_LED_R_PIN);
13147
     SET_OUTPUT(RGB_LED_R_PIN);
13077
     SET_OUTPUT(RGB_LED_G_PIN);
13148
     SET_OUTPUT(RGB_LED_G_PIN);

+ 6
- 2
Marlin/SanityCheck.h View File

1056
   #if !(_RGB_TEST && PIN_EXISTS(RGB_LED_W))
1056
   #if !(_RGB_TEST && PIN_EXISTS(RGB_LED_W))
1057
     #error "RGBW_LED requires RGB_LED_R_PIN, RGB_LED_G_PIN, RGB_LED_B_PIN, and RGB_LED_W_PIN."
1057
     #error "RGBW_LED requires RGB_LED_R_PIN, RGB_LED_G_PIN, RGB_LED_B_PIN, and RGB_LED_W_PIN."
1058
   #endif
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
 #endif
1065
 #endif
1062
 
1066
 
1063
 /**
1067
 /**

+ 9
- 1
Marlin/example_configurations/AlephObjects/TAZ4/Configuration.h View File

1566
   #define RGB_LED_W_PIN -1
1566
   #define RGB_LED_W_PIN -1
1567
 #endif
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
  * Printer Event LEDs
1578
  * Printer Event LEDs
1571
  *
1579
  *
1577
  *  - Change to green once print has finished
1585
  *  - Change to green once print has finished
1578
  *  - Turn off after the print has finished and the user has pushed a button
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
   #define PRINTER_EVENT_LEDS
1589
   #define PRINTER_EVENT_LEDS
1582
 #endif
1590
 #endif
1583
 
1591
 

+ 9
- 1
Marlin/example_configurations/AliExpress/CL-260/Configuration.h View File

1548
   #define RGB_LED_W_PIN -1
1548
   #define RGB_LED_W_PIN -1
1549
 #endif
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
  * Printer Event LEDs
1560
  * Printer Event LEDs
1553
  *
1561
  *
1559
  *  - Change to green once print has finished
1567
  *  - Change to green once print has finished
1560
  *  - Turn off after the print has finished and the user has pushed a button
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
   #define PRINTER_EVENT_LEDS
1571
   #define PRINTER_EVENT_LEDS
1564
 #endif
1572
 #endif
1565
 
1573
 

+ 9
- 1
Marlin/example_configurations/Anet/A6/Configuration.h View File

1709
   #define RGB_LED_W_PIN -1
1709
   #define RGB_LED_W_PIN -1
1710
 #endif
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
  * Printer Event LEDs
1721
  * Printer Event LEDs
1714
  *
1722
  *
1720
  *  - Change to green once print has finished
1728
  *  - Change to green once print has finished
1721
  *  - Turn off after the print has finished and the user has pushed a button
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
   #define PRINTER_EVENT_LEDS
1732
   #define PRINTER_EVENT_LEDS
1725
 #endif
1733
 #endif
1726
 
1734
 

+ 9
- 1
Marlin/example_configurations/Anet/A8/Configuration.h View File

1558
   #define RGB_LED_W_PIN -1
1558
   #define RGB_LED_W_PIN -1
1559
 #endif
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
  * Printer Event LEDs
1570
  * Printer Event LEDs
1563
  *
1571
  *
1569
  *  - Change to green once print has finished
1577
  *  - Change to green once print has finished
1570
  *  - Turn off after the print has finished and the user has pushed a button
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
   #define PRINTER_EVENT_LEDS
1581
   #define PRINTER_EVENT_LEDS
1574
 #endif
1582
 #endif
1575
 
1583
 

+ 9
- 1
Marlin/example_configurations/BQ/Hephestos/Configuration.h View File

1537
   #define RGB_LED_W_PIN -1
1537
   #define RGB_LED_W_PIN -1
1538
 #endif
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
  * Printer Event LEDs
1549
  * Printer Event LEDs
1542
  *
1550
  *
1548
  *  - Change to green once print has finished
1556
  *  - Change to green once print has finished
1549
  *  - Turn off after the print has finished and the user has pushed a button
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
   #define PRINTER_EVENT_LEDS
1560
   #define PRINTER_EVENT_LEDS
1553
 #endif
1561
 #endif
1554
 
1562
 

+ 9
- 1
Marlin/example_configurations/BQ/Hephestos_2/Configuration.h View File

1548
   #define RGB_LED_W_PIN -1
1548
   #define RGB_LED_W_PIN -1
1549
 #endif
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
  * Printer Event LEDs
1560
  * Printer Event LEDs
1553
  *
1561
  *
1559
  *  - Change to green once print has finished
1567
  *  - Change to green once print has finished
1560
  *  - Turn off after the print has finished and the user has pushed a button
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
   #define PRINTER_EVENT_LEDS
1571
   #define PRINTER_EVENT_LEDS
1564
 #endif
1572
 #endif
1565
 
1573
 

+ 9
- 1
Marlin/example_configurations/BQ/WITBOX/Configuration.h View File

1537
   #define RGB_LED_W_PIN -1
1537
   #define RGB_LED_W_PIN -1
1538
 #endif
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
  * Printer Event LEDs
1549
  * Printer Event LEDs
1542
  *
1550
  *
1548
  *  - Change to green once print has finished
1556
  *  - Change to green once print has finished
1549
  *  - Turn off after the print has finished and the user has pushed a button
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
   #define PRINTER_EVENT_LEDS
1560
   #define PRINTER_EVENT_LEDS
1553
 #endif
1561
 #endif
1554
 
1562
 

+ 9
- 1
Marlin/example_configurations/Cartesio/Configuration.h View File

1545
   #define RGB_LED_W_PIN -1
1545
   #define RGB_LED_W_PIN -1
1546
 #endif
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
  * Printer Event LEDs
1557
  * Printer Event LEDs
1550
  *
1558
  *
1556
  *  - Change to green once print has finished
1564
  *  - Change to green once print has finished
1557
  *  - Turn off after the print has finished and the user has pushed a button
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
   #define PRINTER_EVENT_LEDS
1568
   #define PRINTER_EVENT_LEDS
1561
 #endif
1569
 #endif
1562
 
1570
 

+ 9
- 1
Marlin/example_configurations/Creality/CR-10/Configuration.h View File

1562
   #define RGB_LED_W_PIN -1
1562
   #define RGB_LED_W_PIN -1
1563
 #endif
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
  * Printer Event LEDs
1574
  * Printer Event LEDs
1567
  *
1575
  *
1573
  *  - Change to green once print has finished
1581
  *  - Change to green once print has finished
1574
  *  - Turn off after the print has finished and the user has pushed a button
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
   #define PRINTER_EVENT_LEDS
1585
   #define PRINTER_EVENT_LEDS
1578
 #endif
1586
 #endif
1579
 
1587
 

+ 9
- 1
Marlin/example_configurations/Felix/Configuration.h View File

1529
   #define RGB_LED_W_PIN -1
1529
   #define RGB_LED_W_PIN -1
1530
 #endif
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
  * Printer Event LEDs
1541
  * Printer Event LEDs
1534
  *
1542
  *
1540
  *  - Change to green once print has finished
1548
  *  - Change to green once print has finished
1541
  *  - Turn off after the print has finished and the user has pushed a button
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
   #define PRINTER_EVENT_LEDS
1552
   #define PRINTER_EVENT_LEDS
1545
 #endif
1553
 #endif
1546
 
1554
 

+ 9
- 1
Marlin/example_configurations/Felix/DUAL/Configuration.h View File

1529
   #define RGB_LED_W_PIN -1
1529
   #define RGB_LED_W_PIN -1
1530
 #endif
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
  * Printer Event LEDs
1541
  * Printer Event LEDs
1534
  *
1542
  *
1540
  *  - Change to green once print has finished
1548
  *  - Change to green once print has finished
1541
  *  - Turn off after the print has finished and the user has pushed a button
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
   #define PRINTER_EVENT_LEDS
1552
   #define PRINTER_EVENT_LEDS
1545
 #endif
1553
 #endif
1546
 
1554
 

+ 9
- 1
Marlin/example_configurations/Folger Tech/i3-2020/Configuration.h View File

1551
   #define RGB_LED_W_PIN -1
1551
   #define RGB_LED_W_PIN -1
1552
 #endif
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
  * Printer Event LEDs
1563
  * Printer Event LEDs
1556
  *
1564
  *
1562
  *  - Change to green once print has finished
1570
  *  - Change to green once print has finished
1563
  *  - Turn off after the print has finished and the user has pushed a button
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
   #define PRINTER_EVENT_LEDS
1574
   #define PRINTER_EVENT_LEDS
1567
 #endif
1575
 #endif
1568
 
1576
 

+ 66
- 20
Marlin/example_configurations/Infitary/i3-M508/Configuration.h View File

58
 //===========================================================================
58
 //===========================================================================
59
 //============================= DELTA Printer ===============================
59
 //============================= DELTA Printer ===============================
60
 //===========================================================================
60
 //===========================================================================
61
-// For a Delta printer replace the configuration files with the files in the
62
-// example_configurations/delta directory.
61
+// For a Delta printer start with one of the configuration files in the
62
+// example_configurations/delta directory and customize for your machine.
63
 //
63
 //
64
 
64
 
65
 //===========================================================================
65
 //===========================================================================
66
 //============================= SCARA Printer ===============================
66
 //============================= SCARA Printer ===============================
67
 //===========================================================================
67
 //===========================================================================
68
-// For a Scara printer replace the configuration files with the files in the
69
-// example_configurations/SCARA directory.
68
+// For a SCARA printer start with the configuration files in
69
+// example_configurations/SCARA and customize for your machine.
70
 //
70
 //
71
 
71
 
72
 // @section info
72
 // @section info
138
 // For Cyclops or any "multi-extruder" that shares a single nozzle.
138
 // For Cyclops or any "multi-extruder" that shares a single nozzle.
139
 //#define SINGLENOZZLE
139
 //#define SINGLENOZZLE
140
 
140
 
141
+/**
142
+ * Průša MK2 Single Nozzle Multi-Material Multiplexer, and variants.
143
+ *
144
+ * This device allows one stepper driver on a control board to drive
145
+ * two to eight stepper motors, one at a time, in a manner suitable
146
+ * for extruders.
147
+ *
148
+ * This option only allows the multiplexer to switch on tool-change.
149
+ * Additional options to configure custom E moves are pending.
150
+ */
151
+//#define MK2_MULTIPLEXER
152
+#if ENABLED(MK2_MULTIPLEXER)
153
+  // Override the default DIO selector pins here, if needed.
154
+  // Some pins files may provide defaults for these pins.
155
+  //#define E_MUX0_PIN 40  // Always Required
156
+  //#define E_MUX1_PIN 42  // Needed for 3 to 8 steppers
157
+  //#define E_MUX2_PIN 44  // Needed for 5 to 8 steppers
158
+#endif
159
+
141
 // A dual extruder that uses a single stepper motor
160
 // A dual extruder that uses a single stepper motor
142
 //#define SWITCHING_EXTRUDER
161
 //#define SWITCHING_EXTRUDER
143
 #if ENABLED(SWITCHING_EXTRUDER)
162
 #if ENABLED(SWITCHING_EXTRUDER)
144
   #define SWITCHING_EXTRUDER_SERVO_NR 0
163
   #define SWITCHING_EXTRUDER_SERVO_NR 0
145
-  #define SWITCHING_EXTRUDER_SERVO_ANGLES { 0, 90 } // Angles for E0, E1
164
+  #define SWITCHING_EXTRUDER_SERVO_ANGLES { 0, 90 } // Angles for E0, E1[, E2, E3]
165
+  #if EXTRUDERS > 3
166
+    #define SWITCHING_EXTRUDER_E23_SERVO_NR 1
167
+  #endif
146
 #endif
168
 #endif
147
 
169
 
148
 // A dual-nozzle that uses a servomotor to raise/lower one of the nozzles
170
 // A dual-nozzle that uses a servomotor to raise/lower one of the nozzles
312
   #define K1 0.95 //smoothing factor within the PID
334
   #define K1 0.95 //smoothing factor within the PID
313
 
335
 
314
   // If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it
336
   // If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it
337
+
315
   // Ultimaker
338
   // Ultimaker
316
   //#define  DEFAULT_Kp 22.2
339
   //#define  DEFAULT_Kp 22.2
317
   //#define  DEFAULT_Ki 1.08
340
   //#define  DEFAULT_Ki 1.08
569
  *
592
  *
570
  */
593
  */
571
 //#define Z_MIN_PROBE_ENDSTOP
594
 //#define Z_MIN_PROBE_ENDSTOP
572
-//#define Z_MIN_PROBE_PIN Z_MAX_PIN
573
 
595
 
574
 /**
596
 /**
575
  * Probe Type
597
  * Probe Type
884
   #define UBL_MESH_INSET 1          // Mesh inset margin on print area
906
   #define UBL_MESH_INSET 1          // Mesh inset margin on print area
885
   #define GRID_MAX_POINTS_X 10      // Don't use more than 15 points per axis, implementation limited.
907
   #define GRID_MAX_POINTS_X 10      // Don't use more than 15 points per axis, implementation limited.
886
   #define GRID_MAX_POINTS_Y GRID_MAX_POINTS_X
908
   #define GRID_MAX_POINTS_Y GRID_MAX_POINTS_X
887
-  #define UBL_PROBE_PT_1_X 39       // These set the probe locations for when UBL does a 3-Point leveling
888
-  #define UBL_PROBE_PT_1_Y 180      // of the mesh.
909
+
910
+  #define UBL_PROBE_PT_1_X 39       // Probing points for 3-Point leveling of the mesh
911
+  #define UBL_PROBE_PT_1_Y 180
889
   #define UBL_PROBE_PT_2_X 39
912
   #define UBL_PROBE_PT_2_X 39
890
   #define UBL_PROBE_PT_2_Y 20
913
   #define UBL_PROBE_PT_2_Y 20
891
   #define UBL_PROBE_PT_3_X 180
914
   #define UBL_PROBE_PT_3_X 180
892
   #define UBL_PROBE_PT_3_Y 20
915
   #define UBL_PROBE_PT_3_Y 20
916
+
893
   #define UBL_G26_MESH_VALIDATION   // Enable G26 mesh validation
917
   #define UBL_G26_MESH_VALIDATION   // Enable G26 mesh validation
894
   #define UBL_MESH_EDIT_MOVES_Z     // Sophisticated users prefer no movement of nozzle
918
   #define UBL_MESH_EDIT_MOVES_Z     // Sophisticated users prefer no movement of nozzle
895
 
919
 
971
 // M502 - reverts to the default "factory settings".  You still need to store them in EEPROM afterwards if you want to.
995
 // M502 - reverts to the default "factory settings".  You still need to store them in EEPROM afterwards if you want to.
972
 //
996
 //
973
 //#define EEPROM_SETTINGS // Enable for M500 and M501 commands
997
 //#define EEPROM_SETTINGS // Enable for M500 and M501 commands
974
-
975
-#if ENABLED(EEPROM_SETTINGS)
976
-  // To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
977
-  #define EEPROM_CHITCHAT // Please keep turned on if you can.
978
-#endif
998
+//#define DISABLE_M503    // Saves ~2700 bytes of PROGMEM. Disable for release!
999
+#define EEPROM_CHITCHAT   // Give feedback on EEPROM commands. Disable to save PROGMEM.
979
 
1000
 
980
 //
1001
 //
981
 // Host Keepalive
1002
 // Host Keepalive
1135
  *
1156
  *
1136
  * Select the language to display on the LCD. These languages are available:
1157
  * Select the language to display on the LCD. These languages are available:
1137
  *
1158
  *
1138
- *    en, an, bg, ca, cn, cz, de, el, el-gr, es, eu, fi, fr, gl, hr, it,
1139
- *    kana, kana_utf8, nl, pl, pt, pt_utf8, pt-br, pt-br_utf8, ru, tr, uk, test
1159
+ *    en, an, bg, ca, cn, cz, cz_utf8, de, el, el-gr, es, eu, fi, fr, gl, hr,
1160
+ *    it, kana, kana_utf8, nl, pl, pt, pt_utf8, pt-br, pt-br_utf8, ru, tr, uk,
1161
+ *    zh_CN, zh_TW, test
1140
  *
1162
  *
1141
- * :{ 'en':'English', 'an':'Aragonese', 'bg':'Bulgarian', 'ca':'Catalan', 'cn':'Chinese', 'cz':'Czech', 'de':'German', 'el':'Greek', 'el-gr':'Greek (Greece)', 'es':'Spanish', 'eu':'Basque-Euskera', 'fi':'Finnish', 'fr':'French', 'gl':'Galician', 'hr':'Croatian', 'it':'Italian', 'kana':'Japanese', 'kana_utf8':'Japanese (UTF8)', 'nl':'Dutch', 'pl':'Polish', 'pt':'Portuguese', 'pt-br':'Portuguese (Brazilian)', 'pt-br_utf8':'Portuguese (Brazilian UTF8)', 'pt_utf8':'Portuguese (UTF8)', 'ru':'Russian', 'tr':'Turkish', 'uk':'Ukrainian', 'test':'TEST' }
1163
+ * :{ 'en':'English', 'an':'Aragonese', 'bg':'Bulgarian', 'ca':'Catalan', 'cn':'Chinese', 'cz':'Czech', 'cz_utf8':'Czech (UTF8)', 'de':'German', 'el':'Greek', 'el-gr':'Greek (Greece)', 'es':'Spanish', 'eu':'Basque-Euskera', 'fi':'Finnish', 'fr':'French', 'gl':'Galician', 'hr':'Croatian', 'it':'Italian', 'kana':'Japanese', 'kana_utf8':'Japanese (UTF8)', 'nl':'Dutch', 'pl':'Polish', 'pt':'Portuguese', 'pt-br':'Portuguese (Brazilian)', 'pt-br_utf8':'Portuguese (Brazilian UTF8)', 'pt_utf8':'Portuguese (UTF8)', 'ru':'Russian', 'tr':'Turkish', 'uk':'Ukrainian', 'zh_CN':'Chinese (Simplified)', 'zh_TW':'Chinese (Taiwan)', test':'TEST' }
1142
  */
1164
  */
1143
 #define LCD_LANGUAGE en
1165
 #define LCD_LANGUAGE en
1144
 
1166
 
1160
  *  - Click the controller to view the LCD menu
1182
  *  - Click the controller to view the LCD menu
1161
  *  - The LCD will display Japanese, Western, or Cyrillic text
1183
  *  - The LCD will display Japanese, Western, or Cyrillic text
1162
  *
1184
  *
1163
- * See https: *github.com/MarlinFirmware/Marlin/wiki/LCD-Language
1185
+ * See https://github.com/MarlinFirmware/Marlin/wiki/LCD-Language
1164
  *
1186
  *
1165
  * :['JAPANESE', 'WESTERN', 'CYRILLIC']
1187
  * :['JAPANESE', 'WESTERN', 'CYRILLIC']
1166
  */
1188
  */
1375
 //#define BQ_LCD_SMART_CONTROLLER
1397
 //#define BQ_LCD_SMART_CONTROLLER
1376
 
1398
 
1377
 //
1399
 //
1400
+// ANET_10 Controller supported displays.
1401
+//
1402
+//#define ANET_KEYPAD_LCD         // Requires ADC_KEYPAD_PIN to be assigned to an analog pin.
1403
+                                  // This LCD is known to be susceptible to electrical interference
1404
+                                  // which scrambles the display.  Pressing any button clears it up.
1405
+//#define ANET_FULL_GRAPHICS_LCD  // Anet 128x64 full graphics lcd with rotary encoder as used on Anet A6
1406
+                                  // A clone of the RepRapDiscount full graphics display but with
1407
+                                  // different pins/wiring (see pins_ANET_10.h).
1408
+
1409
+//
1378
 // LCD for Melzi Card with Graphical LCD
1410
 // LCD for Melzi Card with Graphical LCD
1379
 //
1411
 //
1380
 //#define LCD_FOR_MELZI
1412
 //#define LCD_FOR_MELZI
1395
 //
1427
 //
1396
 // Sainsmart YW Robot (LCM1602) LCD Display
1428
 // Sainsmart YW Robot (LCM1602) LCD Display
1397
 //
1429
 //
1430
+// Note: This controller requires F.Malpartida's LiquidCrystal_I2C library
1431
+// https://bitbucket.org/fmalpartida/new-liquidcrystal/wiki/Home
1432
+//
1398
 //#define LCD_I2C_SAINSMART_YWROBOT
1433
 //#define LCD_I2C_SAINSMART_YWROBOT
1399
 
1434
 
1400
 //
1435
 //
1485
 // SkeinForge sends the wrong arc g-codes when using Arc Point as fillet procedure
1520
 // SkeinForge sends the wrong arc g-codes when using Arc Point as fillet procedure
1486
 //#define SF_ARC_FIX
1521
 //#define SF_ARC_FIX
1487
 
1522
 
1488
-// Support for the BariCUDA Paste Extruder.
1523
+// Support for the BariCUDA Paste Extruder
1489
 //#define BARICUDA
1524
 //#define BARICUDA
1490
 
1525
 
1491
-//define BlinkM/CyzRgb Support
1526
+// Support for BlinkM/CyzRgb
1492
 //#define BLINKM
1527
 //#define BLINKM
1493
 
1528
 
1529
+// Support for PCA9632 PWM LED driver
1530
+//#define PCA9632
1531
+
1494
 /**
1532
 /**
1495
  * RGB LED / LED Strip Control
1533
  * RGB LED / LED Strip Control
1496
  *
1534
  *
1517
   #define RGB_LED_W_PIN -1
1555
   #define RGB_LED_W_PIN -1
1518
 #endif
1556
 #endif
1519
 
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
+
1520
 /**
1566
 /**
1521
  * Printer Event LEDs
1567
  * Printer Event LEDs
1522
  *
1568
  *
1528
  *  - Change to green once print has finished
1574
  *  - Change to green once print has finished
1529
  *  - Turn off after the print has finished and the user has pushed a button
1575
  *  - Turn off after the print has finished and the user has pushed a button
1530
  */
1576
  */
1531
-#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)
1532
   #define PRINTER_EVENT_LEDS
1578
   #define PRINTER_EVENT_LEDS
1533
 #endif
1579
 #endif
1534
 
1580
 

+ 9
- 1
Marlin/example_configurations/Malyan/M150/Configuration.h View File

1574
   #define RGB_LED_W_PIN -1
1574
   #define RGB_LED_W_PIN -1
1575
 #endif
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
  * Printer Event LEDs
1586
  * Printer Event LEDs
1579
  *
1587
  *
1585
  *  - Change to green once print has finished
1593
  *  - Change to green once print has finished
1586
  *  - Turn off after the print has finished and the user has pushed a button
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
   #define PRINTER_EVENT_LEDS
1597
   #define PRINTER_EVENT_LEDS
1590
 #endif
1598
 #endif
1591
 
1599
 

+ 9
- 1
Marlin/example_configurations/RepRapWorld/Megatronics/Configuration.h View File

1547
   #define RGB_LED_W_PIN -1
1547
   #define RGB_LED_W_PIN -1
1548
 #endif
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
  * Printer Event LEDs
1559
  * Printer Event LEDs
1552
  *
1560
  *
1558
  *  - Change to green once print has finished
1566
  *  - Change to green once print has finished
1559
  *  - Turn off after the print has finished and the user has pushed a button
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
   #define PRINTER_EVENT_LEDS
1570
   #define PRINTER_EVENT_LEDS
1563
 #endif
1571
 #endif
1564
 
1572
 

+ 9
- 1
Marlin/example_configurations/RigidBot/Configuration.h View File

1547
   #define RGB_LED_W_PIN -1
1547
   #define RGB_LED_W_PIN -1
1548
 #endif
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
  * Printer Event LEDs
1559
  * Printer Event LEDs
1552
  *
1560
  *
1558
  *  - Change to green once print has finished
1566
  *  - Change to green once print has finished
1559
  *  - Turn off after the print has finished and the user has pushed a button
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
   #define PRINTER_EVENT_LEDS
1570
   #define PRINTER_EVENT_LEDS
1563
 #endif
1571
 #endif
1564
 
1572
 

+ 9
- 1
Marlin/example_configurations/SCARA/Configuration.h View File

1559
   #define RGB_LED_W_PIN -1
1559
   #define RGB_LED_W_PIN -1
1560
 #endif
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
  * Printer Event LEDs
1571
  * Printer Event LEDs
1564
  *
1572
  *
1570
  *  - Change to green once print has finished
1578
  *  - Change to green once print has finished
1571
  *  - Turn off after the print has finished and the user has pushed a button
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
   #define PRINTER_EVENT_LEDS
1582
   #define PRINTER_EVENT_LEDS
1575
 #endif
1583
 #endif
1576
 
1584
 

+ 9
- 1
Marlin/example_configurations/TinyBoy2/Configuration.h View File

1608
   #define RGB_LED_W_PIN -1
1608
   #define RGB_LED_W_PIN -1
1609
 #endif
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
  * Printer Event LEDs
1620
  * Printer Event LEDs
1613
  *
1621
  *
1619
  *  - Change to green once print has finished
1627
  *  - Change to green once print has finished
1620
  *  - Turn off after the print has finished and the user has pushed a button
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
   #define PRINTER_EVENT_LEDS
1631
   #define PRINTER_EVENT_LEDS
1624
 #endif
1632
 #endif
1625
 
1633
 

+ 9
- 1
Marlin/example_configurations/Velleman/K8200/Configuration.h View File

1586
   #define RGB_LED_W_PIN -1
1586
   #define RGB_LED_W_PIN -1
1587
 #endif
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
  * Printer Event LEDs
1598
  * Printer Event LEDs
1591
  *
1599
  *
1597
  *  - Change to green once print has finished
1605
  *  - Change to green once print has finished
1598
  *  - Turn off after the print has finished and the user has pushed a button
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
   #define PRINTER_EVENT_LEDS
1609
   #define PRINTER_EVENT_LEDS
1602
 #endif
1610
 #endif
1603
 
1611
 

+ 9
- 1
Marlin/example_configurations/Velleman/K8400/Configuration.h View File

1547
   #define RGB_LED_W_PIN -1
1547
   #define RGB_LED_W_PIN -1
1548
 #endif
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
  * Printer Event LEDs
1559
  * Printer Event LEDs
1552
  *
1560
  *
1558
  *  - Change to green once print has finished
1566
  *  - Change to green once print has finished
1559
  *  - Turn off after the print has finished and the user has pushed a button
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
   #define PRINTER_EVENT_LEDS
1570
   #define PRINTER_EVENT_LEDS
1563
 #endif
1571
 #endif
1564
 
1572
 

+ 9
- 1
Marlin/example_configurations/Velleman/K8400/Dual-head/Configuration.h View File

1547
   #define RGB_LED_W_PIN -1
1547
   #define RGB_LED_W_PIN -1
1548
 #endif
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
  * Printer Event LEDs
1559
  * Printer Event LEDs
1552
  *
1560
  *
1558
  *  - Change to green once print has finished
1566
  *  - Change to green once print has finished
1559
  *  - Turn off after the print has finished and the user has pushed a button
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
   #define PRINTER_EVENT_LEDS
1570
   #define PRINTER_EVENT_LEDS
1563
 #endif
1571
 #endif
1564
 
1572
 

+ 9
- 1
Marlin/example_configurations/adafruit/ST7565/Configuration.h View File

1547
   #define RGB_LED_W_PIN -1
1547
   #define RGB_LED_W_PIN -1
1548
 #endif
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
  * Printer Event LEDs
1559
  * Printer Event LEDs
1552
  *
1560
  *
1558
  *  - Change to green once print has finished
1566
  *  - Change to green once print has finished
1559
  *  - Turn off after the print has finished and the user has pushed a button
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
   #define PRINTER_EVENT_LEDS
1570
   #define PRINTER_EVENT_LEDS
1563
 #endif
1571
 #endif
1564
 
1572
 

+ 9
- 1
Marlin/example_configurations/delta/FLSUN/auto_calibrate/Configuration.h View File

1674
   #define RGB_LED_W_PIN -1
1674
   #define RGB_LED_W_PIN -1
1675
 #endif
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
  * Printer Event LEDs
1686
  * Printer Event LEDs
1679
  *
1687
  *
1685
  *  - Change to green once print has finished
1693
  *  - Change to green once print has finished
1686
  *  - Turn off after the print has finished and the user has pushed a button
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
   #define PRINTER_EVENT_LEDS
1697
   #define PRINTER_EVENT_LEDS
1690
 #endif
1698
 #endif
1691
 
1699
 

+ 9
- 1
Marlin/example_configurations/delta/FLSUN/kossel_mini/Configuration.h View File

1668
   #define RGB_LED_W_PIN -1
1668
   #define RGB_LED_W_PIN -1
1669
 #endif
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
  * Printer Event LEDs
1680
  * Printer Event LEDs
1673
  *
1681
  *
1679
  *  - Change to green once print has finished
1687
  *  - Change to green once print has finished
1680
  *  - Turn off after the print has finished and the user has pushed a button
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
   #define PRINTER_EVENT_LEDS
1691
   #define PRINTER_EVENT_LEDS
1684
 #endif
1692
 #endif
1685
 
1693
 

+ 9
- 1
Marlin/example_configurations/delta/generic/Configuration.h View File

1658
   #define RGB_LED_W_PIN -1
1658
   #define RGB_LED_W_PIN -1
1659
 #endif
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
  * Printer Event LEDs
1670
  * Printer Event LEDs
1663
  *
1671
  *
1669
  *  - Change to green once print has finished
1677
  *  - Change to green once print has finished
1670
  *  - Turn off after the print has finished and the user has pushed a button
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
   #define PRINTER_EVENT_LEDS
1681
   #define PRINTER_EVENT_LEDS
1674
 #endif
1682
 #endif
1675
 
1683
 

+ 9
- 1
Marlin/example_configurations/delta/kossel_mini/Configuration.h View File

1661
   #define RGB_LED_W_PIN -1
1661
   #define RGB_LED_W_PIN -1
1662
 #endif
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
  * Printer Event LEDs
1673
  * Printer Event LEDs
1666
  *
1674
  *
1672
  *  - Change to green once print has finished
1680
  *  - Change to green once print has finished
1673
  *  - Turn off after the print has finished and the user has pushed a button
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
   #define PRINTER_EVENT_LEDS
1684
   #define PRINTER_EVENT_LEDS
1677
 #endif
1685
 #endif
1678
 
1686
 

+ 9
- 1
Marlin/example_configurations/delta/kossel_pro/Configuration.h View File

1666
   #define RGB_LED_W_PIN -1
1666
   #define RGB_LED_W_PIN -1
1667
 #endif
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
  * Printer Event LEDs
1678
  * Printer Event LEDs
1671
  *
1679
  *
1677
  *  - Change to green once print has finished
1685
  *  - Change to green once print has finished
1678
  *  - Turn off after the print has finished and the user has pushed a button
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
   #define PRINTER_EVENT_LEDS
1689
   #define PRINTER_EVENT_LEDS
1682
 #endif
1690
 #endif
1683
 
1691
 

+ 9
- 1
Marlin/example_configurations/delta/kossel_xl/Configuration.h View File

1724
   #define RGB_LED_W_PIN -1
1724
   #define RGB_LED_W_PIN -1
1725
 #endif
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
  * Printer Event LEDs
1736
  * Printer Event LEDs
1729
  *
1737
  *
1735
  *  - Change to green once print has finished
1743
  *  - Change to green once print has finished
1736
  *  - Turn off after the print has finished and the user has pushed a button
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
   #define PRINTER_EVENT_LEDS
1747
   #define PRINTER_EVENT_LEDS
1740
 #endif
1748
 #endif
1741
 
1749
 

+ 9
- 1
Marlin/example_configurations/gCreate/gMax1.5+/Configuration.h View File

1563
   #define RGB_LED_W_PIN -1
1563
   #define RGB_LED_W_PIN -1
1564
 #endif
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
  * Printer Event LEDs
1575
  * Printer Event LEDs
1568
  *
1576
  *
1574
  *  - Change to green once print has finished
1582
  *  - Change to green once print has finished
1575
  *  - Turn off after the print has finished and the user has pushed a button
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
   #define PRINTER_EVENT_LEDS
1586
   #define PRINTER_EVENT_LEDS
1579
 #endif
1587
 #endif
1580
 
1588
 

+ 9
- 1
Marlin/example_configurations/makibox/Configuration.h View File

1550
   #define RGB_LED_W_PIN -1
1550
   #define RGB_LED_W_PIN -1
1551
 #endif
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
  * Printer Event LEDs
1562
  * Printer Event LEDs
1555
  *
1563
  *
1561
  *  - Change to green once print has finished
1569
  *  - Change to green once print has finished
1562
  *  - Turn off after the print has finished and the user has pushed a button
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
   #define PRINTER_EVENT_LEDS
1573
   #define PRINTER_EVENT_LEDS
1566
 #endif
1574
 #endif
1567
 
1575
 

+ 9
- 1
Marlin/example_configurations/tvrrug/Round2/Configuration.h View File

1542
   #define RGB_LED_W_PIN -1
1542
   #define RGB_LED_W_PIN -1
1543
 #endif
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
  * Printer Event LEDs
1554
  * Printer Event LEDs
1547
  *
1555
  *
1553
  *  - Change to green once print has finished
1561
  *  - Change to green once print has finished
1554
  *  - Turn off after the print has finished and the user has pushed a button
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
   #define PRINTER_EVENT_LEDS
1565
   #define PRINTER_EVENT_LEDS
1558
 #endif
1566
 #endif
1559
 
1567
 

+ 9
- 1
Marlin/example_configurations/wt150/Configuration.h View File

1553
   #define RGB_LED_W_PIN -1
1553
   #define RGB_LED_W_PIN -1
1554
 #endif
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
  * Printer Event LEDs
1565
  * Printer Event LEDs
1558
  *
1566
  *
1564
  *  - Change to green once print has finished
1572
  *  - Change to green once print has finished
1565
  *  - Turn off after the print has finished and the user has pushed a button
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
   #define PRINTER_EVENT_LEDS
1576
   #define PRINTER_EVENT_LEDS
1569
 #endif
1577
 #endif
1570
 
1578
 

Loading…
Cancel
Save