A new Question, the Police lights Sketch is working good, only issue is it will not show the color Blue without freezing. also I would now like to add other led’s that do other things like fade in and out slowly for the interior of the ship, on a different strip and Data pin. is this possible?
Here is they way I would like to get the lighting to look like.
Have a look here:
The key is to update everything on all strips as needed, and then call FastLED.show()
You can use counters or timers (like EVERY_N_MILLISECONDS) and if statements to control individual pixels.
If you would like someone to look at your code, please put it on http://gist.github.com and share the link. Otherwise we might be completely guessing why it’s only showing blue or freezing.
Thank you I will look at this when I get home
Here is my code I hope I uploaded it right.
Where is the CRGB “color” assigned some r,g,b values?
Hi @Anx_Xna - The sketch freezes on blue because you are using the old, broken version of this sketch. FYI, you are missing lines 30 and 31 code from my updated sketch. Download and use the following sketch:
It works well with blue and other colors that I tested on a Nano with a 24 NeoPixel ring.
Hi @marmil - my sketch uses predefined colors from the FastLED predefined color list which includes the r,g,b values. See near the bottom of the following webpage:
Colors work great now, I just need to know how and where I can add another strip that will have LED’s fade in and out at the same time for the interior lights and is it possible to add mp3 shield to this for sounds on 1 Nano or do I have to add a second Nano to do this?
missing/deleted image from Google+
If this sketch would work together with the police light sketch on Nano, this would be perfect.
Updated Code.^^^^^
Can some one please help with 2nd strip issue?
@Anx_Xna - You could try using CRGBSet if you connect the ring with the other group of RGB LEDs to form one long group of LEDs. Here are three examples of mine that use CRGBSet:
http://gist.github.com - Testing FastLED’s CRGBSet array function and using it in an array of CRGBSET arrays
You can also try declaring one group (i.e. strip or ring) of RGB LEDS per pin on your Nano. Here are examples of that from FastLED:
FYI, your model looks fantastic with the blue lights!
Sorry I don’t understand is this suppose to only use 1 strip split up by numbers?
3 strips one 1 nano
missing/deleted image from Google+