#include<SPI.h>#include<Ethernet.h>bytemac[]={0xDE,0xAD,0xBE,0xEF,0xFE,0xED};IPAddressip(10,0,0,177);voidsetup(){Serial.begin(9600);while(!Serial){;// wait for serial port to connect. Needed for native USB port only
}Ethernet.begin(mac,ip);bytemacBuffer[6];// create a buffer to hold the MAC address
Ethernet.MACAddress(macBuffer);// fill the buffer
Serial.print("The MAC address is: ");for(byteoctet=0;octet<6;octet++){Serial.print(macBuffer[octet],HEX);if(octet<5){Serial.print('-');}}}voidloop(){}