Merge pull request #7340 from thinkyhead/bf_neopixel_rgbw

Add support for Printrbot Neopixel RGBW strip.
This commit is contained in:
Scott Lahteine 2017-07-22 16:19:12 -05:00 committed by GitHub
commit 21591352d7
38 changed files with 449 additions and 61 deletions

View file

@ -50,6 +50,10 @@ install:
- git clone https://github.com/teemuatlut/TMC2130Stepper.git - git clone https://github.com/teemuatlut/TMC2130Stepper.git
- sudo mv TMC2130Stepper /usr/local/share/arduino/libraries/TMC2130Stepper - sudo mv TMC2130Stepper /usr/local/share/arduino/libraries/TMC2130Stepper
# #
# Install: Adafruit Neopixel library
- git clone https://github.com/adafruit/Adafruit_NeoPixel.git
- sudo mv Adafruit_NeoPixel /usr/local/share/arduino/libraries/Adafruit_NeoPixel
#
before_script: before_script:
# #
# Change current working directory to the build dir # Change current working directory to the build dir
@ -80,6 +84,7 @@ script:
- opt_set TEMP_SENSOR_1 1 - opt_set TEMP_SENSOR_1 1
- opt_set TEMP_SENSOR_BED 1 - opt_set TEMP_SENSOR_BED 1
- opt_enable PIDTEMPBED FIX_MOUNTED_PROBE Z_SAFE_HOMING ARC_P_CIRCLES CNC_WORKSPACE_PLANES - opt_enable PIDTEMPBED FIX_MOUNTED_PROBE Z_SAFE_HOMING ARC_P_CIRCLES CNC_WORKSPACE_PLANES
- opt_enable BLINKM PCA9632 RGB_LED NEOPIXEL_RGBW_LED
- build_marlin - build_marlin
# #
# ...with AUTO_BED_LEVELING_LINEAR, Z_MIN_PROBE_REPEATABILITY_TEST, and DEBUG_LEVELING_FEATURE # ...with AUTO_BED_LEVELING_LINEAR, Z_MIN_PROBE_REPEATABILITY_TEST, and DEBUG_LEVELING_FEATURE

View file

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

View file

@ -1551,6 +1551,14 @@
#define RGB_LED_W_PIN -1 #define RGB_LED_W_PIN -1
#endif #endif
// Support for Adafruit Neopixel LED driver
//#define NEOPIXEL_RGBW_LED
#if ENABLED(NEOPIXEL_RGBW_LED)
#define NEOPIXEL_PIN 4 // D4 (EXP2-5 on Printrboard)
#define NEOPIXEL_PIXELS 3
//#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
#endif
/** /**
* Printer Event LEDs * Printer Event LEDs
* *
@ -1562,7 +1570,7 @@
* - Change to green once print has finished * - Change to green once print has finished
* - Turn off after the print has finished and the user has pushed a button * - Turn off after the print has finished and the user has pushed a button
*/ */
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) #if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
#define PRINTER_EVENT_LEDS #define PRINTER_EVENT_LEDS
#endif #endif

View file

@ -270,6 +270,9 @@ ifeq ($(WIRE), 1)
VPATH += $(ARDUINO_INSTALL_DIR)/libraries/Wire VPATH += $(ARDUINO_INSTALL_DIR)/libraries/Wire
VPATH += $(ARDUINO_INSTALL_DIR)/libraries/Wire/utility VPATH += $(ARDUINO_INSTALL_DIR)/libraries/Wire/utility
endif endif
ifeq ($(NEOPIXEL), 1)
VPATH += $(ARDUINO_INSTALL_DIR)/libraries/Adafruit_NeoPixel
endif
ifeq ($(HARDWARE_VARIANT), arduino) ifeq ($(HARDWARE_VARIANT), arduino)
HARDWARE_SUB_VARIANT ?= mega HARDWARE_SUB_VARIANT ?= mega
@ -297,6 +300,9 @@ CXXSRC = WMath.cpp WString.cpp Print.cpp Marlin_main.cpp \
watchdog.cpp SPI.cpp servo.cpp Tone.cpp ultralcd.cpp digipot_mcp4451.cpp \ watchdog.cpp SPI.cpp servo.cpp Tone.cpp ultralcd.cpp digipot_mcp4451.cpp \
dac_mcp4728.cpp vector_3.cpp least_squares_fit.cpp endstops.cpp stopwatch.cpp utility.cpp \ dac_mcp4728.cpp vector_3.cpp least_squares_fit.cpp endstops.cpp stopwatch.cpp utility.cpp \
printcounter.cpp nozzle.cpp serial.cpp printcounter.cpp nozzle.cpp serial.cpp
ifeq ($(NEOPIXEL), 1)
CXXSRC += Adafruit_NeoPixel.cpp
endif
ifeq ($(LIQUID_TWI2), 0) ifeq ($(LIQUID_TWI2), 0)
CXXSRC += LiquidCrystal.cpp CXXSRC += LiquidCrystal.cpp
else else

View file

