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
1pipeline = dai.Pipeline()
2spi = pipeline.create(dai.node.SPIOut)
Inputs and Outputs
Command Line
1/
2 ┌──────────────┐
3 │ │
4 input │ │ SPI (to MCU)
5 ─────────►│ SPIOut ├------------►
6 │ │
7 │ │
8 └──────────────┘
input
-Any
Usage
Python
C++
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
Need assistance?
Head over to Discussion Forum for technical support or any other questions you might have.