Go Down

Topic: Due and the SD Library (Read 2092 times) previous topic - next topic


Hi Guys,

I'm having issues with the SD library. I have a basic sketch that writes data to an SD card via the Arduino WiFi shield using a Mega just fine but not in the DUE IDE.

I have downloaded the version 1.5.2 beta from the web site and found only LiquidCrystal and the SD hardware library directory. So I copied the SPI folder/files over to the hardware library directory from the 1.5 version.

When I go to compile the program it can't find the SPI.h header file even though it is in the directory just like the old version was.

C:\Users\Adam\Downloads\Apps\arduino-1.5.2-windows\arduino-1.5.2\libraries\SD\utility\Sd2Card.cpp:26: fatal error: SPI.h: No such file or directory
compilation terminated.

Does anyone know how to fix this error?




Add the SPI.h include to your sketch as well.


Also, if that does not fix it.

I'm pretty sure the beta IDE's have two library folders, one of them is AVR and SAM compatible ( the folder you are viewing ), the other 'libraries' folder is inside the SAM and AVR folders. It should be down the path a bit more:


Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131