@ -279,6 +279,10 @@
#include "watchdog.h" #include "watchdog.h"
#endif #endif
#if ENABLED(NEOPIXEL_RGBW_LED)
#include <Adafruit_NeoPixel.h>
#endif
#if ENABLED(BLINKM) #if ENABLED(BLINKM)
#include "blinkm.h" #include "blinkm.h"
#include "Wire.h" #include "Wire.h"
@ -968,13 +972,61 @@ void servo_init() {
#if HAS_COLOR_LEDS #if HAS_COLOR_LEDS
#if ENABLED(NEOPIXEL_RGBW_LED)
Adafruit_NeoPixel pixels(NEOPIXEL_PIXELS, NEOPIXEL_PIN, NEO_GRBW + NEO_KHZ800);
void set_neopixel_color(const uint32_t color) {
for (uint16_t i = 0; i < pixels.numPixels(); ++i)
pixels.setPixelColor(i, color);
pixels.show();
}
void setup_neopixel() {
pixels.setBrightness(255); // 0 - 255 range
pixels.begin();
pixels.show(); // initialize to all off
#if ENABLED(NEOPIXEL_STARTUP_TEST)
delay(2000);
set_neopixel_color(pixels.Color(255, 0, 0, 0)); // red
delay(2000);
set_neopixel_color(pixels.Color(0, 255, 0, 0)); // green
delay(2000);
set_neopixel_color(pixels.Color(0, 0, 255, 0)); // blue
delay(2000);
#endif
set_neopixel_color(pixels.Color(0, 0, 0, 255)); // white
}
#endif // NEOPIXEL_RGBW_LED
void set_led_color( void set_led_color(
const uint8_t r, const uint8_t g, const uint8_t b const uint8_t r, const uint8_t g, const uint8_t b
#if ENABLED(RGBW_LED) #if ENABLED(RGBW_LED) || ENABLED(NEOPIXEL_RGBW_LED)
, const uint8_t w = 0 , const uint8_t w = 0
#if ENABLED(NEOPIXEL_RGBW_LED)
, bool isSequence = false
#endif
#endif #endif
) { ) {
#if ENABLED(NEOPIXEL_RGBW_LED)
const uint32_t color = pixels.Color(r, g, b, w);
static int nextLed = 0;
if (!isSequence)
set_neopixel_color(color);
else {
pixels.setPixelColor(nextLed, color);
pixels.show();
if (++nextLed >= pixels.numPixels()) nextLed = 0;
return;
}
#endif
#if ENABLED(BLINKM) #if ENABLED(BLINKM)
// This variant uses i2c to send the RGB components to the device. // This variant uses i2c to send the RGB components to the device.
@ -7355,7 +7407,14 @@ inline void gcode_M109() {
// Gradually change LED strip from violet to red as nozzle heats up // Gradually change LED strip from violet to red as nozzle heats up
if (!wants_to_cool) { if (!wants_to_cool) {
const uint8_t blue = map(constrain(temp, start_temp, target_temp), start_temp, target_temp, 255, 0); const uint8_t blue = map(constrain(temp, start_temp, target_temp), start_temp, target_temp, 255, 0);
if (blue != old_blue) set_led_color(255, 0, (old_blue = blue)); if (blue != old_blue) {
old_blue = blue;
set_led_color(255, 0, blue
#if ENABLED(NEOPIXEL_RGBW_LED)
, 0, true
#endif
);
}
} }
#endif #endif
@ -7390,7 +7449,7 @@ inline void gcode_M109() {
if (wait_for_heatup) { if (wait_for_heatup) {
LCD_MESSAGEPGM(MSG_HEATING_COMPLETE); LCD_MESSAGEPGM(MSG_HEATING_COMPLETE);
#if ENABLED(PRINTER_EVENT_LEDS) #if ENABLED(PRINTER_EVENT_LEDS)
#if ENABLED(RGBW_LED) #if ENABLED(RGBW_LED) || ENABLED(NEOPIXEL_RGBW_LED)
set_led_color(0, 0, 0, 255); // Turn on the WHITE LED set_led_color(0, 0, 0, 255); // Turn on the WHITE LED
#else #else
set_led_color(255, 255, 255); // Set LEDs All On set_led_color(255, 255, 255); // Set LEDs All On
@ -7488,7 +7547,14 @@ inline void gcode_M109() {
// Gradually change LED strip from blue to violet as bed heats up // Gradually change LED strip from blue to violet as bed heats up
if (!wants_to_cool) { if (!wants_to_cool) {
const uint8_t red = map(constrain(temp, start_temp, target_temp), start_temp, target_temp, 0, 255); const uint8_t red = map(constrain(temp, start_temp, target_temp), start_temp, target_temp, 0, 255);
if (red != old_red) set_led_color((old_red = red), 0, 255); if (red != old_red) {
old_red = red;
set_led_color(red, 0, 255
#if ENABLED(NEOPIXEL_RGBW_LED)
, 0, true
#endif
);
}
} }
#endif #endif
@ -8146,7 +8212,7 @@ inline void gcode_M121() { endstops.enable_globally(false); }
parser.seen('R') ? (parser.has_value() ? parser.value_byte() : 255) : 0, parser.seen('R') ? (parser.has_value() ? parser.value_byte() : 255) : 0,
parser.seen('U') ? (parser.has_value() ? parser.value_byte() : 255) : 0, parser.seen('U') ? (parser.has_value() ? parser.value_byte() : 255) : 0,
parser.seen('B') ? (parser.has_value() ? parser.value_byte() : 255) : 0 parser.seen('B') ? (parser.has_value() ? parser.value_byte() : 255) : 0
#if ENABLED(RGBW_LED) #if ENABLED(RGBW_LED) || ENABLED(NEOPIXEL_RGBW_LED)
, parser.seen('W') ? (parser.has_value() ? parser.value_byte() : 255) : 0 , parser.seen('W') ? (parser.has_value() ? parser.value_byte() : 255) : 0
#endif #endif
); );
@ -13072,6 +13138,11 @@ void setup() {
OUT_WRITE(STAT_LED_BLUE_PIN, LOW); // turn it off OUT_WRITE(STAT_LED_BLUE_PIN, LOW); // turn it off
#endif #endif
#if ENABLED(NEOPIXEL_RGBW_LED)
SET_OUTPUT(NEOPIXEL_PIN);
setup_neopixel();
#endif
#if ENABLED(RGB_LED) || ENABLED(RGBW_LED) #if ENABLED(RGB_LED) || ENABLED(RGBW_LED)
SET_OUTPUT(RGB_LED_R_PIN); SET_OUTPUT(RGB_LED_R_PIN);
SET_OUTPUT(RGB_LED_G_PIN); SET_OUTPUT(RGB_LED_G_PIN);

View file

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

View file

@ -1566,6 +1566,14 @@
#define RGB_LED_W_PIN -1 #define RGB_LED_W_PIN -1
#endif #endif
// Support for Adafruit Neopixel LED driver
//#define NEOPIXEL_RGBW_LED
#if ENABLED(NEOPIXEL_RGBW_LED)
#define NEOPIXEL_PIN 4 // D4 (EXP2-5 on Printrboard)
#define NEOPIXEL_PIXELS 3
//#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
#endif
/** /**
* Printer Event LEDs * Printer Event LEDs
* *
@ -1577,7 +1585,7 @@
* - Change to green once print has finished * - Change to green once print has finished
* - Turn off after the print has finished and the user has pushed a button * - Turn off after the print has finished and the user has pushed a button
*/ */
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) #if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
#define PRINTER_EVENT_LEDS #define PRINTER_EVENT_LEDS
#endif #endif

View file

@ -1548,6 +1548,14 @@
#define RGB_LED_W_PIN -1 #define RGB_LED_W_PIN -1
#endif #endif
// Support for Adafruit Neopixel LED driver
//#define NEOPIXEL_RGBW_LED
#if ENABLED(NEOPIXEL_RGBW_LED)
#define NEOPIXEL_PIN 4 // D4 (EXP2-5 on Printrboard)
#define NEOPIXEL_PIXELS 3
//#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
#endif
/** /**
* Printer Event LEDs * Printer Event LEDs
* *
@ -1559,7 +1567,7 @@
* - Change to green once print has finished * - Change to green once print has finished
* - Turn off after the print has finished and the user has pushed a button * - Turn off after the print has finished and the user has pushed a button
*/ */
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) #if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
#define PRINTER_EVENT_LEDS #define PRINTER_EVENT_LEDS
#endif #endif

View file

@ -1709,6 +1709,14 @@
#define RGB_LED_W_PIN -1 #define RGB_LED_W_PIN -1
#endif #endif
// Support for Adafruit Neopixel LED driver
//#define NEOPIXEL_RGBW_LED
#if ENABLED(NEOPIXEL_RGBW_LED)
#define NEOPIXEL_PIN 4 // D4 (EXP2-5 on Printrboard)
#define NEOPIXEL_PIXELS 3
//#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
#endif
/** /**
* Printer Event LEDs * Printer Event LEDs
* *
@ -1720,7 +1728,7 @@
* - Change to green once print has finished * - Change to green once print has finished
* - Turn off after the print has finished and the user has pushed a button * - Turn off after the print has finished and the user has pushed a button
*/ */
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) #if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
#define PRINTER_EVENT_LEDS #define PRINTER_EVENT_LEDS
#endif #endif

View file

@ -1558,6 +1558,14 @@
#define RGB_LED_W_PIN -1 #define RGB_LED_W_PIN -1
#endif #endif
// Support for Adafruit Neopixel LED driver
//#define NEOPIXEL_RGBW_LED
#if ENABLED(NEOPIXEL_RGBW_LED)
#define NEOPIXEL_PIN 4 // D4 (EXP2-5 on Printrboard)
#define NEOPIXEL_PIXELS 3
//#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
#endif
/** /**
* Printer Event LEDs * Printer Event LEDs
* *
@ -1569,7 +1577,7 @@
* - Change to green once print has finished * - Change to green once print has finished
* - Turn off after the print has finished and the user has pushed a button * - Turn off after the print has finished and the user has pushed a button
*/ */
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) #if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
#define PRINTER_EVENT_LEDS #define PRINTER_EVENT_LEDS
#endif #endif

View file

@ -1537,6 +1537,14 @@
#define RGB_LED_W_PIN -1 #define RGB_LED_W_PIN -1
#endif #endif
// Support for Adafruit Neopixel LED driver
//#define NEOPIXEL_RGBW_LED
#if ENABLED(NEOPIXEL_RGBW_LED)
#define NEOPIXEL_PIN 4 // D4 (EXP2-5 on Printrboard)
#define NEOPIXEL_PIXELS 3
//#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
#endif
/** /**
* Printer Event LEDs * Printer Event LEDs
* *
@ -1548,7 +1556,7 @@
* - Change to green once print has finished * - Change to green once print has finished
* - Turn off after the print has finished and the user has pushed a button * - Turn off after the print has finished and the user has pushed a button
*/ */
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) #if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
#define PRINTER_EVENT_LEDS #define PRINTER_EVENT_LEDS
#endif #endif

View file

@ -1548,6 +1548,14 @@
#define RGB_LED_W_PIN -1 #define RGB_LED_W_PIN -1
#endif #endif
// Support for Adafruit Neopixel LED driver
//#define NEOPIXEL_RGBW_LED
#if ENABLED(NEOPIXEL_RGBW_LED)
#define NEOPIXEL_PIN 4 // D4 (EXP2-5 on Printrboard)
#define NEOPIXEL_PIXELS 3
//#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
#endif
/** /**
* Printer Event LEDs * Printer Event LEDs
* *
@ -1559,7 +1567,7 @@
* - Change to green once print has finished * - Change to green once print has finished
* - Turn off after the print has finished and the user has pushed a button * - Turn off after the print has finished and the user has pushed a button
*/ */
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) #if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
#define PRINTER_EVENT_LEDS #define PRINTER_EVENT_LEDS
#endif #endif

View file

@ -1537,6 +1537,14 @@
#define RGB_LED_W_PIN -1 #define RGB_LED_W_PIN -1
#endif #endif
// Support for Adafruit Neopixel LED driver
//#define NEOPIXEL_RGBW_LED
#if ENABLED(NEOPIXEL_RGBW_LED)
#define NEOPIXEL_PIN 4 // D4 (EXP2-5 on Printrboard)
#define NEOPIXEL_PIXELS 3
//#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
#endif
/** /**
* Printer Event LEDs * Printer Event LEDs
* *
@ -1548,7 +1556,7 @@
* - Change to green once print has finished * - Change to green once print has finished
* - Turn off after the print has finished and the user has pushed a button * - Turn off after the print has finished and the user has pushed a button
*/ */
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) #if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
#define PRINTER_EVENT_LEDS #define PRINTER_EVENT_LEDS
#endif #endif

