getting basic interaction between accelerometer and leds