Poseider
Newbie

Hi everyone,
please I need some help wiring and configuration the mcp3008 ADC on Proteus IOT Builder with raspberryPI.
I connected :
the Pi CLK to the MCP CLK
the Pi MISO to the MCP DOUT
the Pi MOSI to the MCP DIN
and the Pi CS to the MCP CS/SHDN
but when I simulate this errors appear :
[VSMPY] File "C:\Users\Jawhar\AppData\Local\Temp\VSM Studio\be09b88a6d4042db9b27604dfc64139e\RPI3\Debug\main.py", line 28 [U1]
( line 28 pio.U2=Generic.MCP3008 (pio.CLK, pio.MISO, pio.MOSI, pio.$CS$) )
[VSMPY] pio.U2=Generic.MCP3008 (pio.CLK, pio.MISO, pio.MOSI, pio.$CS$) [U1]
[VSMPY] ^ [U1]
[VSMPY] SyntaxError: invalid syntax [U1]
[VSMPY] Python execution finished [U1]
Can someone help me running this and thanks in advance.
please I need some help wiring and configuration the mcp3008 ADC on Proteus IOT Builder with raspberryPI.
I connected :
the Pi CLK to the MCP CLK
the Pi MISO to the MCP DOUT
the Pi MOSI to the MCP DIN
and the Pi CS to the MCP CS/SHDN
but when I simulate this errors appear :
[VSMPY] File "C:\Users\Jawhar\AppData\Local\Temp\VSM Studio\be09b88a6d4042db9b27604dfc64139e\RPI3\Debug\main.py", line 28 [U1]
( line 28 pio.U2=Generic.MCP3008 (pio.CLK, pio.MISO, pio.MOSI, pio.$CS$) )
[VSMPY] pio.U2=Generic.MCP3008 (pio.CLK, pio.MISO, pio.MOSI, pio.$CS$) [U1]
[VSMPY] ^ [U1]
[VSMPY] SyntaxError: invalid syntax [U1]
[VSMPY] Python execution finished [U1]
Can someone help me running this and thanks in advance.