This example demonstrates how to use the HTML5 DeviceOrientation API to rotate through the hue values on a blinkM RGBLED module from a mobile device