beginTransaction() configures the SPI bus with the specified settings and takes exclusive control of the bus. This function should be called before communicating with a specific SPI peripheral to ensure proper configuration and prevent conflicts with other SPI devices or interrupts.
Note that SPI.begin() must be called before using this function.
This function is part of the SPI library. See the SPI main page for more information.
SPI.beginTransaction(mySettings)
mySettings: the SPI settings to apply (clock speed, bit order, and data mode). See SPISettings for more information.Nothing.