Code for ADXL335 Inclometer

Hi All,
I remember seeing an example Arduino sketch a while ago for using an ADXL335 as an inclinometer, using 2 out of 3 axes for a more accurate result. Does anyone have an example of this?
Marty

Click the search (magnifying glass) icon at top of page and type ADXL335, here's one return:
https://forum.arduino.cc/index.php?topic=128820.0