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

Merge of arduino-1.0.1. Work in progress...

This commit is contained in:
Cristian Maglie
2012-05-23 09:22:52 +02:00
215 changed files with 37716 additions and 6881 deletions

View File

@ -17,6 +17,7 @@
* Ethernet shield attached to pins 10, 11, 12, 13
created 21 May 2011
modified 9 Apr 2012
by Tom Igoe
This code is in the public domain.
@ -51,8 +52,13 @@ void setup() {
currentLine.reserve(256);
tweet.reserve(150);
// initialize serial:
// Open serial communications and wait for port to open:
Serial.begin(9600);
while (!Serial) {
; // wait for serial port to connect. Needed for Leonardo only
}
// attempt a DHCP connection:
Serial.println("Attempting to get an IP address using DHCP:");
if (!Ethernet.begin(mac)) {