modified ADXL362 library to work on arduino due