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: PixelArray.h
- Revision:
- 1:41b9f8ec0b6a
- Parent:
- 0:bdce2379bd67
--- a/PixelArray.h Sat Aug 02 21:45:04 2014 +0000 +++ b/PixelArray.h Wed Aug 06 08:23:13 2014 +0000 @@ -21,8 +21,6 @@ #include "mbed.h" -#define BUFSIZE 8 - //!Library for the WS2812 RGB LED with integrated controller /*! PixelArray @@ -41,7 +39,6 @@ */ ~PixelArray(); - void clear(); int* getBuf(); void SetAll(unsigned int); @@ -57,16 +54,14 @@ void SetG(int, unsigned char); void SetB(int, unsigned char); - private: - int __bufsize; - int __pbuf[8]; + int *pbuf; + int pbufsize; void __set_pixel_component(int index, int channel, int value); void __set_pixel(int index, int value); - }; #endif