Fix / optimize PCA9533 LED (Mightyboard) (#17381)
This commit is contained in:
@@ -39,7 +39,7 @@
|
||||
#endif
|
||||
|
||||
#if ENABLED(PCA9533)
|
||||
#include <SailfishRGB_LED.h>
|
||||
#include "pca9533.h"
|
||||
#endif
|
||||
|
||||
#if ENABLED(LED_COLOR_PRESETS)
|
||||
@@ -72,7 +72,7 @@ void LEDLights::setup() {
|
||||
neo.init();
|
||||
#endif
|
||||
#if ENABLED(PCA9533)
|
||||
RGBinit();
|
||||
PCA9533_init();
|
||||
#endif
|
||||
#if ENABLED(LED_USER_PRESET_STARTUP)
|
||||
set_default();
|
||||
@@ -141,7 +141,7 @@ void LEDLights::set_color(const LEDColor &incol
|
||||
#endif
|
||||
|
||||
#if ENABLED(PCA9533)
|
||||
RGBsetColor(incol.r, incol.g, incol.b, true);
|
||||
PCA9533_setColor(incol.r, incol.g, incol.b);
|
||||
#endif
|
||||
|
||||
#if EITHER(LED_CONTROL_MENU, PRINTER_EVENT_LEDS)
|
||||
|
||||
Reference in New Issue
Block a user