Accelerometer: get a value as angle (pitch and roll)

Hello,

The raw values are in milli-g, thousandths of a g.

I’m not too familiar with the mathematics on how to convert the acceleration to roll and yaw, essentially all I can do there is to read through application notes and check if they have an algorithm that would work