[SPI]
説明
Sets the SPI data mode: that is, clock polarity and phase. See the Wikipedia article on SPI for details.
構文
SPI.setDataMode(mode)
媒介変数
mode
: SPI_MODE0
, SPI_MODE1
, SPI_MODE2
, or SPI_MODE3
.
mode | Clock Polarity (CPOL) | Clock Phase (CPHA) |
SPI_MODE0 | 0 | 0 |
SPI_MODE1 | 0 | 1 |
SPI_MODE2 | 1 | 0 |
SPI_MODE3 | 1 | 1 |
戻り値
None
See also
Libraries Reference Home
86Duino のリファレンスのテキストは Arduino レファレンス を編集したもので、 Creative Commons Attribution-ShareAlike 3.0 License下でライセンスされています。リファレンス内のコードサンプルはパブリックドメインとして公開されています。