View file

@ -1545,6 +1545,14 @@
#define RGB_LED_W_PIN -1 #define RGB_LED_W_PIN -1
#endif #endif
// Support for Adafruit Neopixel LED driver
//#define NEOPIXEL_RGBW_LED
#if ENABLED(NEOPIXEL_RGBW_LED)
#define NEOPIXEL_PIN 4 // D4 (EXP2-5 on Printrboard)
#define NEOPIXEL_PIXELS 3
//#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
#endif
/** /**
* Printer Event LEDs * Printer Event LEDs
* *
@ -1556,7 +1564,7 @@
* - Change to green once print has finished * - Change to green once print has finished
* - Turn off after the print has finished and the user has pushed a button * - Turn off after the print has finished and the user has pushed a button
*/ */
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) #if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
#define PRINTER_EVENT_LEDS #define PRINTER_EVENT_LEDS
#endif #endif

View file

@ -1562,6 +1562,14 @@
#define RGB_LED_W_PIN -1 #define RGB_LED_W_PIN -1
#endif #endif
// Support for Adafruit Neopixel LED driver
//#define NEOPIXEL_RGBW_LED
#if ENABLED(NEOPIXEL_RGBW_LED)
#define NEOPIXEL_PIN 4 // D4 (EXP2-5 on Printrboard)
#define NEOPIXEL_PIXELS 3
//#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
#endif
/** /**
* Printer Event LEDs * Printer Event LEDs
* *
@ -1573,7 +1581,7 @@
* - Change to green once print has finished * - Change to green once print has finished
* - Turn off after the print has finished and the user has pushed a button * - Turn off after the print has finished and the user has pushed a button
*/ */
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) #if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
#define PRINTER_EVENT_LEDS #define PRINTER_EVENT_LEDS
#endif #endif

View file

@ -1529,6 +1529,14 @@
#define RGB_LED_W_PIN -1 #define RGB_LED_W_PIN -1
#endif #endif
// Support for Adafruit Neopixel LED driver
//#define NEOPIXEL_RGBW_LED
#if ENABLED(NEOPIXEL_RGBW_LED)
#define NEOPIXEL_PIN 4 // D4 (EXP2-5 on Printrboard)
#define NEOPIXEL_PIXELS 3
//#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
#endif
/** /**
* Printer Event LEDs * Printer Event LEDs
* *
@ -1540,7 +1548,7 @@
* - Change to green once print has finished * - Change to green once print has finished
* - Turn off after the print has finished and the user has pushed a button * - Turn off after the print has finished and the user has pushed a button
*/ */
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) #if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
#define PRINTER_EVENT_LEDS #define PRINTER_EVENT_LEDS
#endif #endif

View file

@ -1529,6 +1529,14 @@
#define RGB_LED_W_PIN -1 #define RGB_LED_W_PIN -1
#endif #endif
// Support for Adafruit Neopixel LED driver
//#define NEOPIXEL_RGBW_LED
#if ENABLED(NEOPIXEL_RGBW_LED)
#define NEOPIXEL_PIN 4 // D4 (EXP2-5 on Printrboard)
#define NEOPIXEL_PIXELS 3
//#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
#endif
/** /**
* Printer Event LEDs * Printer Event LEDs
* *
@ -1540,7 +1548,7 @@
* - Change to green once print has finished * - Change to green once print has finished
* - Turn off after the print has finished and the user has pushed a button * - Turn off after the print has finished and the user has pushed a button
*/ */
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) #if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
#define PRINTER_EVENT_LEDS #define PRINTER_EVENT_LEDS
#endif #endif

View file

@ -1551,6 +1551,14 @@
#define RGB_LED_W_PIN -1 #define RGB_LED_W_PIN -1
#endif #endif
// Support for Adafruit Neopixel LED driver
//#define NEOPIXEL_RGBW_LED
#if ENABLED(NEOPIXEL_RGBW_LED)
#define NEOPIXEL_PIN 4 // D4 (EXP2-5 on Printrboard)
#define NEOPIXEL_PIXELS 3
//#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
#endif
/** /**
* Printer Event LEDs * Printer Event LEDs
* *
@ -1562,7 +1570,7 @@
* - Change to green once print has finished * - Change to green once print has finished
* - Turn off after the print has finished and the user has pushed a button * - Turn off after the print has finished and the user has pushed a button
*/ */
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) #if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
#define PRINTER_EVENT_LEDS #define PRINTER_EVENT_LEDS
#endif #endif

View file

@ -58,15 +58,15 @@
//=========================================================================== //===========================================================================
//============================= DELTA Printer =============================== //============================= DELTA Printer ===============================
//=========================================================================== //===========================================================================
// For a Delta printer replace the configuration files with the files in the // For a Delta printer start with one of the configuration files in the
// example_configurations/delta directory. // example_configurations/delta directory and customize for your machine.
// //
//=========================================================================== //===========================================================================
//============================= SCARA Printer =============================== //============================= SCARA Printer ===============================
//=========================================================================== //===========================================================================
// For a Scara printer replace the configuration files with the files in the // For a SCARA printer start with the configuration files in
// example_configurations/SCARA directory. // example_configurations/SCARA and customize for your machine.
// //
// @section info // @section info
@ -138,11 +138,33 @@
// For Cyclops or any "multi-extruder" that shares a single nozzle. // For Cyclops or any "multi-extruder" that shares a single nozzle.
//#define SINGLENOZZLE //#define SINGLENOZZLE
/**
* Průša MK2 Single Nozzle Multi-Material Multiplexer, and variants.
*
* This device allows one stepper driver on a control board to drive
* two to eight stepper motors, one at a time, in a manner suitable
* for extruders.
*
* This option only allows the multiplexer to switch on tool-change.
* Additional options to configure custom E moves are pending.
*/
//#define MK2_MULTIPLEXER
#if ENABLED(MK2_MULTIPLEXER)
// Override the default DIO selector pins here, if needed.
// Some pins files may provide defaults for these pins.
//#define E_MUX0_PIN 40 // Always Required
//#define E_MUX1_PIN 42 // Needed for 3 to 8 steppers
//#define E_MUX2_PIN 44 // Needed for 5 to 8 steppers
#endif
// A dual extruder that uses a single stepper motor // A dual extruder that uses a single stepper motor
//#define SWITCHING_EXTRUDER //#define SWITCHING_EXTRUDER
#if ENABLED(SWITCHING_EXTRUDER) #if ENABLED(SWITCHING_EXTRUDER)
#define SWITCHING_EXTRUDER_SERVO_NR 0 #define SWITCHING_EXTRUDER_SERVO_NR 0
#define SWITCHING_EXTRUDER_SERVO_ANGLES { 0, 90 } // Angles for E0, E1 #define SWITCHING_EXTRUDER_SERVO_ANGLES { 0, 90 } // Angles for E0, E1[, E2, E3]
#if EXTRUDERS > 3
#define SWITCHING_EXTRUDER_E23_SERVO_NR 1
#endif
#endif #endif
// A dual-nozzle that uses a servomotor to raise/lower one of the nozzles // A dual-nozzle that uses a servomotor to raise/lower one of the nozzles
@ -312,6 +334,7 @@
#define K1 0.95 //smoothing factor within the PID #define K1 0.95 //smoothing factor within the PID
// If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it // If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it
// Ultimaker // Ultimaker
//#define DEFAULT_Kp 22.2 //#define DEFAULT_Kp 22.2
//#define DEFAULT_Ki 1.08 //#define DEFAULT_Ki 1.08
@ -569,7 +592,6 @@
* *
*/ */
//#define Z_MIN_PROBE_ENDSTOP //#define Z_MIN_PROBE_ENDSTOP
//#define Z_MIN_PROBE_PIN Z_MAX_PIN
/** /**
* Probe Type * Probe Type
@ -884,12 +906,14 @@
#define UBL_MESH_INSET 1 // Mesh inset margin on print area #define UBL_MESH_INSET 1 // Mesh inset margin on print area
#define GRID_MAX_POINTS_X 10 // Don't use more than 15 points per axis, implementation limited. #define GRID_MAX_POINTS_X 10 // Don't use more than 15 points per axis, implementation limited.
#define GRID_MAX_POINTS_Y GRID_MAX_POINTS_X #define GRID_MAX_POINTS_Y GRID_MAX_POINTS_X
#define UBL_PROBE_PT_1_X 39 // These set the probe locations for when UBL does a 3-Point leveling
#define UBL_PROBE_PT_1_Y 180 // of the mesh. #define UBL_PROBE_PT_1_X 39 // Probing points for 3-Point leveling of the mesh
#define UBL_PROBE_PT_1_Y 180
#define UBL_PROBE_PT_2_X 39 #define UBL_PROBE_PT_2_X 39
#define UBL_PROBE_PT_2_Y 20 #define UBL_PROBE_PT_2_Y 20
#define UBL_PROBE_PT_3_X 180 #define UBL_PROBE_PT_3_X 180
#define UBL_PROBE_PT_3_Y 20 #define UBL_PROBE_PT_3_Y 20
#define UBL_G26_MESH_VALIDATION // Enable G26 mesh validation #define UBL_G26_MESH_VALIDATION // Enable G26 mesh validation
#define UBL_MESH_EDIT_MOVES_Z // Sophisticated users prefer no movement of nozzle #define UBL_MESH_EDIT_MOVES_Z // Sophisticated users prefer no movement of nozzle
@ -971,11 +995,8 @@
// M502 - reverts to the default "factory settings". You still need to store them in EEPROM afterwards if you want to. // M502 - reverts to the default "factory settings". You still need to store them in EEPROM afterwards if you want to.
// //
//#define EEPROM_SETTINGS // Enable for M500 and M501 commands //#define EEPROM_SETTINGS // Enable for M500 and M501 commands
//#define DISABLE_M503 // Saves ~2700 bytes of PROGMEM. Disable for release!
#if ENABLED(EEPROM_SETTINGS) #define EEPROM_CHITCHAT // Give feedback on EEPROM commands. Disable to save PROGMEM.
// To disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
#define EEPROM_CHITCHAT // Please keep turned on if you can.
#endif
// //
// Host Keepalive // Host Keepalive
@ -1135,10 +1156,11 @@
* *
* Select the language to display on the LCD. These languages are available: * Select the language to display on the LCD. These languages are available:
* *
* en, an, bg, ca, cn, cz, de, el, el-gr, es, eu, fi, fr, gl, hr, it, * en, an, bg, ca, cn, cz, cz_utf8, de, el, el-gr, es, eu, fi, fr, gl, hr,
* kana, kana_utf8, nl, pl, pt, pt_utf8, pt-br, pt-br_utf8, ru, tr, uk, test * it, kana, kana_utf8, nl, pl, pt, pt_utf8, pt-br, pt-br_utf8, ru, tr, uk,
* zh_CN, zh_TW, test
* *
* :{ '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' } * :{ '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' }
*/ */
#define LCD_LANGUAGE en #define LCD_LANGUAGE en
@ -1160,7 +1182,7 @@
* - Click the controller to view the LCD menu * - Click the controller to view the LCD menu
* - The LCD will display Japanese, Western, or Cyrillic text * - The LCD will display Japanese, Western, or Cyrillic text
* *
* See https: *github.com/MarlinFirmware/Marlin/wiki/LCD-Language * See https://github.com/MarlinFirmware/Marlin/wiki/LCD-Language
* *
* :['JAPANESE', 'WESTERN', 'CYRILLIC'] * :['JAPANESE', 'WESTERN', 'CYRILLIC']
*/ */
@ -1374,6 +1396,16 @@
// //
//#define BQ_LCD_SMART_CONTROLLER //#define BQ_LCD_SMART_CONTROLLER
//
// ANET_10 Controller supported displays.
//
//#define ANET_KEYPAD_LCD // Requires ADC_KEYPAD_PIN to be assigned to an analog pin.
// This LCD is known to be susceptible to electrical interference
// which scrambles the display. Pressing any button clears it up.
//#define ANET_FULL_GRAPHICS_LCD // Anet 128x64 full graphics lcd with rotary encoder as used on Anet A6
// A clone of the RepRapDiscount full graphics display but with
// different pins/wiring (see pins_ANET_10.h).
// //
// LCD for Melzi Card with Graphical LCD // LCD for Melzi Card with Graphical LCD
// //
@ -1395,6 +1427,9 @@
// //
// Sainsmart YW Robot (LCM1602) LCD Display // Sainsmart YW Robot (LCM1602) LCD Display
// //
// Note: This controller requires F.Malpartida's LiquidCrystal_I2C library
// https://bitbucket.org/fmalpartida/new-liquidcrystal/wiki/Home
//
//#define LCD_I2C_SAINSMART_YWROBOT //#define LCD_I2C_SAINSMART_YWROBOT
// //
@ -1485,12 +1520,15 @@
// SkeinForge sends the wrong arc g-codes when using Arc Point as fillet procedure // SkeinForge sends the wrong arc g-codes when using Arc Point as fillet procedure
//#define SF_ARC_FIX //#define SF_ARC_FIX
// Support for the BariCUDA Paste Extruder. // Support for the BariCUDA Paste Extruder
//#define BARICUDA //#define BARICUDA
//define BlinkM/CyzRgb Support // Support for BlinkM/CyzRgb
//#define BLINKM //#define BLINKM
// Support for PCA9632 PWM LED driver
//#define PCA9632
/** /**
* RGB LED / LED Strip Control * RGB LED / LED Strip Control
* *
@ -1517,6 +1555,14 @@
#define RGB_LED_W_PIN -1 #define RGB_LED_W_PIN -1
#endif #endif
// Support for Adafruit Neopixel LED driver
//#define NEOPIXEL_RGBW_LED
#if ENABLED(NEOPIXEL_RGBW_LED)
#define NEOPIXEL_PIN 4 // D4 (EXP2-5 on Printrboard)
#define NEOPIXEL_PIXELS 3
//#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
#endif
/** /**
* Printer Event LEDs * Printer Event LEDs
* *
@ -1528,7 +1574,7 @@
* - Change to green once print has finished * - Change to green once print has finished
* - Turn off after the print has finished and the user has pushed a button * - Turn off after the print has finished and the user has pushed a button
*/ */
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) #if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
#define PRINTER_EVENT_LEDS #define PRINTER_EVENT_LEDS
#endif #endif

View file

@ -1574,6 +1574,14 @@
#define RGB_LED_W_PIN -1 #define RGB_LED_W_PIN -1
#endif #endif
// Support for Adafruit Neopixel LED driver
//#define NEOPIXEL_RGBW_LED
#if ENABLED(NEOPIXEL_RGBW_LED)
#define NEOPIXEL_PIN 4 // D4 (EXP2-5 on Printrboard)
#define NEOPIXEL_PIXELS 3
//#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
#endif
/** /**
* Printer Event LEDs * Printer Event LEDs
* *
@ -1585,7 +1593,7 @@
* - Change to green once print has finished * - Change to green once print has finished
* - Turn off after the print has finished and the user has pushed a button * - Turn off after the print has finished and the user has pushed a button
*/ */
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) #if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
#define PRINTER_EVENT_LEDS #define PRINTER_EVENT_LEDS
#endif #endif

View file

@ -1547,6 +1547,14 @@
#define RGB_LED_W_PIN -1 #define RGB_LED_W_PIN -1
#endif #endif
// Support for Adafruit Neopixel LED driver
//#define NEOPIXEL_RGBW_LED
#if ENABLED(NEOPIXEL_RGBW_LED)
#define NEOPIXEL_PIN 4 // D4 (EXP2-5 on Printrboard)
#define NEOPIXEL_PIXELS 3
//#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
#endif
/** /**
* Printer Event LEDs * Printer Event LEDs
* *
@ -1558,7 +1566,7 @@
* - Change to green once print has finished * - Change to green once print has finished
* - Turn off after the print has finished and the user has pushed a button * - Turn off after the print has finished and the user has pushed a button
*/ */
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) #if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
#define PRINTER_EVENT_LEDS #define PRINTER_EVENT_LEDS
#endif #endif

View file

@ -1547,6 +1547,14 @@
#define RGB_LED_W_PIN -1 #define RGB_LED_W_PIN -1
#endif #endif
// Support for Adafruit Neopixel LED driver
//#define NEOPIXEL_RGBW_LED
#if ENABLED(NEOPIXEL_RGBW_LED)
#define NEOPIXEL_PIN 4 // D4 (EXP2-5 on Printrboard)
#define NEOPIXEL_PIXELS 3
//#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
#endif
/** /**
* Printer Event LEDs * Printer Event LEDs
* *
@ -1558,7 +1566,7 @@
* - Change to green once print has finished * - Change to green once print has finished
* - Turn off after the print has finished and the user has pushed a button * - Turn off after the print has finished and the user has pushed a button
*/ */
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) #if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
#define PRINTER_EVENT_LEDS #define PRINTER_EVENT_LEDS
#endif #endif

View file

@ -1559,6 +1559,14 @@
#define RGB_LED_W_PIN -1 #define RGB_LED_W_PIN -1
#endif #endif
// Support for Adafruit Neopixel LED driver
//#define NEOPIXEL_RGBW_LED
#if ENABLED(NEOPIXEL_RGBW_LED)
#define NEOPIXEL_PIN 4 // D4 (EXP2-5 on Printrboard)
#define NEOPIXEL_PIXELS 3
//#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
#endif
/** /**
* Printer Event LEDs * Printer Event LEDs
* *
@ -1570,7 +1578,7 @@
* - Change to green once print has finished * - Change to green once print has finished
* - Turn off after the print has finished and the user has pushed a button * - Turn off after the print has finished and the user has pushed a button
*/ */
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) #if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
#define PRINTER_EVENT_LEDS #define PRINTER_EVENT_LEDS
#endif #endif

View file

@ -1608,6 +1608,14 @@
#define RGB_LED_W_PIN -1 #define RGB_LED_W_PIN -1
#endif #endif
// Support for Adafruit Neopixel LED driver
//#define NEOPIXEL_RGBW_LED
#if ENABLED(NEOPIXEL_RGBW_LED)
#define NEOPIXEL_PIN 4 // D4 (EXP2-5 on Printrboard)
#define NEOPIXEL_PIXELS 3
//#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
#endif
/** /**
* Printer Event LEDs * Printer Event LEDs
* *
@ -1619,7 +1627,7 @@
* - Change to green once print has finished * - Change to green once print has finished
* - Turn off after the print has finished and the user has pushed a button * - Turn off after the print has finished and the user has pushed a button
*/ */
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) #if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
#define PRINTER_EVENT_LEDS #define PRINTER_EVENT_LEDS
#endif #endif

View file

@ -1586,6 +1586,14 @@
#define RGB_LED_W_PIN -1 #define RGB_LED_W_PIN -1
#endif #endif
// Support for Adafruit Neopixel LED driver
//#define NEOPIXEL_RGBW_LED
#if ENABLED(NEOPIXEL_RGBW_LED)
#define NEOPIXEL_PIN 4 // D4 (EXP2-5 on Printrboard)
#define NEOPIXEL_PIXELS 3
//#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
#endif
/** /**
* Printer Event LEDs * Printer Event LEDs
* *
@ -1597,7 +1605,7 @@
* - Change to green once print has finished * - Change to green once print has finished
* - Turn off after the print has finished and the user has pushed a button * - Turn off after the print has finished and the user has pushed a button
*/ */
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) #if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
#define PRINTER_EVENT_LEDS #define PRINTER_EVENT_LEDS
#endif #endif

View file

@ -1547,6 +1547,14 @@
#define RGB_LED_W_PIN -1 #define RGB_LED_W_PIN -1
#endif #endif
// Support for Adafruit Neopixel LED driver
//#define NEOPIXEL_RGBW_LED
#if ENABLED(NEOPIXEL_RGBW_LED)
#define NEOPIXEL_PIN 4 // D4 (EXP2-5 on Printrboard)
#define NEOPIXEL_PIXELS 3
//#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
#endif
/** /**
* Printer Event LEDs * Printer Event LEDs
* *
@ -1558,7 +1566,7 @@
* - Change to green once print has finished * - Change to green once print has finished
* - Turn off after the print has finished and the user has pushed a button * - Turn off after the print has finished and the user has pushed a button
*/ */
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) #if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
#define PRINTER_EVENT_LEDS #define PRINTER_EVENT_LEDS
#endif #endif

View file

@ -1547,6 +1547,14 @@
#define RGB_LED_W_PIN -1 #define RGB_LED_W_PIN -1
#endif #endif
// Support for Adafruit Neopixel LED driver
//#define NEOPIXEL_RGBW_LED
#if ENABLED(NEOPIXEL_RGBW_LED)
#define NEOPIXEL_PIN 4 // D4 (EXP2-5 on Printrboard)
#define NEOPIXEL_PIXELS 3
//#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
#endif
/** /**
* Printer Event LEDs * Printer Event LEDs
* *
@ -1558,7 +1566,7 @@
* - Change to green once print has finished * - Change to green once print has finished
* - Turn off after the print has finished and the user has pushed a button * - Turn off after the print has finished and the user has pushed a button
*/ */
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) #if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
#define PRINTER_EVENT_LEDS #define PRINTER_EVENT_LEDS
#endif #endif

View file

@ -1547,6 +1547,14 @@
#define RGB_LED_W_PIN -1 #define RGB_LED_W_PIN -1
#endif #endif
// Support for Adafruit Neopixel LED driver
//#define NEOPIXEL_RGBW_LED
#if ENABLED(NEOPIXEL_RGBW_LED)
#define NEOPIXEL_PIN 4 // D4 (EXP2-5 on Printrboard)
#define NEOPIXEL_PIXELS 3
//#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
#endif
/** /**
* Printer Event LEDs * Printer Event LEDs
* *
@ -1558,7 +1566,7 @@
* - Change to green once print has finished * - Change to green once print has finished
* - Turn off after the print has finished and the user has pushed a button * - Turn off after the print has finished and the user has pushed a button
*/ */
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) #if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
#define PRINTER_EVENT_LEDS #define PRINTER_EVENT_LEDS
#endif #endif

View file

@ -1674,6 +1674,14 @@
#define RGB_LED_W_PIN -1 #define RGB_LED_W_PIN -1
#endif #endif
// Support for Adafruit Neopixel LED driver
//#define NEOPIXEL_RGBW_LED
#if ENABLED(NEOPIXEL_RGBW_LED)
#define NEOPIXEL_PIN 4 // D4 (EXP2-5 on Printrboard)
#define NEOPIXEL_PIXELS 3
//#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
#endif
/** /**
* Printer Event LEDs * Printer Event LEDs
* *
@ -1685,7 +1693,7 @@
* - Change to green once print has finished * - Change to green once print has finished
* - Turn off after the print has finished and the user has pushed a button * - Turn off after the print has finished and the user has pushed a button
*/ */
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) #if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
#define PRINTER_EVENT_LEDS #define PRINTER_EVENT_LEDS
#endif #endif

View file

@ -1668,6 +1668,14 @@
#define RGB_LED_W_PIN -1 #define RGB_LED_W_PIN -1
#endif #endif
// Support for Adafruit Neopixel LED driver
//#define NEOPIXEL_RGBW_LED
#if ENABLED(NEOPIXEL_RGBW_LED)
#define NEOPIXEL_PIN 4 // D4 (EXP2-5 on Printrboard)
#define NEOPIXEL_PIXELS 3
//#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
#endif
/** /**
* Printer Event LEDs * Printer Event LEDs
* *
@ -1679,7 +1687,7 @@
* - Change to green once print has finished * - Change to green once print has finished
* - Turn off after the print has finished and the user has pushed a button * - Turn off after the print has finished and the user has pushed a button
*/ */
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) #if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
#define PRINTER_EVENT_LEDS #define PRINTER_EVENT_LEDS
#endif #endif

View file

@ -1658,6 +1658,14 @@
#define RGB_LED_W_PIN -1 #define RGB_LED_W_PIN -1
#endif #endif
// Support for Adafruit Neopixel LED driver
//#define NEOPIXEL_RGBW_LED
#if ENABLED(NEOPIXEL_RGBW_LED)
#define NEOPIXEL_PIN 4 // D4 (EXP2-5 on Printrboard)
#define NEOPIXEL_PIXELS 3
//#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
#endif
/** /**
* Printer Event LEDs * Printer Event LEDs
* *
@ -1669,7 +1677,7 @@
* - Change to green once print has finished * - Change to green once print has finished
* - Turn off after the print has finished and the user has pushed a button * - Turn off after the print has finished and the user has pushed a button
*/ */
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) #if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
#define PRINTER_EVENT_LEDS #define PRINTER_EVENT_LEDS
#endif #endif

View file

