Using the triple axis accelerometer to determine what color is lit on the RGB LED. The LED has the three basic colors of red, green, and blue but you can get a passable yellow (red plus green) a pretty good aqua (green plus blue) and a fairly good purple (blue plus red). If you turn on all three you can also get a good white. Using the values returned from the accelerometer to describe a cube split three ways you get eight quadrants (?) to work with. Seven colors are assigned to seven quadrants with the eighth being off.
Very nice!!
IC742 1 year ago