Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot be used with SD.h #12

Open
Zhu-jiatong opened this issue May 20, 2023 · 0 comments
Open

Cannot be used with SD.h #12

Zhu-jiatong opened this issue May 20, 2023 · 0 comments

Comments

@Zhu-jiatong
Copy link

I intended to use the library with SD card, but it seems that the initialisation of SD card always fails. Meanwhile, using the hardware SPI works.

Sketch to reproduce on ESP32:

#include <SoftSPI.h>
#include <SD.h>
#include <iostream>

SoftSPI sSPI(MOSI, MISO, SCK);

// the setup function runs once when you press reset or power the board
void setup() {
	Serial.begin(115200);
	std::cout << "Test Begins:\n";
	bool isSdSuccess = SD.begin(SS, sSPI);
	std::cout << "SD Setup: " << std::boolalpha << isSdSuccess << '\n';
}

// the loop function runs over and over again until power down or reset
void loop() {

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant