setClockDivider()
描述
设定SPI 时脉的除数。86Duino SPI CLOCK=100/(2*divider) MHz。
除数可设定范围为 1~4095 的整数。86Duino Coding 102 版之前内定除数为 800,SPI clock 为 62.5KHz。Coding 103 版内定除数为 13,SPI clock 与使用 AVR CPU 的 Arduino 同为 4MHz。
语法
SPI.setClockDivider(divider)
参数
divider
:1~4095 的整数
回传
See also
- setBitOrder()
- setDataMode()
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.