1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-30 16:24:09 +03:00

Add option to select SPI speed at SD::begin

This commit is contained in:
ficeto
2015-05-11 22:29:02 +03:00
parent 3ff208c3e9
commit 95007b229d
2 changed files with 3 additions and 3 deletions

View File

@ -65,7 +65,7 @@ private:
public:
// This needs to be called to set up the connection to the SD card
// before other methods are used.
boolean begin(uint8_t csPin = SD_CHIP_SELECT_PIN);
boolean begin(uint8_t csPin = SD_CHIP_SELECT_PIN, uint32_t speed = SPI_HALF_SPEED);
// Open the specified file/directory with the supplied mode (e.g. read or
// write, etc). Returns a File object for interacting with the file.