[SPI]
Description
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.
Syntax
SPI.setClockDivider(divider)
Parameters
divider
: integer from 1 to 4095.
Returns
None
See also
Libraries Reference Home
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.