My Version of The LED_WS2812 Library
Dependencies: WS2812 PixelArray
Fork of LED_WS2812 by
Diff: LED_WS2812.cpp
- Revision:
- 6:c9955bf67a3e
- Parent:
- 4:15b992a39c77
- Child:
- 7:92f47cf3a6fd
--- a/LED_WS2812.cpp Mon Mar 19 10:28:44 2018 +0000 +++ b/LED_WS2812.cpp Wed Oct 03 11:33:02 2018 +0000 @@ -156,7 +156,7 @@ void LED_WS2812::StartRotation(float interval) { if(rotationState==false) { rotationState = true; - LEDSystemTick.attach_us(this, &LED_WS2812::Rotate, interval*1000000); + LEDSystemTick.attach_us(callback(this, &LED_WS2812::Rotate), interval*1000000); } } @@ -180,7 +180,7 @@ void LED_WS2812::StartBlink(float interval) { if(blinkState==false) { blinkState = true; - LEDBlinkSystemTick.attach_us(this, &LED_WS2812::Blink, interval*1000000); + LEDBlinkSystemTick.attach_us(callback(this, &LED_WS2812::Blink), interval*1000000); } }