Cristian Maglie
1e221116f3
Moved SD lib into root libraries folder
2012-09-24 12:42:23 +02:00
Cristian Maglie
57b8713cab
Moved libraries folder inside platform folder. Now libraries and examples are searched per board/platform
2012-01-04 15:14:51 +01:00
David A. Mellis
ca671fdc05
Fixing more warnings (Paul Stoffregen).
2011-10-10 11:28:44 -04:00
David A. Mellis
7d8d20894c
Making Print::write(char *) non-virtual.
...
http://code.google.com/p/arduino/issues/detail?id=607
2011-09-07 18:41:05 -04:00
David A. Mellis
b73cf39d94
Moving write errors out of return value into separate API methods.
...
write(), print(), println() now return size_t (and don't use negative values to signal errors).
Print adds writeError() for checking for write errors, clearWriteError() to reset the flag to false, and a protected setWriteError() for signalling errors.
http://code.google.com/p/arduino/issues/detail?id=598
2011-08-26 16:08:14 -04:00
David A. Mellis
929597375b
Changing from long to ssize_t (int) for write(), print(), println() return.
2011-08-26 14:20:41 -04:00
David A. Mellis
8059abe581
write(), print(), and println() now return number of bytes written.
...
The type is long, and negative values indicate errors. Needs more testing.
http://code.google.com/p/arduino/issues/detail?id=551
2011-08-23 19:12:03 -04:00
David A. Mellis
cc954c3570
Removing O_SYNC from FILE_WRITE mode for the SD File class.
2011-05-12 16:59:26 -04:00
David A. Mellis
059bc5f022
Incorporating ladyada's SD changes (multifile & directories).
...
Grabbed a patch from this repository: https://github.com/adafruit/SD and updated it for Arduino 1.0 (using Arduino.h instead of WProgram.h).
2011-04-18 17:58:54 -04:00
David A. Mellis
d05e4021d0
Renamed WProgram.h to Arduino.h.
2011-03-01 19:52:13 -05:00
David A. Mellis
575bb1dafb
Redoing peek() implementation (SD file class).
...
Now simply seeking backwards by a character in peek() rather than trying to keep track of the extra character read.
2010-12-22 16:47:50 -06:00
David A. Mellis
4742739d6e
Adding position() function to File class and replacing FILE_TRUNCATE and FILE_APPEND with FILE_WRITE (SD library). Updating examples and keywords.txt accordingly.
2010-12-22 15:52:09 -06:00
David A. Mellis
5057d5b109
Adding seek() and size() functions to SD File class.
2010-12-22 15:11:54 -06:00
David A. Mellis
a78fa1d2be
Renaming constants: SD_MODE -> FILE_MODE
2010-11-28 13:56:22 -06:00
David A. Mellis
ff89afb606
Replacing boolean parameters to SD.open() with SD_MODE constants.
2010-11-28 12:43:13 -06:00
David A. Mellis
a6f3f27d35
Adding SD.rmdir(). Returning success / failure from SD functions.
2010-11-20 14:49:20 -05:00
David A. Mellis
d05a57af19
Using sdfatlib CS pin defaults. SD.begin() returns success or failure.
2010-11-20 13:50:45 -05:00
David A. Mellis
6f0ea10600
Adding SD.remove(file) and another example.
2010-11-20 13:07:59 -05:00
David A. Mellis
5af5619df4
SD library updates. Renaming makeDir() to mkdir(). Replacing example. Adding keywords.txt.
2010-11-20 12:31:49 -05:00
David A. Mellis
fcc4188b15
SD File object implements Stream.
...
Added peak() and available() using a single byte buffer.
Added flush().
2010-11-20 11:45:05 -05:00
David A. Mellis
6788eea3b8
Further SD API cleanup.
...
Making file and fileOpenMode private. Removing old functions.
2010-11-20 11:01:38 -05:00
David A. Mellis
a5898ae26a
Revising SD library API.
...
Open now returns a file object (which has a close() method); exists() no longer accepts a parent directory.
2010-11-19 22:30:40 -05:00
David A. Mellis
6cbb866123
Adding CS pin parameter to SD.begin(). Defaults to 4 (for Arduino Ethernet Shield).
...
http://code.google.com/p/arduino/issues/detail?id=400
2010-11-14 11:48:21 -05:00
David A. Mellis
8629da8243
Removing execute permissions from SD library files.
2010-11-13 14:34:49 -05:00
David A. Mellis
6e449d7f5b
Combining MemoryCard and SdFat libraries into SD library.
...
Defaulting to CS pin 4 (for Arduino Ethernet Shield). Holding the SS pin high (for disabling W5100 on the Ethernet Shield).
2010-11-13 14:01:37 -05:00