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:
- 24:f93a61e727a3
- Parent:
- 21:77275089d837
- Child:
- 27:bc79f444883b
--- a/WS281X.h Fri Aug 26 22:18:43 2016 +0000 +++ b/WS281X.h Sat Aug 27 19:53:37 2016 +0000 @@ -1,4 +1,4 @@ -/* WS281X.h (for LPC82X/STM32F0x/STM32F746xx) +/* WS281X.h (for LPC82X/STM32F0x/STM32F446/STM32F746xx) * mbed Microcontroller Library * Copyright (c) 2016 muetch, t.kuroki, MIT License * @@ -33,8 +33,8 @@ //---------------------------------------------------------------------------- /** - WS281X -*/ + * WS281X + */ class WS281X { public: @@ -70,6 +70,8 @@ void setColor(int index, HSVColor *color, int len); void fillColor(int index, const RGBColor color, int len); void repeatBlock(int block_size); + void repeatBlock(RGBColor *source, int size); + void repeatBlock(HSVColor *source, int size); void clear(const RGBColor color); void clear(const int color = 0) { clear((RGBColor)color); } @@ -93,12 +95,12 @@ protected: private: - PinName _wirePin; - gpio_t _gpio; + PinName _wirePin; + gpio_t _gpio; RGBOrder _rgbOrder; int _1st, _2nd, _3rd; - bool _buf_owner; + bool _buf_owner; uint16_t _maxPixels; uint16_t _numPixels; RGBColor *_pixels;