Skip to content

Latest commit

 

History

History
90 lines (58 loc) · 1.85 KB

spi_in.rst

File metadata and controls

90 lines (58 loc) · 1.85 KB

SPIIn

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).

How to place it

py

pipeline = dai.Pipeline() spi = pipeline.create(dai.node.SPIIn)

c++

dai::Pipeline pipeline; auto spi = pipeline.create<dai::node::SPIIn>();

Inputs and Outputs

┌─────────────┐

SPI │ │ (from MCU) | │ out ----------►│ SPIIn ├─────────► │ │ │ │ └─────────────┘

Message types

  • out - Any

Usage

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);

Examples of functionality

Reference

Python

depthai.node.SPIIn

C++

dai::node::SPIIn