diff options
author | Daniel Garcia <danielgarcia@gmail.com> | 2014-10-30 23:54:29 +0300 |
---|---|---|
committer | Daniel Garcia <danielgarcia@gmail.com> | 2014-10-30 23:54:29 +0300 |
commit | 108ae29e73ab833a778a5e65b147e7176b3c45b9 (patch) | |
tree | b657ab07f54c826357f9db1280fea6a75c0950d6 /FastLED.h | |
parent | 926692ddd90612ef7a2af3bf95ca376ed92f9710 (diff) |
Get rid of some extra globals
Diffstat (limited to 'FastLED.h')
-rw-r--r-- | FastLED.h | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -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 |