TMRh20 / Sketches

Arduino Audio Streaming Realtime, NTSC Video
http://tmrh20.blogspot.com
26 stars 13 forks source link

spi_uart #2

Open EspadaSer opened 2 years ago

EspadaSer commented 2 years ago

How do I make the spi_uart to work with a periphal? is it intended to replace spi.h?

TMRh20 commented 3 months ago

Sorry for the late reply. This repo doesn't get much action.

In any case, the SPI UART functionality is typically used by other libraries that rely on SPI. In the case of the RF24 library, it supports an alternate SPI BUS for when multiple devices are connected by SPI, which allows more devices and/or smoother faster communication between a single device.

As an example see https://github.com/nRF24/RF24/blob/master/RF24_config.h#L26 and related code in that file.