Add CreatorPro / Makerbot / QIDI / etc and Mightboard RevE support (#12855)
- Fix a bug in MAXxxxx thermocouple temp reporting. - Add support for 3-wire HD44780. - Add support for PCA9533 RGB driver. - Add configuration examples for FlashForge CreatorPro.
This commit is contained in:
		@@ -38,6 +38,10 @@
 | 
			
		||||
  #include "pca9632.h"
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#if ENABLED(PCA9533)
 | 
			
		||||
  #include "SailfishRGB_LED.h"
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#if ENABLED(LED_COLOR_PRESETS)
 | 
			
		||||
  const LEDColor LEDLights::defaultLEDColor = MakeLEDColor(
 | 
			
		||||
    LED_USER_PRESET_RED,
 | 
			
		||||
@@ -119,6 +123,10 @@ void LEDLights::set_color(const LEDColor &incol
 | 
			
		||||
    pca9632_set_led_color(incol);
 | 
			
		||||
  #endif
 | 
			
		||||
 | 
			
		||||
  #if ENABLED(PCA9533)
 | 
			
		||||
    RGBsetColor(incol.r, incol.g, incol.b, true);
 | 
			
		||||
  #endif
 | 
			
		||||
 | 
			
		||||
  #if ENABLED(LED_CONTROL_MENU) || ENABLED(PRINTER_EVENT_LEDS)
 | 
			
		||||
    // Don't update the color when OFF
 | 
			
		||||
    lights_on = !incol.is_off();
 | 
			
		||||
 
 | 
			
		||||
@@ -187,6 +187,7 @@ public:
 | 
			
		||||
    static LEDColor color; // last non-off color
 | 
			
		||||
    static bool lights_on; // the last set color was "on"
 | 
			
		||||
  #endif
 | 
			
		||||
 | 
			
		||||
  #if ENABLED(LED_CONTROL_MENU)
 | 
			
		||||
    static void toggle();  // swap "off" with color
 | 
			
		||||
    static inline void update() { set_color(color); }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user