Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FastLED/FastLED.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Garcia <danielgarcia@gmail.com>2016-06-18 01:12:54 +0300
committerDaniel Garcia <danielgarcia@gmail.com>2016-06-18 01:12:54 +0300
commita3641f093f30690f5372258d226d04b71e26be0a (patch)
treed4c3837fb830e475bd330edf54346607f8fea644
parentaf6e00cb20c941e613bc8a1436a27c85b0b42158 (diff)
Add an alias for WS2852 to WS2812, fix #257.
-rw-r--r--FastLED.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/FastLED.h b/FastLED.h
index 516a1b73..fa7ba0c9 100644
--- a/FastLED.h
+++ b/FastLED.h
@@ -98,6 +98,7 @@ template<uint8_t DATA_PIN, EOrder RGB_ORDER> class UCS1903B : public UCS1903BCon
template<uint8_t DATA_PIN, EOrder RGB_ORDER> class UCS1904 : public UCS1904Controller800Khz<DATA_PIN, RGB_ORDER> {};
template<uint8_t DATA_PIN, EOrder RGB_ORDER> class UCS2903 : public UCS2903Controller<DATA_PIN, RGB_ORDER> {};
template<uint8_t DATA_PIN, EOrder RGB_ORDER> class WS2812 : public WS2812Controller800Khz<DATA_PIN, RGB_ORDER> {};
+template<uint8_t DATA_PIN, EOrder RGB_ORDER> class WS2852 : public WS2812Controller800Khz<DATA_PIN, RGB_ORDER> {};
template<uint8_t DATA_PIN, EOrder RGB_ORDER> class WS2812B : public WS2812Controller800Khz<DATA_PIN, RGB_ORDER> {};
template<uint8_t DATA_PIN, EOrder RGB_ORDER> class SK6812 : public SK6812Controller<DATA_PIN, RGB_ORDER> {};
template<uint8_t DATA_PIN, EOrder RGB_ORDER> class SK6822 : public SK6822Controller<DATA_PIN, RGB_ORDER> {};
@@ -459,8 +460,8 @@ public:
/// Update all our controllers with the current led colors
void show() { show(m_Scale); }
- /// clear the leds, optionally wiping the local array of data as well
- /// @param writeData whether or not to write into the local data array as well
+ /// clear the leds, wiping the local array of data, optionally black out the leds as well
+ /// @param writeData whether or not to write out to the leds as well
void clear(boolean writeData = false);
/// clear out the local data array