Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: WS281X.h
- Revision:
- 30:59b70f91b471
- Parent:
- 29:a362df191524
- Child:
- 32:64c391617f6c
--- 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); }