How to run a sketch for a fixed amount of time from power-on

It appears you send a command and the leds flash with the setting you have sent and carry on until you send another command . There must be a command to send to blank the leds out .
Have you looked through the library documents and provided examples

Docs