LIS302 and SPI implementation