TLIGHT_PRODUCTS / WS281X
Revision:
30:59b70f91b471
Parent:
29:a362df191524
Child:
32:64c391617f6c
diff -r a362df191524 -r 59b70f91b471 WS281X.h
--- a/WS281X.h	Wed Sep 07 22:21:27 2016 +0000
+++ b/WS281X.h	Sat Sep 10 01:06:41 2016 +0000
@@ -89,14 +89,21 @@
 
     void fillPixels(int index, const RGBColor color, int len);
     void fillPixels(int index, const HSVColor color, int len);
-    void fillPixels(int index, const int color, int len) { fillPixels(index, (RGBColor)color, len); }
+    void fillPixels(int index, const int color, int len)        { fillPixels(index, (RGBColor)color, len); }
     void fillPixels(const RGBColor color, int len = MAX_PIXELS) { fillPixels(0, color, len); }
     void fillPixels(const HSVColor color, int len = MAX_PIXELS) { fillPixels(0, color, len); }
-    void fillPixels(const int color, int len = MAX_PIXELS) { fillPixels(0, (RGBColor)color, len); }
+    void fillPixels(const int color, int len = MAX_PIXELS)      { fillPixels(0, (RGBColor)color, len); }
+    MBED_DEPRECATED("don't fillColor any more, fillPixels instead")
+    void fillColor(int index, const RGBColor color, int len)    { fillPixels(index, color, len); }
     MBED_DEPRECATED("don't fillColor any more, fillPixels instead")
-    void fillColor(int index, const RGBColor color, int len) { fillPixels(index, color, len); }
-    MBED_DEPRECATED("don't fillColor any more, fillPixels instead")
-    void fillColor(int index, const int32_t color, int len) { fillPixels(index, (RGBColor)color, len); }
+    void fillColor(int index, const int32_t color, int len)     { fillPixels(index, (RGBColor)color, len); }
+
+    void fill(int index, const RGBColor color, int len)   { fillPixels(index, color, len); }
+    void fill(int index, const HSVColor color, int len)   { fillPixels(index, color, len); }
+    void fill(int index, const int color, int len)        { fillPixels(index, (RGBColor)color, len); }
+    void fill(const RGBColor color, int len = MAX_PIXELS) { fillPixels(0, color, len); }
+    void fill(const HSVColor color, int len = MAX_PIXELS) { fillPixels(0, color, len); }
+    void fill(const int color, int len = MAX_PIXELS)      { fillPixels(0, (RGBColor)color, len); }
 
     void clear(const RGBColor color) { fillPixels(color); }
     void clear(const HSVColor color) { fillPixels(color); }