#include<SPI.h>#include<Ethernet.h>bytemac[]={0xDE,0xAD,0xBE,0xEF,0xFE,0xED};IPAddressip(10,0,0,177);voidsetup(){// Open serial communications and wait for port to open:
Serial.begin(9600);while(!Serial){;// wait for serial port to connect. Needed for native USB port only
}Ethernet.begin(mac,ip);if(Ethernet.hardwareStatus()==EthernetNoHardware){Serial.println("Ethernet shield was not found.");}elseif(Ethernet.hardwareStatus()==EthernetW5100){Serial.println("W5100 Ethernet controller detected.");}elseif(Ethernet.hardwareStatus()==EthernetW5200){Serial.println("W5200 Ethernet controller detected.");}elseif(Ethernet.hardwareStatus()==EthernetW5500){Serial.println("W5500 Ethernet controller detected.");}}voidloop(){}