Updated constructor, switched cs pin and spi speed parameters for begin
This commit is contained in:
parent
500a441248
commit
34a847a012
@ -337,7 +337,7 @@ boolean callback_rmdir(SdFile& parentDir, char *filePathComponent,
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
boolean SDClass::begin(uint32_t speed, uint8_t csPin) {
|
boolean SDClass::begin(uint8_t csPin, uint32_t speed) {
|
||||||
/*
|
/*
|
||||||
|
|
||||||
Performs the initialisation required by the sdfatlib library.
|
Performs the initialisation required by the sdfatlib library.
|
||||||
|
@ -90,7 +90,7 @@ private:
|
|||||||
public:
|
public:
|
||||||
// This needs to be called to set up the connection to the SD card
|
// This needs to be called to set up the connection to the SD card
|
||||||
// before other methods are used.
|
// before other methods are used.
|
||||||
boolean begin( uint32_t speed = SPI_HALF_SPEED, uint8_t csPin = SD_CHIP_SELECT_PIN);
|
boolean begin(uint8_t csPin = SD_CHIP_SELECT_PIN, uint32_t speed = SPI_HALF_SPEED);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
In the following sequence:
|
In the following sequence:
|
||||||
|
Loading…
Reference in New Issue
Block a user