I know there are already a few accelerometer examples, but I made one too!
I think mine is a little more feature packed, though.
Features: movement via accelerometer, a fairly realistic rolling ball, device calibration/recalibration, and tilt direction.
Please login to see this attachment.