1
0
mirror of https://github.com/jscrane/r65emu.git synced 2024-12-11 05:49:29 +00:00

run SPI at full speed

This commit is contained in:
Stephen Crane 2014-11-16 21:45:48 +00:00
parent f695982620
commit 8ff7ef8798

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);