1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-11-30 11:24:12 +01:00
Commit Graph

94 Commits

Author SHA1 Message Date
Tom Igoe
202bb102a0 Updated all serial in setup examples with a note about the serial check 2012-04-02 11:11:46 -04:00
Tom Igoe
a631e4f834 Added Serial port check to all examples using Serial statements in the setup 2012-04-02 09:07:58 -04:00
David A. Mellis
3dfc2c6311 Serial.print() -> Serial.write() in SD SerialPrint_P function.
http://code.google.com/p/arduino/issues/detail?id=759
2012-02-03 17:32:54 -05: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
726acf77de Fixing SD ls function (Paul Stoffregen).
http://code.google.com/p/arduino/issues/detail?id=700
2011-10-29 17:31:04 -04:00
David A. Mellis
ca671fdc05 Fixing more warnings (Paul Stoffregen). 2011-10-10 11:28:44 -04:00
David A. Mellis
5ba38fa9bd Applying adafruit SD updates (available() overful fix).
http://code.google.com/p/arduino/issues/detail?id=595
2011-09-09 16:57:00 -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
0c92f230b5 Fixing SD library compilation error (writeError() -> getWriteError()). 2011-09-04 20:18:27 -04:00
Tom Igoe
35777612c0 Changed all .pde examples to .ino
All examples in /build/shared/examples/ and /libraries/ have had their
extensions changed to .ino
2011-08-30 15:33:32 -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
Tom Igoe
42039ecd19 changed CS pin on CardInfo example to make it consistent with other SD examples 2011-05-12 17:02:47 -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
b0b909ed2b Adding warning about multiple open files. 2010-12-22 17:04:34 -06: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
a7a8f3fa10 Trying to fix seek() / peek() interactions. 2010-12-22 16:37:48 -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
28d1b15283 Removing sdfatlib examples. 2010-12-11 16:11:27 -05:00
David A. Mellis
0e7b315842 Updating SD library keywords. 2010-12-11 15:41:58 -05:00
David A. Mellis
b89d2d97bc Updating (truncating) SD card readme. 2010-12-11 15:32:55 -05:00
Tom Igoe
4d3b263738 bug fixes to SD library examples 2010-12-03 15:29:56 -05:00
Tom Igoe
86e3d4ad7a updated SD examples with new constants, and commented them 2010-12-03 10:35:17 -05:00
David A. Mellis
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
David A. Mellis
920212ee05 Revert "added toInt() function to WString".
This reverts commit 448222e4b6.
2010-11-29 15:14:10 -05:00
Tom Igoe
448222e4b6 added toInt() function to WString 2010-11-29 11:31:00 -05: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
012b4b0f0f Adding warning about leaving the hardware SS pin as an output. 2010-11-21 17:11:17 -05:00
David A. Mellis
29384e2f61 Adding SD tests, removing clean.bat. 2010-11-21 13:31:58 -05: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