Adafruit accélerometre MMA8451

Hello,

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 .

thanks

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