sipeed / Maixduino

Arduino port on Maix board ( k210 )
https://maixduino.sipeed.com
Other
213 stars 93 forks source link

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

Closed alirezainallo closed 1 year ago

alirezainallo commented 1 year ago

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?

alirezainallo commented 1 year ago

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