Using millis() instead of delay

Actually, I tried it, and it works. I declared prev static as to not let it reset. :wink: I also made it into a library using class. But, there is no need to write "timer(30, fading);" 2 times in the loop, so that isn't a problem. I also did something without the extra parameter, and it works!