SPIIn node is used for receiving data that was sent from a MCU (via SPI). You can find demos here.
This allows you for example to control eg. ColorCamera
or ImageManip
from the MCU or send a Buffer
of data from the MCU to a Script
node.
SPIOut
is used for sending data from the VPU to a MCU (via SPI).
py
pipeline = dai.Pipeline() spi = pipeline.create(dai.node.SPIIn)
c++
dai::Pipeline pipeline; auto spi = pipeline.create<dai::node::SPIIn>();
┌─────────────┐
SPI │ │ (from MCU) | │ out ----------►│ SPIIn ├─────────► │ │ │ │ └─────────────┘
Message types
out
-Any
py
pipeline = dai.Pipeline() spi = pipeline.create(dai.node.SPIIn)
spi.setStreamName("control") spi.setBusId(0)
c++
dai::Pipeline pipeline; auto spi = pipeline.create<dai::node::SPIIn>();
spi->setStreamName("control"); spi->setBusId(0);
Python
depthai.node.SPIIn
C++
dai::node::SPIIn