Loading...
Pages: 1 [2]   Go Down
Author Topic: Read filename from SD card, store to a string  (Read 687 times)
0 Members and 1 Guest are viewing this topic.
Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 311
Posts: 35470
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Where is this from?
Left field. I thought you were trying to read the name FROM a file, not the name OF a file.
Logged

Milton Keynes UK
Offline Offline
Tesla Member
***
Karma: 88
Posts: 6278
-
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Crap ok, found it.

I was using these:

//Add the SdFat Libraries
#include <SdFat.h>
#include <SdFatUtil.h>

not the base SD library.

I see available() now too.

Thanks

If you'd posted your actual code (in its entirety), we'd have known that.
Logged

NZ
Offline Offline
Sr. Member
****
Karma: 0
Posts: 376
Turtle in a hard shell
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I did say in post #1 I am using the SDFAT library, not the SD library. Also posted pieces of the SDFAT functions. I didnt even know there was a SD library 'wrapper' or whatever its called to be honest.

Tried implmenting the SD library instead, but its not compiling. Looks like the 2012 SDFAT library I am using is not quite the same as the 2009 SDFAT library which is part of the SD library included with Arduino 1.01

No luck so far, will keep trying.
« Last Edit: November 06, 2012, 05:26:09 pm by WanaGo » Logged

Milton Keynes UK
Offline Offline
Tesla Member
***
Karma: 88
Posts: 6278
-
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

It's easy to find excuses not to, or reasons why we should have guessed or noticed some quirk of your solution, but there's simply no substitute for posting your actual code when you need help with a coding problem.
Logged

Pages: 1 [2]   Go Up
Print
 
Jump to: