energia/Energia — pull request #142 by rei-vilo (2012-11-22 09:48:28+00:00)
Title: Stellar_Fading_RGB Example

This sketch corresponds to issue #141 fixed by commit 586ef17d979ce7475ce615e04f5cbff967d9ebd8

Thanks to PWM, virtually all the colours are possible by mixing the three components, red green blue.

**RGB LED may be very bright. Protect your eyes!**

The sketch demonstrates the use of PWM on the RGB LED, with

* showing static red, green, blue, white, black
* fading from black to red, from red to green, from green to blue, from blue to red, from red to black
* fading from black to white
* blinking white