My Version of The LED_WS2812 Library
Dependencies: WS2812 PixelArray
Fork of LED_WS2812 by
Revision 6:c9955bf67a3e, committed 2018-10-03
- Comitter:
- garphil
- Date:
- Wed Oct 03 11:33:02 2018 +0000
- Parent:
- 5:a5e2b86a7c32
- Child:
- 7:92f47cf3a6fd
- Commit message:
- Removed warning on callback;
Changed in this revision
| LED_WS2812.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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);
}
}
