Converts compass heading from an ST LSM303 to a color to display on an RGB LED.