RGB Pixel Array with rendering features. Designed to be used with WS2812 library

Dependents:   ChrisRGB-Ring ChrisRGB-Ring WS2812_Example WS2812_Example_fade ... more

Files at this revision

API Documentation at this revision

Comitter:
chris
Date:
Wed Aug 13 20:26:32 2014 +0000
Parent:
1:41b9f8ec0b6a
Commit message:
Added a call in the constructor to clear the memory before its used

Changed in this revision

PixelArray.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 41b9f8ec0b6a -r b45a70faaa83 PixelArray.cpp
--- a/PixelArray.cpp	Wed Aug 06 08:23:13 2014 +0000
+++ b/PixelArray.cpp	Wed Aug 13 20:26:32 2014 +0000
@@ -4,6 +4,7 @@
 {
     pbufsize = size;
     pbuf = new int[pbufsize];
+    SetAll(0x0); // initialise memory to zeros
     
 }