Skip to content

Instantly share code, notes, and snippets.

@BenGriffiths
Created November 9, 2014 19:59
Show Gist options
  • Save BenGriffiths/b854e348fbf941074544 to your computer and use it in GitHub Desktop.
Save BenGriffiths/b854e348fbf941074544 to your computer and use it in GitHub Desktop.
void setup() {
Serial.begin(9600);
lcd.clear();
lcd.begin(16, 2);
lcd.setCursor(0,0); lcd.print("Temperature");
lcd.setCursor(0,1); lcd.print("Monitor Tool");
delay(3000);
for (int thisReading = 0; thisReading < numReadings; thisReading++) { tempReadings[thisReading] = 0; }
lcd.clear();
lcd.begin(16, 2);
lcd.setCursor(0,0); lcd.print("Initializing");
lcd.setCursor(0,1); lcd.print("Ethernet...");
delay(1000);
if (Ethernet.begin(mac) == 0) {
lcd.setCursor(0,0);
lcd.print("No");
lcd.setCursor(1,0);
lcd.print("Ethernet!");
Ethernet.begin(mac, ip);
}
else
{
lcd.clear();
lcd.setCursor(0,0);
lcd.print("Address:");
lcd.setCursor(0,1);
lcd.print(Ethernet.localIP());
}
delay(3000);
lcd.clear();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment