Skip to content

Commit 01e8531

Browse files
tigoeTom Igoe
authored andcommitted
Changed all .pde examples to .ino
All examples in /build/shared/examples/ and /libraries/ have had their extensions changed to .ino
1 parent 3316ede commit 01e8531

File tree

12 files changed

+3
-57
lines changed

12 files changed

+3
-57
lines changed

examples/DhcpAddressPrinter/DhcpAddressPrinter.ino

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,17 @@ void setup() {
3030
// start the serial library:
3131
Serial.begin(9600);
3232
// start the Ethernet connection:
33-
Serial.println("Trying to get an IP address using DHCP");z
3433
if (Ethernet.begin(mac) == 0) {
3534
Serial.println("Failed to configure Ethernet using DHCP");
3635
// no point in carrying on, so do nothing forevermore:
37-
while(true);
36+
for(;;)
37+
;
3838
}
3939
// print your local IP address:
4040
Serial.print("My IP address: ");
41-
IPAddress myIPAddress = Ethernet.localIP();
4241
for (byte thisByte = 0; thisByte < 4; thisByte++) {
4342
// print the value of each byte of the IP address:
44-
Serial.print(myIPAddress[thisByte], DEC);
43+
Serial.print(Ethernet.localIP()[thisByte], DEC);
4544
Serial.print(".");
4645
}
4746
Serial.println();

examples/DhcpAddressPrinter/DhcpAddressPrinter.pde

Lines changed: 0 additions & 53 deletions
This file was deleted.

0 commit comments

Comments
 (0)