I want to find...

Search

Shares

Table of Content

SPI.setDataMode()

[SPI]

Description

Sets the SPI data mode: that is, clock polarity and phase. See the Wikipedia article on SPI for details.

Syntax

SPI.setDataMode(mode)

Parameters

modeSPI_MODE0SPI_MODE1SPI_MODE2, or SPI_MODE3.
modeClock Polarity (CPOL)Clock Phase (CPHA)
SPI_MODE000
SPI_MODE101
SPI_MODE210
SPI_MODE311

Returns

None

See also


Libraries Reference Home

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

Leave a Comment

Scroll to Top