Raspberry Pi, Sensors, Hardware, DIY, Python.
create the mcp object mcp = MCP.MCP3008(spi, cs) # create an analog input channel on pin 0 chan0 = AnalogIn(mcp, MCP.P0) # create an analog input channel on pin 0 chan1 = AnalogIn(mcp, MCP.P1) time.sleep(0.01) chan1 = AnalogIn(mcp, MCP.P1) chan2 = AnalogIn(mcp, MCP.P2) time.sleep(0.01) chan2 =