Customize mcp3008 driver for accelerometer