Commit Graph

17 Commits

Author SHA1 Message Date
David A. Mellis 71289521bf Use SDA and SCL constants, not hardcoded registers for TWI pullups.
http://code.google.com/p/arduino/issues/detail?id=601
2011-09-08 16:50:07 -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
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
David A. Mellis 57b4b0e10d Removing hardcoded CPU speed from Wire library.
Replacing CPU_FREQ with F_CPU.
2011-05-12 16:53:14 -04:00
David A. Mellis 9f412a2628 Changing Wire API to inherit from Stream.
Renaming send() to write(), receive() to read(), etc.
2011-04-17 13:58:14 -04:00
David A. Mellis 7392f8514d Fix to drop packets in Wire library (issue #335). 2010-09-16 01:22:36 +00:00
David A. Mellis bf88db8484 Statically allocating buffers in Wire library (issue #351). 2010-09-16 00:50:43 +00:00
Tom Igoe 08cfd58540 Added public domain notice 2010-02-24 03:48:01 +00:00
Tom Igoe 89540b837a Added public domain notice 2010-02-24 03:47:59 +00:00
Tom Igoe 39f2ddc67e Added public domain notice 2010-02-24 03:47:54 +00:00
Tom Igoe 30ab6fd578 Added public domain notice 2010-02-24 03:47:47 +00:00
Tom Igoe ae026b783c Added public domain notice 2010-02-24 03:47:44 +00:00
Tom Igoe 99cc559107 Added public domain notice 2010-02-24 03:47:42 +00:00
David A. Mellis 3075c8e4fd Moving libraries out of arduino platform / core directory and to top-level. 2009-11-07 17:54:56 +00:00