My Version of The LED_WS2812 Library

Dependencies:   WS2812 PixelArray

Fork of LED_WS2812 by CreaLab

Revision:
4:15b992a39c77
Parent:
3:ba8dc8811164
Child:
5:a5e2b86a7c32
--- a/LED_WS2812.h	Thu Nov 02 09:56:59 2017 +0000
+++ b/LED_WS2812.h	Thu Nov 02 12:01:51 2017 +0000
@@ -57,6 +57,10 @@
     void StartRotation(float interval); // itnerval in ms
     void StopRotation();  // interval in ms
     void Rotate(); // One Rotation
+    
+    void StartBlink(float interval); // itnerval in ms
+    void StopBlink();  // interval in ms
+    void Blink(); // One Rotation
       
 private:
     void __writeBuf(int z);
@@ -69,8 +73,11 @@
     int nbInsert;
     PixelArray *pxInsert;
     Ticker  LEDSystemTick;    // System Callback for Rotation
+    Ticker  LEDBlinkSystemTick;    // System Callback for Rotation
     bool rotationState;
+   bool blinkState;
     int rotationPosition;
+    bool blinkONOFF; // ON = true, OFF = false
     int intensity;
 };