run SPI at full speed

This commit is contained in:
Stephen Crane 2014-11-16 21:45:48 +00:00
parent f695982620
commit 8ff7ef8798
1 changed files with 2 additions and 1 deletions

View File

@ -20,7 +20,8 @@ bool hardware_reset() {
extern SPIClass SPIRAM_DEV;
SPIRAM_DEV.begin();
SPIRAM_DEV.setModule(SPIRAM_SPI);
SPIRAM_DEV.setClockDivider(SPI_CLOCK_DIV8);
// SPIRAM_DEV.setClockDivider(SPI_CLOCK_DIV2);
SPIRAM_DEV.setClockDivider(1);
SPIRAM_DEV.setDataMode(SPI_MODE0);
bool sd = SD.begin(SD_CS, 2, SD_SPI);