@ -1661,6 +1661,14 @@
#define RGB_LED_W_PIN -1 #define RGB_LED_W_PIN -1
#endif #endif
// Support for Adafruit Neopixel LED driver
//#define NEOPIXEL_RGBW_LED
#if ENABLED(NEOPIXEL_RGBW_LED)
#define NEOPIXEL_PIN 4 // D4 (EXP2-5 on Printrboard)
#define NEOPIXEL_PIXELS 3
//#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
#endif
/** /**
* Printer Event LEDs * Printer Event LEDs
* *
@ -1672,7 +1680,7 @@
* - Change to green once print has finished * - Change to green once print has finished
* - Turn off after the print has finished and the user has pushed a button * - Turn off after the print has finished and the user has pushed a button
*/ */
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) #if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
#define PRINTER_EVENT_LEDS #define PRINTER_EVENT_LEDS
#endif #endif

View file

@ -1666,6 +1666,14 @@
#define RGB_LED_W_PIN -1 #define RGB_LED_W_PIN -1
#endif #endif
// Support for Adafruit Neopixel LED driver
//#define NEOPIXEL_RGBW_LED
#if ENABLED(NEOPIXEL_RGBW_LED)
#define NEOPIXEL_PIN 4 // D4 (EXP2-5 on Printrboard)
#define NEOPIXEL_PIXELS 3
//#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
#endif
/** /**
* Printer Event LEDs * Printer Event LEDs
* *
@ -1677,7 +1685,7 @@
* - Change to green once print has finished * - Change to green once print has finished
* - Turn off after the print has finished and the user has pushed a button * - Turn off after the print has finished and the user has pushed a button
*/ */
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) #if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
#define PRINTER_EVENT_LEDS #define PRINTER_EVENT_LEDS
#endif #endif

View file

@ -1724,6 +1724,14 @@
#define RGB_LED_W_PIN -1 #define RGB_LED_W_PIN -1
#endif #endif
// Support for Adafruit Neopixel LED driver
//#define NEOPIXEL_RGBW_LED
#if ENABLED(NEOPIXEL_RGBW_LED)
#define NEOPIXEL_PIN 4 // D4 (EXP2-5 on Printrboard)
#define NEOPIXEL_PIXELS 3
//#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
#endif
/** /**
* Printer Event LEDs * Printer Event LEDs
* *
@ -1735,7 +1743,7 @@
* - Change to green once print has finished * - Change to green once print has finished
* - Turn off after the print has finished and the user has pushed a button * - Turn off after the print has finished and the user has pushed a button
*/ */
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) #if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
#define PRINTER_EVENT_LEDS #define PRINTER_EVENT_LEDS
#endif #endif

View file

@ -1563,6 +1563,14 @@
#define RGB_LED_W_PIN -1 #define RGB_LED_W_PIN -1
#endif #endif
// Support for Adafruit Neopixel LED driver
//#define NEOPIXEL_RGBW_LED
#if ENABLED(NEOPIXEL_RGBW_LED)
#define NEOPIXEL_PIN 4 // D4 (EXP2-5 on Printrboard)
#define NEOPIXEL_PIXELS 3
//#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
#endif
/** /**
* Printer Event LEDs * Printer Event LEDs
* *
@ -1574,7 +1582,7 @@
* - Change to green once print has finished * - Change to green once print has finished
* - Turn off after the print has finished and the user has pushed a button * - Turn off after the print has finished and the user has pushed a button
*/ */
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) #if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
#define PRINTER_EVENT_LEDS #define PRINTER_EVENT_LEDS
#endif #endif

View file

@ -1550,6 +1550,14 @@
#define RGB_LED_W_PIN -1 #define RGB_LED_W_PIN -1
#endif #endif
// Support for Adafruit Neopixel LED driver
//#define NEOPIXEL_RGBW_LED
#if ENABLED(NEOPIXEL_RGBW_LED)
#define NEOPIXEL_PIN 4 // D4 (EXP2-5 on Printrboard)
#define NEOPIXEL_PIXELS 3
//#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
#endif
/** /**
* Printer Event LEDs * Printer Event LEDs
* *
@ -1561,7 +1569,7 @@
* - Change to green once print has finished * - Change to green once print has finished
* - Turn off after the print has finished and the user has pushed a button * - Turn off after the print has finished and the user has pushed a button
*/ */
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) #if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
#define PRINTER_EVENT_LEDS #define PRINTER_EVENT_LEDS
#endif #endif

View file

@ -1542,6 +1542,14 @@
#define RGB_LED_W_PIN -1 #define RGB_LED_W_PIN -1
#endif #endif
// Support for Adafruit Neopixel LED driver
//#define NEOPIXEL_RGBW_LED
#if ENABLED(NEOPIXEL_RGBW_LED)
#define NEOPIXEL_PIN 4 // D4 (EXP2-5 on Printrboard)
#define NEOPIXEL_PIXELS 3
//#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
#endif
/** /**
* Printer Event LEDs * Printer Event LEDs
* *
@ -1553,7 +1561,7 @@
* - Change to green once print has finished * - Change to green once print has finished
* - Turn off after the print has finished and the user has pushed a button * - Turn off after the print has finished and the user has pushed a button
*/ */
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) #if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
#define PRINTER_EVENT_LEDS #define PRINTER_EVENT_LEDS
#endif #endif

View file

@ -1553,6 +1553,14 @@
#define RGB_LED_W_PIN -1 #define RGB_LED_W_PIN -1
#endif #endif
// Support for Adafruit Neopixel LED driver
//#define NEOPIXEL_RGBW_LED
#if ENABLED(NEOPIXEL_RGBW_LED)
#define NEOPIXEL_PIN 4 // D4 (EXP2-5 on Printrboard)
#define NEOPIXEL_PIXELS 3
//#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
#endif
/** /**
* Printer Event LEDs * Printer Event LEDs
* *
@ -1564,7 +1572,7 @@
* - Change to green once print has finished * - Change to green once print has finished
* - Turn off after the print has finished and the user has pushed a button * - Turn off after the print has finished and the user has pushed a button
*/ */
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) #if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_RGBW_LED)
#define PRINTER_EVENT_LEDS #define PRINTER_EVENT_LEDS
#endif #endif