Pages: [1]   Go Down
Author Topic: Due and the SD Library  (Read 1204 times)
0 Members and 1 Guest are viewing this topic.
Australia
Offline Offline
Newbie
*
Karma: 0
Posts: 45
Due the data logging machine
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

North Queensland, Australia
Online Online
Edison Member
*
Karma: 74
Posts: 2219
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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


North Queensland, Australia
Online Online
Edison Member
*
Karma: 74
Posts: 2219
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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\???
Logged


Pages: [1]   Go Up
Jump to: