sample code for Grove - 6-Axis Accelerometer&Compass (SEN05072P)