better arduino sketch

Accelerometer reading is now centered around 0 (-512, 512).

After the device is upside down for a short time, turn off the lights to "hide".