Trouble with an RGB LED and accelorometer