1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-20 21:01:25 +03:00
Commit Graph

32 Commits

Author SHA1 Message Date
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
42039ecd19 changed CS pin on CardInfo example to make it consistent with other SD examples 2011-05-12 17:02:47 -04:00
cc954c3570 Removing O_SYNC from FILE_WRITE mode for the SD File class. 2011-05-12 16:59:26 -04:00
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
d05e4021d0 Renamed WProgram.h to Arduino.h. 2011-03-01 19:52:13 -05:00
b0b909ed2b Adding warning about multiple open files. 2010-12-22 17:04:34 -06:00
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
a7a8f3fa10 Trying to fix seek() / peek() interactions. 2010-12-22 16:37:48 -06:00
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
5057d5b109 Adding seek() and size() functions to SD File class. 2010-12-22 15:11:54 -06:00
28d1b15283 Removing sdfatlib examples. 2010-12-11 16:11:27 -05:00
0e7b315842 Updating SD library keywords. 2010-12-11 15:41:58 -05:00
b89d2d97bc Updating (truncating) SD card readme. 2010-12-11 15:32:55 -05:00
4d3b263738 bug fixes to SD library examples 2010-12-03 15:29:56 -05:00
86e3d4ad7a updated SD examples with new constants, and commented them 2010-12-03 10:35:17 -05:00
d98d31eb1a Redoing 448222e4b6 without all the extra files.
Adds toInt() to String, WCharacter.h (from Wiring), and an SD Datalogger example.
2010-11-29 15:20:30 -05:00
920212ee05 Revert "added toInt() function to WString".
This reverts commit 448222e4b6.
2010-11-29 15:14:10 -05:00
448222e4b6 added toInt() function to WString 2010-11-29 11:31:00 -05:00
a78fa1d2be Renaming constants: SD_MODE -> FILE_MODE 2010-11-28 13:56:22 -06:00
ff89afb606 Replacing boolean parameters to SD.open() with SD_MODE constants. 2010-11-28 12:43:13 -06:00
012b4b0f0f Adding warning about leaving the hardware SS pin as an output. 2010-11-21 17:11:17 -05:00
29384e2f61 Adding SD tests, removing clean.bat. 2010-11-21 13:31:58 -05:00
a6f3f27d35 Adding SD.rmdir(). Returning success / failure from SD functions. 2010-11-20 14:49:20 -05:00
d05a57af19 Using sdfatlib CS pin defaults. SD.begin() returns success or failure. 2010-11-20 13:50:45 -05:00
6f0ea10600 Adding SD.remove(file) and another example. 2010-11-20 13:07:59 -05:00
5af5619df4 SD library updates. Renaming makeDir() to mkdir(). Replacing example. Adding keywords.txt. 2010-11-20 12:31:49 -05:00
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
6788eea3b8 Further SD API cleanup.
Making file and fileOpenMode private.  Removing old functions.
2010-11-20 11:01:38 -05:00
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
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
8629da8243 Removing execute permissions from SD library files. 2010-11-13 14:34:49 -05:00
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