diff --git a/hardware/arduino/sam/libraries/SPI/SPI.cpp b/hardware/arduino/sam/libraries/SPI/SPI.cpp index 118dc4001..ef931a3f4 100644 --- a/hardware/arduino/sam/libraries/SPI/SPI.cpp +++ b/hardware/arduino/sam/libraries/SPI/SPI.cpp @@ -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); }