diff options
author | Daniel Garcia <danielgarcia@gmail.com> | 2016-06-18 01:12:54 +0300 |
---|---|---|
committer | Daniel Garcia <danielgarcia@gmail.com> | 2016-06-18 01:12:54 +0300 |
commit | a3641f093f30690f5372258d226d04b71e26be0a (patch) | |
tree | d4c3837fb830e475bd330edf54346607f8fea644 | |
parent | af6e00cb20c941e613bc8a1436a27c85b0b42158 (diff) |
Add an alias for WS2852 to WS2812, fix #257.
-rw-r--r-- | FastLED.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |