sipeed/Maixduino

using "SD.h" library for SD card on maixduino

alirezainallo opened this issue · 1 comments

I want to use SD.h in platformIO for maixduino board but SD.begin(29); return false.
after search in code I found that SPI object (SPIClass SPI) that SD.h use for handle sd card has been launched with SPI1 by default:
image
and I think edit "Maix_SPI.cpp" from:
image
to:
image

now SD.begin(); return True.
image

is my work correct? is it safe?

this initial successfully so I think haven't any problem.