spi Frequency
Set the SPI clock frequency.
pins.spiFrequency(1000000);
Parameters
- frequency: a number to set as the frequency for the SPI bus clock. This value is the number of clock changes per second (Hz).
Example
Set the SPI clock frequency to 1
megahertz.
pins.spiFrequency(1000000);