|
|
@ -120,19 +120,28 @@ typedef struct LEDColor {
|
|
|
|
#else
|
|
|
|
#else
|
|
|
|
#define MakeLEDColor(R,G,B,W,I) LEDColor(R, G, B, W)
|
|
|
|
#define MakeLEDColor(R,G,B,W,I) LEDColor(R, G, B, W)
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#define LEDColorWhite() LEDColor(0, 0, 0, 255)
|
|
|
|
|
|
|
|
#else
|
|
|
|
#else
|
|
|
|
#define MakeLEDColor(R,G,B,W,I) LEDColor(R, G, B)
|
|
|
|
#define MakeLEDColor(R,G,B,W,I) LEDColor(R, G, B)
|
|
|
|
#define LEDColorWhite() LEDColor(255, 255, 255)
|
|
|
|
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#define LEDColorOff() LEDColor( 0, 0, 0)
|
|
|
|
#define LEDColorOff() LEDColor( 0, 0, 0)
|
|
|
|
#define LEDColorRed() LEDColor(255, 0, 0)
|
|
|
|
#define LEDColorRed() LEDColor(255, 0, 0)
|
|
|
|
|
|
|
|
#if ENABLED(LED_COLORS_REDUCE_GREEN)
|
|
|
|
|
|
|
|
#define LEDColorOrange() LEDColor(255, 25, 0)
|
|
|
|
|
|
|
|
#define LEDColorYellow() LEDColor(255, 75, 0)
|
|
|
|
|
|
|
|
#else
|
|
|
|
#define LEDColorOrange() LEDColor(255, 80, 0)
|
|
|
|
#define LEDColorOrange() LEDColor(255, 80, 0)
|
|
|
|
#define LEDColorYellow() LEDColor(255, 255, 0)
|
|
|
|
#define LEDColorYellow() LEDColor(255, 255, 0)
|
|
|
|
|
|
|
|
#endif
|
|
|
|
#define LEDColorGreen() LEDColor( 0, 255, 0)
|
|
|
|
#define LEDColorGreen() LEDColor( 0, 255, 0)
|
|
|
|
#define LEDColorBlue() LEDColor( 0, 0, 255)
|
|
|
|
#define LEDColorBlue() LEDColor( 0, 0, 255)
|
|
|
|
#define LEDColorIndigo() LEDColor( 0, 255, 255)
|
|
|
|
#define LEDColorIndigo() LEDColor( 0, 255, 255)
|
|
|
|
#define LEDColorViolet() LEDColor(255, 0, 255)
|
|
|
|
#define LEDColorViolet() LEDColor(255, 0, 255)
|
|
|
|
|
|
|
|
#if HAS_WHITE_LED
|
|
|
|
|
|
|
|
#define LEDColorWhite() LEDColor( 0, 0, 0, 255)
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
#define LEDColorWhite() LEDColor(255, 255, 255)
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
class LEDLights {
|
|
|
|
class LEDLights {
|
|
|
|
public:
|
|
|
|
public:
|
|
|
|