Refactoring ADXL345 device driver; Move from SPI to TWI.