To get my teens into micro-controllers and coding, we married a Trinket Pro to an APA102C strip and began with replicating the cheap & cheerful “Meteor with glittering trail” effect. It sort of works.
How would one go about 1. having the trail glitter properly (now only randomly dimmed) and 2. obtaining a colourful trail (from white over orange to red) and 3. compensate visual brightness impression for a regularly fading non-glittering trail (a fading gradient from white to “black” does look to bright towards the very end of the trail, meaning not visually linearly fading)?
Hi @Andreas_Hopf : I would recommend that you look at the outstanding MeteorShower sketch by Jon Burroughs as seen in Adam bluebottleyellowboxyellyfish’s clock post at:
And then please edit your post here, deleting all the code in your G+ post and just share a link to your code at http://gist.github.com. Code does not always display properly here in G+ and is hard to read on some mobile devices. Plus line numbers can be referenced in discussion with the gist code.
Ok, the code snippet has relocated. I was under the impression that we could simply assign a palette regarding issue 2.
That long and complex code from John Burroughs makes for some quite interesting displays, but it is far too complex for me and my little ones to grasp, but thanks for sharing it nonetheless!
It should help you get the effect that you desire in a way that you and your teens can understand. You can add different colors to the tail by adding after line 42:
Thanks, Ken. Very much appreciated. This is fun, even for us old sods ; ) and one learns a bit about coding, too.
Is it possible to extend this to 288 LEDs (two APA102C connected), see my question above from 10th January? We only ever get 255 LEDs lit up (with many sketches, lightly modified).