added code for SPI MCP3008