Skip to content

Cannot be used with SD.h #12

Description

@Zhu-jiatong

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() {

}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions