Is there a simple way to have a function FadeIn(leds[i]) which light a LED from black to any color, and the reverse function FadeOut(leds[i]) going to black from any color ?
I tried several function (fadeLightBy, nscale8, etc) and I the only result I can have is the fadeOut, but fadeIn is never working, the led remains black.
Thanks
Probably not the most efficient way but this is what I use on one of my projects. It allows for customizing the speed at which the fadein/out happens using a potentiometer or in my case an app on my phone.
@marmil , thanks! Finally understood how does that work in between. But thanks for the video link explaining that. Is there a way to change the speed of the wave function without using delay() inside the loop ?