Adafruit ADXL337 Accelerometer problem

Hi. I'm trying to use the Adafruit ADXL 337 high G accelerometer to measure orientation and acceleration on all 3 axes. I'm following this tutorial

Adafruit ADXL 3XX Tutorial

Unfortunately, after calibration, the readings on all 3 axes is still 1G 1G 1G when only the Z should.

I'd appreciate it if someone could post the code that they used for the calibration and orientation measurement.

thank you

The ADXL337 is not a high g accelerometer.

Are you referring to the ADXL377? If so, it is intended for measuring accelerations during impacts, like car crashes, and is not useful for orientation.