b50daa12d8
Tests for various String addition cases.
2011-03-31 10:57:34 -04:00
d12fe18480
Restoring concatenation of built-in types with String.
2011-03-31 10:56:14 -04:00
a5f6a42dd7
Pulled out Client API into a base class to allow multiple derived classes to use it, and moved it (plus IPAddress) out of the Ethernet library so that other libraries can find it. First steps in integrating the WiFly code so it's easier to switch between that and Ethernet
2011-03-28 12:08:53 +01:00
0ac0dcf158
Adding F("foo") syntax for flash strings.
2011-03-27 15:06:20 -04:00
e3c7a54725
String: removing implicit numeric conversions and new approach to "if (s)".
...
This makes explicit the String constructors that take numeric types and chars and removes the versions of concat() and operator=() and operator+() that accept numberic types.
It also replaces the operator bool() with a operator that converts to a function pointer. This allows for uses like "if (s)" but not "s + 123". See: http://www.artima.com/cppsource/safebool.html . This allowed removing the disambiguating operator+() functions and relying solely on StringSumHelper and anonymous temporaries once again.
Also, now treating unsigned char's like int when constructing Strings from them, i.e. String(byte(65)) is now "65" not "A". This is consistent with the new behavior of Serial.print(byte).
2011-03-26 18:52:54 -04:00
43cfc87f17
Updating version number to 0100 to allow checking for Arduino 1.0.
...
http://code.google.com/p/arduino/issues/detail?id=453
2011-03-26 16:41:30 -04:00
63d3190cbb
Not re-opening .pde sketches left open from a pre-1.0 version of Arduino.
...
That way, we can wait to rename them until the user explicitly opens them in Arduino 1.0.
2011-03-26 16:23:29 -04:00
c62f62ff0f
Removing Sprite and Matrix libraries.
...
http://code.google.com/p/arduino/issues/detail?id=252
2011-03-26 16:03:06 -04:00
f43c0918ff
Merge branch 'dhcp' of github.com:amcewen/Arduino.
...
This includes DCHP support and new UDP API for the Ethernet library.
2011-03-23 23:28:33 -04:00
efae89ea0e
Commenting String API behavior.
2011-03-23 22:42:05 -04:00
fcb66ddccd
Added example to demonstrate LiquidCrystal chreateChar() function
2011-03-21 12:27:18 -04:00
7d4073ef73
Return an invalid string (not a partial one) when operator+() fails.
2011-03-19 11:14:17 -04:00
d3a5532d13
Starting to distinguish between empty strings and invalid (null) ones.
2011-03-18 21:45:27 -04:00
df00d3e5f3
changed CS pin on CardInfo example to make it consistent with other SD examples
2011-03-16 13:53:39 -04:00
a5929892d4
Adding test for string concatenation w/ + operator.
2011-03-13 19:43:01 -04:00
6f3ceb399d
Protecting String copy() and move().
2011-03-13 19:39:04 -04:00
488e672ea0
Adding additional String + operators for disambiguation.
...
The operator bool() means that you could implicitly convert a String to a bool and then add it to it an int, for example. Which means our operator+ has to match exactly or it will be ambiguous.
2011-03-13 19:31:10 -04:00
cc24d41b74
Moving move() to __GXX_EXPERIMENTAL_CXX0X__ only, adding operator bool().
2011-03-13 16:46:06 -04:00
f5f2e09636
Modifying String.concat() to return success or failure, not this.
...
Which means you can't chain multiple concat() calls together, but you can check if they succeeded or not.
2011-03-12 14:03:34 -05:00
6727c8a831
Don't return the string when modifying its value.
...
Changing toLowerCase(), toUpperCase(), trim() and replace() to return void instead of a reference to the string that's just been changed. That way, it's clear that the functions modify the string they've been called on.
2011-03-11 18:54:58 -05:00
7fa866ffea
Renaming append() back to concat().
2011-03-11 18:04:31 -05:00
9139094c36
Removing F("string") syntax for now.
...
We should probably add something like this back in later, but I want to do one thing at a time. This removes the __FlashStringHelper class as well.
2011-03-11 18:01:40 -05:00
1d9bbc01e3
Rewrite of the String class by Paul Stoffregen.
...
http://www.pjrc.com/teensy/string_class_experimental.html
2011-03-11 17:56:10 -05:00
6b890f8c7d
Fixing typo in boards.txt.
2011-03-09 21:22:04 -05:00
af841d166d
Flushing outgoing and incoming data in Serial.end().
...
That is, waiting for outgoing data to transmit and dropping any received data.
2011-03-06 12:20:42 -05:00
1bef2990b6
Fixing race condition in Serial write (Brian Cook).
2011-03-06 11:47:18 -05:00
10ecfa8bea
Moving TCCR1B reset into #ifdef check.
2011-03-06 11:29:35 -05:00
7f0cc2111c
Implemented serial transmit buffering.
...
Now Serial.write() places characters in the transmit buffer, and the data register empty interrupt reads and transmit them. Based loosely on the implementation here: ftp://wookey.org.uk/arduino.
http://code.google.com/p/arduino/issues/detail?id=262
2011-03-05 14:17:26 -05:00
19597b1d0b
Factoring pin definitions out of the core.
...
That is, there's now a pins/ directory in a platform, which includes multiple directories, each of which has its own pins_arduino.h. The boards.txt gets a new preferences, <BOARD>.build.pins, whose values is a sub-directory of the pins/ directory (possibly with a "platform:" prefix). That sub-directory is then placed in the include path during compilation.
2011-03-04 21:05:05 -05:00
2f4d339c6b
Fixing include in SoftwareSerial.cpp.
2011-03-04 09:10:14 -05:00
afb60e1163
Moving all pin definitions into pins_arduino.h.
...
This is a step towards providing portability across AVR's by simply including an appropriate header file.
2011-03-03 23:54:33 -05:00
d59fcb8eed
Fixing warnings (David H. Lynch Jr).
2011-03-03 22:56:20 -05:00
5234a96b34
Rearranging internal #defines in headers.
2011-03-03 18:57:05 -05:00
ba14230883
Removing optimized digitalWrite(), digitalRead(), pinMode().
2011-03-03 18:46:45 -05:00
1dd4bd6d2a
Removing Client operator==(int) and operator!=(int) from Ethernet library.
...
http://code.google.com/p/arduino/issues/detail?id=408
2011-03-02 23:45:51 -05:00
4ea2d99c1a
Re-arranging header files and small fixes to optimized core functions.
2011-03-02 23:05:25 -05:00
bb7a044884
Moving wiring.h contents into Arduino.h.
2011-03-01 20:00:16 -05:00
d05e4021d0
Renamed WProgram.h to Arduino.h.
2011-03-01 19:52:13 -05:00
fe8af70c61
Added CardInfo example to SD libary examples
2011-03-01 07:13:18 -05:00
6739f20bbf
Modifying examples to use Serial.write() instead of Serial.print(BYTE).
2011-02-26 14:04:41 -05:00
97abbd7a31
Removing BYTE keyword (use Serial.write() instead).
2011-02-26 13:58:03 -05:00
3eae87adc9
Modifying examples to use Serial.write() instead of Serial.print(BYTE).
2011-02-26 13:57:41 -05:00
e031022a68
Removing O_SYNC from FILE_WRITE mode for the SD File class.
2011-02-25 18:44:43 -05:00
13e3ba87e3
Small optimization in HardwareSerial.
...
begin(long) -> begin(unsigned long)
2011-02-25 18:36:46 -05:00
896b1a48a1
Revert "Merge branch 'new-extension' of git@github.com:arduino/Arduino"
...
This reverts commit 42fa932ceb
, reversing
changes made to a7352b894f
.
See: http://www.kernel.org/pub/software/scm/git/docs/howto/revert-a-faulty-merge.txt for information on how to merge the branch in later.
2011-02-25 18:23:34 -05:00
b4f2bd9761
updated addresses for Pachube.com in Ethernet examples
2011-02-24 09:34:08 -05:00
fa3728ea03
Merge branch 'master' of git@github.com:arduino/Arduino
2011-02-24 09:31:13 -05:00
e1faf02deb
Removing hardcoded CPU speed from Wire library.
...
Replacing CPU_FREQ with F_CPU.
2011-02-22 22:25:04 -05:00
d15e9aa98a
Merge branch 'master' into new-extension
2011-02-22 22:02:22 -05:00
a1648c0775
Merge branch 'new-extension' of github.com:arduino/Arduino into new-extension
2011-02-18 10:45:25 -05:00