TwinkleFOX - holiday twinkle lights:

TwinkleFOX - holiday twinkle lights: Tweaked & Updated
I updated last week’s “TwinkleFOX” twinkling holiday lights code with a number of aesthetic tweaks, and re-posted the new code. Discussion and updated continue in the original thread: https://plus.google.com/u/0/112916219338292742137/posts/XWiEEeDxFWZ

NOTE that you will need the latest FastLED from github AND Arduino IDE v1.6.6 or later to use the new version of TwinkleFOX! (I’m using the slick new C++11 ‘range iterators’, and they’re only present in the very latest FastLED code from github.)

Works like a charm on a Duemilanove. Now for the tinkering.

Should work fine on any ATmega-based board-- might have too much math for ATtiny-based boards, which lack even a multiply instruction, and thus (ironically) require larger code to do the same thing.

I’m unable to compile this

+Scottie D369: I’m curious what problem you’re having. Do you want to make a pastebin of the compiler error messages so we can see what the problem is?
Also we need the usual key info: what version of the Arduino IDE, what board you’re trying to compile for, etc.
Thanks; looking forward to getting you up and running once you post the info!

@Mark_Kriegsman Latest version of both and Arduino Uno. So it says Invalid Initiation of non const reference of type CRGBSet. Same problem with Disco code too. discoWorker not declaired in scope

What specific version of the IDE are you running? 1.6.7? Or one of the 1.6.8 ‘hourlies’?

There’s a known bug in 1.6.7 that is screwing up everyone’s sketches all over the place – not just FastLED.

Until they fix it, you have to move around the order that functions appear in your sketch. Each function must appear in the source code ABOVE the first call to it. Alternatively, you can just add explicit function prototypes at the top of the file. There also appears to be some problem with multi line prototypes which is part of the same Arduino IDE bug.

Anyway I bet that’s the problem. Just reorder the functions so they’re each defined before they’re used and I bet it compiles and runs perfectly.

This Arduino IDE bug is wasting so much of so many people’s time…

Anyway, let us know if just recording the functions fixes it for you.

I agree it’s the bug. But it seemed like I was chasing in circles with errors. So that’s why I gave up. Does it work in Hourly? I have 1.6.7

Glad you spoke up here.
Adding explicit function prototypes, or just re-ordering the functions should work around the Arduino IDE bug. Let us know if you hit something other than that problem!