With just a little bit of code, this 3D tilt sensor becomes a six-way switch to control an RGB LED. Video of that below.