Go Down

Topic: Due and the SD Library (Read 1 time) previous topic - next topic

adamatcooranbong

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.

Quote
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?

Cheers

Adam

pYro_65

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

pYro_65

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:

Quote
C:\Users\Adam\Downloads\Apps\arduino-1.5.2-windows\arduino-1.5.2\Arduino\???

Go Up