SPI.setClockDivider()

[SPI]

説明

Sets the divider of the SPI clock. On 86Duino, the SPI clock is equal to 100/(2*divider) MHz.

The dividers available are integer values from 1 to 4095. On 86Duino Coding 102 and before, the default divider setting is 800, which sets the SPI clock to 62.5KHz; and from Coding 103, the default setting is changed to 13, which approximately sets the clock to 4MHz like other AVR-based Arduino boards.

構文

SPI.setClockDivider(divider)

媒介変数

divider: integer from 1 to 4095.

戻り値

None

参照


ライブラリリファレンスホーム

86Duinoリファレンスのテキストは、Arduinoリファレンスを改変したもので、Creative Commons Attribution-ShareAlike 3.0ライセンスに基づいてライセンスされています。リファレンス内のコードサンプルはパブリックドメインとして公開されています。

上部へスクロール