这里会显示出您选择的修订版和当前版本之间的差别。
— |
en:arduino:libraries:spisetclockdivider [2016/12/25 22:15] (当前版本) |
||
---|---|---|---|
行 1: | 行 1: | ||
+ | [[en:arduino:libraries:spi|SPI]] | ||
+ | ====== setClockDivider() ====== | ||
+ | |||
+ | ===== Description ===== | ||
+ | |||
+ | Sets the SPI clock divider relative to the system clock. The dividers available are 2, 4, 8, 16, 32, 64, or 128. The default setting is SPI_CLOCK_DIV4, which sets the SPI clock to one-quarter the frequency of the system clock. | ||
+ | ===== Syntax ===== | ||
+ | |||
+ | SPI.setClockDivider(divider) | ||
+ | ===== Parameters ===== | ||
+ | |||
+ | divider: | ||
+ | * SPI_CLOCK_DIV2 | ||
+ | * SPI_CLOCK_DIV4 | ||
+ | * SPI_CLOCK_DIV8 | ||
+ | * SPI_CLOCK_DIV16 | ||
+ | * SPI_CLOCK_DIV32 | ||
+ | * SPI_CLOCK_DIV64 or | ||
+ | * SPI_CLOCK_DIV128 | ||
+ | ===== Returns ===== | ||
+ | |||
+ | None | ||
+ | |||
+ | [[en:arduino:libraries|Reference Home]] |