. In the top-right corner select SPI and you will see the valid SPI pins highlighted for the Raspberry Pi, among others, the possible CS-pins. It's up to you to choose whatever CS you're going to connect to your MCP3008 (CS0 or CS1).
The chip select is necessary to indicate which device has to pick up the SPI data on the SPI bus.
Connections from the RPi to the MCP3008:
- GPIO pin 19 of the RPi (MOSI) to pin 11 (Din) of the MCP3008
- GPIO pin 21 of the RPi (MISO) to pin 12 (Dout) of the MCP3008
- GPIO pin 23 of the RPi (SCLCK) to pin 13 (CLK) of the MCP3008
- GPIO pin 24 of the RPi (CE0) to pin 10 (CS/SHDN)of the MCP3008 if you use parameter SpiChannel.CS0
- GPIO pin 26 of the RPi (CE1) to pin 10 (CS/SHDN)of the MCP3008 if you use parameter SpiChannel.CS1
Note that you can also use a second SPI set on the RPi (see also
https://pinout.xyz/pinout/spi) but therefore you have to modify the content of the file /boot/config.txt of your RPi.