You could try using analog readings, say from light or temperature to control the color of the LED. Perhaps, just set the red channel to 50% duty cycle and use a temperature reading to control the blue channel and the light reading to control the duty cycle of the green channel.

You can find tutorials for sensing temperature and light here and here.

About the Author.
As well as contributing lots of tutorials about Raspberry Pi, Arduino and now BeagleBone Black, Simon Monk writes books about open source hardware. You will find his books for sale here at Adafruit.

This guide was first published on Jul 09, 2013. It was last updated on Jul 09, 2013.

This page (Next Steps) was last updated on Jul 09, 2013.

Text editor powered by tinymce.