创客百科

姿势共享,有节操无门槛参与的创客百科,创客动力之源 \ (^_^) /

用户工具

站点工具


en:arduino:libraries:spisetclockdivider

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

本页面的其他翻译:
en/arduino/libraries/spisetclockdivider.txt · 最后更改: 2016/12/25 22:15 (外部编辑)