This is a C++ class that enables the Raspberry Pi to communicate with the MCP3008 SPI ADC using spidev. The code can be easily modified to communicate with other SPI devices