Where Can I find a book on the commands for FastLED?

gplus
(Anx Xna) #1

Where Can I find a book on the commands for FastLED? Like reverse lights the other direction?

(Andrew Tuline) #2

It really all depends on what you’re trying to do. A lot of people count LED’s up and down the strip, while I prefer to use sine waves and scale to fit the LED strip.

If you post your existing code to http://gist.github.com, we’d have a better idea of what you’re trying to do.

(Anx Xna) #3

I would like an LED-Ring to be told to have 3 or 4 dots go forward or reverse.
missing/deleted image from Google+

(Anx Xna) #4

I lost the code when my HD died that by Chemdoc77 gave me so I have been trying to make a new one.

(Anx Xna) #5

Marc Miller helped make the Police lights I just want to add a reverse option and add or take off how many dots light up together.

(Andrew Tuline) #6

Here’s something I converted to support multiple pixels:

One method uses beatsin8() and the other uses triwave8(). It takes a bit more thought to write, but uses very little code.

(Ken White) #7

@Anx_Xna - My modified police lights sketch is what you were looking for:

In the future, you should copy your sketches to a large flash drive as a backup. You might also consider posting important sketches on GitHub.

(Anx Xna) #8

Thank you. Can you show me in your code where to add a next or pixel or 2 That goes around. And what can I write to make a go the opposite direction stead of left to right It needs to go right to left.

(Ken White) #9

@Anx_Xna - As per your request, my following sketch has been modified to include two new functions and is located at:

The first function (see line 52) allows you to choose how many pixels are on in a segment and it moves the animation clockwise on a ring. The second function which is commented out (see line 55) allows you to choose how many pixels are on in a segment and it moves the animation counter clockwise on a ring.

For more complex animations, I would recommend that you look at the code in the following posts:

and

Please be sure to post in a new thread a video of your final project using FastLED. I am sure many people here would love to see it.

(Anx Xna) #10

Okay I will when its done.

(Anx Xna) #11

Here’s the Interior polar lights lost in space ship lighting that I rigged.
missing/deleted image from Google+

(Anx Xna) #12

missing/deleted image from Google+

(Anx Xna) #13

missing/deleted image from Google+

(Anx Xna) #14

missing/deleted image from Google+

(Anx Xna) #15

I also 3d made the gantry in http://Tinkercad.com
missing/deleted image from Google+

(Anx Xna) #16

missing/deleted image from Google+

(Anx Xna) #17

Thank you for your help, is there a web page with all the commands I can add?
If not then-
Is there also a way to fade out and change color?

(Anx Xna) #18

missing/deleted image from Google+

(Anx Xna) #19

Like this C57D from Forbidden Planet.

(Ken White) #20

@Anx_Xna - Do you mean when the ship starts “DC” and drops below light speed as seen in:

Please start a new thread for this and ask this question, again. As per your other question, see the following:

http://fastled.io/docs/3.1/index.html

Click on Modules (on the left) and click on each button with the word function in the title. This is a good list of FastLED functions.

Also, look at the FastLED code at:

and open the following files for various key FastLED functions:

colorutils.cpp, lib8tion.cpp, noise.cpp and power_mgt.cpp

Your model is fantastic. The video with the lights underneath is very realistic like the TV show.

Finally, Forbidden Planet is my all time number one favorite movie! Monsters from the Id.