SPI.setBitOrder()

Description

Sets the order of the bits shifted out of and into the SPI bus, either LSBFIRST (least-significant bit first) or MSBFIRST (most-significant bit first). MSBFIRST is the default.

Syntax

SPI.setBitOrder(order)
SPI.setBitOrder(slaveSelectPin, order)

Parameters

order: either LSBFIRST or MSBFIRST

Returns

None

Reference Home || SPI Library