Arduino Function: SPI.SPISettings

Description

With the new SPI library, each SPI device can be configure once as an SPISettings object.

Syntax

SPISettings mySettting(speed, dataOrder, datamode)

Parameters

  • speed: the speed of the communication
  • dataOrder: MSBFIRST or LSBFIRST
  • dataMode : SPI_MODE0, SPI_MODE1, SPI_MODE2, or SPI_MODE3


Based on the reference originally written by Arduino Community,  wiring.org.co and  arduino.cc