I was hoping to find some re-made short codes online for how to pull the magnetic readings off the sensor for the sensor I bought. However, it appears the LSM303C is too new and there hasn't been anything uploaded for it. I did find a code for a similar sensor, LSM303DLH, but I a too unsure if it can be ported with changes made to register values, etc.
link to LSM303C data sheet: http://www.st.com/web/en/resource/technical/document/datasheet/DM00089896.pdf
link to LSM303DLH data sheet: http://www.st.com/web/en/resource/technical/document/datasheet/CD00260288.pdf
Being very inexperienced I always question my judgement for this. But looking at the code and comparing data sheets does this code seem viable for what I am looking for?