40ピンあるRaspberry Pi(Model A+/B+/2B/3B/Zero/Zero W)は,SPIが2系統備わっています.GPIO16/19/20/21が2系統目のSPI1です. RPi Low-level peripherals - eLinux.org ただし,単にSPIを有効にしただけでは,下記の通りSPI1は使えません. >>> import spidev >>> spi = spidev.SpiDev() >>> spi.open(1,2) # SPI1,CE#2を使おうとする Traceback (most recent call last): File "<stdin>", line 1, in <module> FileNotFoundError: [Errno 2] No such file or directory