Created
November 9, 2014 19:59
-
-
Save BenGriffiths/b854e348fbf941074544 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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