I was working on putting together OSCars lighting system and of course I had to get my RGB led set up first. Several months back I was looking online for a better method to fade an LED. I cant remember where I found this or I would happily give the creator credit for it.