Reference   Language | Libraries | Comparison | Changes

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

Returns

None.

See also

Reference Home

Corrections, suggestions, and new documentation should be posted to the Forum.

The text of the Arduino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.

Share