r/FastLED • u/heck88_ • Jun 16 '24
Support sin8 pulsing help
hey for my ghostbusters proton pack project i want to make the cyclotron leds pulse on and of.
i tried the sin8 function for the input i used a poti maped to 0-255.
the problem i have neither the sin nor the cos functions starts with 0 brightness.
the sin transition for the pulsing looks veeery nice and smooth.
what is the value i range i have to use as an input so that the led starts with 0 brightness (is off) and the. goes to max brightness and down again to 0?
2
Upvotes
View all comments
Show parent comment
1
u/heck88_ Jun 17 '24
yeah thank i‘ll try to use cubic variant because it starts and ends the brightness at 0.
yeah for varying the speed i‘ll use the millis() function. currently i am experimenting with one lightning function at a time and combine everything into one big code later.
i‘ll definitely take a look into the timebase function and how it‘ll interfere with my code where i also want to read button inputs.
is there a good and well documented pdf of all these fastled functions? i have also seen that i can limit max power draw and that there is a function i can call that lets a led blink if max power draw is exceeded. i think it is an arduino pin where a led is wired to but i don‘t know :D.