ON THIS PAGE

  • SPIOut
  • How to place it
  • Inputs and Outputs
  • Usage
  • Examples of functionality
  • Reference

SPIOut

SPIOut node is used for sending data to a MCU (via SPI). You can find demos here.SPIIn is used for receiving data from the MCU (via SPI).

How to place it

Python
C++

Python

Python
1pipeline = dai.Pipeline()
2spi = pipeline.create(dai.node.SPIOut)

Inputs and Outputs

Usage

Python
C++

Python

Python
1pipeline = dai.Pipeline()
2spi = pipeline.create(dai.node.SPIOut)
3
4spi.setStreamName("spimetaout")
5spi.setBusId(0)

Examples of functionality

Reference

class

depthai.node.SPIOut(depthai.Node)

method
setBusId(self, id: int)
Specifies SPI Bus number to use  Parameter ``id``:     SPI Bus id
method
setStreamName(self, name: str)
Specifies stream name over which the node will send data  Parameter ``name``:     Stream name
property
input
Input for any type of messages to be transferred over SPI stream  Default queue is blocking with size 8

Need assistance?

Head over to Discussion Forum for technical support or any other questions you might have.