Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FastLED/FastLED.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Garcia <danielgarcia@gmail.com>2014-10-30 23:54:29 +0300
committerDaniel Garcia <danielgarcia@gmail.com>2014-10-30 23:54:29 +0300
commit108ae29e73ab833a778a5e65b147e7176b3c45b9 (patch)
treeb657ab07f54c826357f9db1280fea6a75c0950d6 /FastLED.h
parent926692ddd90612ef7a2af3bf95ca376ed92f9710 (diff)
Get rid of some extra globals
Diffstat (limited to 'FastLED.h')
-rw-r--r--FastLED.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/FastLED.h b/FastLED.h
index 78e5835b..d94dc1ba 100644
--- a/FastLED.h
+++ b/FastLED.h
@@ -306,9 +306,12 @@ static CLEDController &addLeds(struct CRGB *data, int nLedsOrOffset, int nLedsIf
CRGB *leds() { return (*this)[0].leds(); }
};
-extern CFastLED & FastSPI_LED;
-extern CFastLED & FastSPI_LED2;
-extern CFastLED & FastLED;
-extern CFastLED LEDS;
+#define FastSPI_LED FastLED
+#define FastSPI_LED2 FastLED
+#ifndef LEDS
+#define LEDS FastLED
+#endif
+
+extern CFastLED FastLED;
#endif