search
[last updated: 2024-08-18]
SPI home page
-----
===============================================================================
Start the SPI library with this line in setup:
It may be that your peripheral device is hard-coded, with its own firmware, in which case you must use what it specifies.
OTOH if your peripheral is another MCU, then you are free to choose which formats you want to use, as long, of course, as both your "master" MCU and your peripheral are programmed with the same parameters.
You then pass that object to the beginTransaction command when you do the actual data transfer:
------------------------------
Do this with each data transfer. It sets the SPI parameters, and blocks other interrupts that might affect the SPI bus.
One online source did this clever thing for unknown reasons:
-------------------------------------------------------------------------