1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-01-17 06:52:18 +01:00

Changed SPI default speed to 4MHz

This commit is contained in:
Cristian Maglie 2012-09-17 15:47:17 +02:00
parent 3360740b3e
commit 8cefac5d3b

View File

@ -36,8 +36,8 @@ void SPIClass::begin(uint8_t _pin) {
g_APinDescription[spiPin].ulPin,
g_APinDescription[spiPin].ulPinConfiguration);
// Default speed set to 500Khz
setClockDivider(_pin, 168);
// Default speed set to 4Mhz
setClockDivider(_pin, 21);
setDataMode(_pin, SPI_MODE0);
setBitOrder(_pin, MSBFIRST);
}