Enviro pHAT to measure pitch and yaw

I bought the Enviro pHAT from the adafruit shop, and after some research I found the magnetometer/accelerometer chip can be used to measure pitch and yaw, according to this documentation: http://www.st.com/content/ccc/resource/ … 286303.pdf

This would be perfect for my project, but I can’t begin to decipher this into the python library I’ve been been using in this project. Any help would be greatly appreciated.

what python library are you using? the documnetation for ours can be found here and we’ll be happy filling the gaps if needed.

… otherwise the device is located at address 0x1d on the i2c bus, if you want to access the registers directly (or modify a different library).