Accelerometer code using HiPi and I2C