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:
parent
3360740b3e
commit
8cefac5d3b
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user