Description

setBitOrder() 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).

This function is part of the SPI library. See the SPI main page for more information.

Syntax

SPI.setBitOrder(order)

Parameters

  • order: the bit order for data transfer. Allowed values: LSBFIRST, MSBFIRST.

Returns

Nothing.

Notes and Warnings

This function is deprecated and should not be used in new projects. Use SPISettings with SPI.beginTransaction() to configure SPI parameters.