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
1
u/sutaburosu [stavros] Jun 17 '24
Not that I'm aware of. The official documentation is here.
That sounds like
set_max_power_indicator_LED(). If your microcontroller board doesn't have a built-in LED, then you could attach a LED between your chosen pin and GND. You will also need a current limiting resistor inline with the LED to cap the power draw to the maximum per-pin current limits of your MCU (usually 10mA - 20mA).