Need help with ambilight code and another standalone LED effects

Ok sorry for bothering, I was found millis() and things worked perfectly
thanks!!!