Adafruit accélerometre MMA8451


I’m using a adafruit MMA8451.

i want to set the 0° at the angle when i press a bouton .

i don’t know, how to do that .


Please post your code, using code tags as described in How to use this forum, and a wiring diagram.