[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 參考的文本是根據 Creative Commons Attribution-ShareAlike 3.0 License,部分文本是從 the Arduino reference 修改的。 參考中的代碼示例已發佈到公共領域。